public class ProjectionRmfSerializer extends ClassSerializer
Clase para convertir a XML una proyeccion y obtener el valor desde un XML. Esta clase implementa el interfaz IRmfBlock con los métodos de escritura y lectura. Estos serán utilizados por el gestor de ficheros RMF para escribir y leer datos.
La estructura XML de una proyeccion es la siguiente:
| Constructor and Description |
|---|
ProjectionRmfSerializer()
Constructor.
|
ProjectionRmfSerializer(IProjection projection) |
| Modifier and Type | Method and Description |
|---|---|
String |
getMainTag()
Obtiene el tag principal del bloque
|
Object |
getResult()
Obtiene el objeto resultante de haber aplicado un read.
|
void |
read(String xml)
Lee el bloque XML pasado por parámetro y carga el objeto correspondiente
con los datos.
|
static void |
register()
Registra ProjectionRmfSerializer en los puntos de extension de Serializer
|
String |
write()
Obtiene un bloque XML que representa a las propiedades del objeto a
serializar.
|
convertStringInDoubleArray, convertStringInIntArray, parseBoundingBox, parsePoint2D, parserString, parseViewPort, putProperty, putProperty, putPropertypublic ProjectionRmfSerializer(IProjection projection)
public ProjectionRmfSerializer()
public static void register()
public String getMainTag()
IRmfBlockpublic Object getResult()
IRmfBlockpublic void read(String xml) throws ParsingException
IRmfBlockParsingExceptionpublic String write() throws IOException
IRmfBlockIOException