org.gvsig.crs.persistence
Class RecentCRSsPersistence

java.lang.Object
  extended by org.gvsig.crs.persistence.RecentCRSsPersistence

public class RecentCRSsPersistence
extends java.lang.Object

This class is used to save a list of CRSs (using the Andami persistence model) to the plugins-persistence.xml file. It has methods to create a set of CrsData objects from an xml file. It can also save a set of CRSs objects in an xml file.

Author:
Diego Guerrero Sevilla diego.guerrero@uclm.es

Constructor Summary
RecentCRSsPersistence()
          Constructor
 
Method Summary
 void addCrsData(CrsData crs)
          This method adds a CrsData using the Anadami persistence model.
 org.gvsig.utils.XMLEntity crsDataToXml(CrsData crs)
          This method creates and returns a new XMLEntity.
 CrsData[] getArrayOfCrsData()
          This method returns an array of CrsData objects that have been saved using the Andami persistence model.
 org.gvsig.utils.XMLEntity getXml()
           
 void setArrayOfCrsData(CrsData[] crss)
          This method saves an array of CrsData using the Anadami persistence model
 void setPersistent()
          This methos is used to save the information in an XML file
 void setXml(org.gvsig.utils.XMLEntity xml)
           
 CrsData xmlToCrsData(org.gvsig.utils.XMLEntity xmlEnt)
          This method creates a new CrsData from a XMLEntity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecentCRSsPersistence

public RecentCRSsPersistence()
Constructor

Method Detail

addCrsData

public void addCrsData(CrsData crs)
This method adds a CrsData using the Anadami persistence model. If the Crs exists just actualizes the type name and the wkt string.

Parameters:
crs - CrsData

crsDataToXml

public org.gvsig.utils.XMLEntity crsDataToXml(CrsData crs)
This method creates and returns a new XMLEntity.

Parameters:
crs - CrsData with all the Crs information
Returns:
XMLEntity

getArrayOfCrsData

public CrsData[] getArrayOfCrsData()
This method returns an array of CrsData objects that have been saved using the Andami persistence model.

Returns:
CrsData[]

getXml

public org.gvsig.utils.XMLEntity getXml()

setArrayOfCrsData

public void setArrayOfCrsData(CrsData[] crss)
This method saves an array of CrsData using the Anadami persistence model

Parameters:
crsss - Array of crss

setPersistent

public void setPersistent()
This methos is used to save the information in an XML file


setXml

public void setXml(org.gvsig.utils.XMLEntity xml)

xmlToCrsData

public CrsData xmlToCrsData(org.gvsig.utils.XMLEntity xmlEnt)
This method creates a new CrsData from a XMLEntity

Parameters:
xmlEnt - XMLRntity that contains the Crs information
Returns:
CrsData


Copyright © 2014 gvSIG Association. All Rights Reserved.