org.n52.wps.io.datahandler.xml
Class AbstractXMLParser

java.lang.Object
  extended by org.n52.wps.io.datahandler.xml.AbstractXMLParser
All Implemented Interfaces:
IOHandler, IParser
Direct Known Subclasses:
AbstractGTBinZippedSHPParser, GML2BasicParser, GML2BasicParser4Files, GML3BasicParser, GML3BasicParser4Files, GRASSKMLParser, KMLParser, SimpleGMLParser

public abstract class AbstractXMLParser
extends java.lang.Object
implements IParser


Field Summary
protected  com.vividsolutions.jts.geom.GeometryFactory geomFactory
           
protected  org.n52.wps.PropertyDocument.Property[] properties
           
protected  java.util.List<java.lang.String> supportedEncodings
           
protected  java.util.List<java.lang.String> supportedFormats
           
protected  java.util.List<java.lang.String> supportedSchemas
           
 
Fields inherited from interface org.n52.wps.io.IOHandler
DEFAULT_ENCODING, DEFAULT_MIMETYPE, ENCODING_BASE64, MIME_TYPE_ZIPPED_SHP
 
Constructor Summary
AbstractXMLParser()
           
AbstractXMLParser(boolean pReadWPSConfig)
           
 
Method Summary
 java.lang.String[] getSupportedEncodings()
           
 java.lang.String[] getSupportedFormats()
           
 java.lang.String[] getSupportedSchemas()
          Returns an array having the supported schemas.
 boolean isSupportedEncoding(java.lang.String encoding)
           
 boolean isSupportedFormat(java.lang.String format)
           
 boolean isSupportedSchema(java.lang.String schema)
          Returns true if the given schema is supported, else false.
abstract  IData parseXML(java.io.InputStream stream)
           
abstract  IData parseXML(java.lang.String gml)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.n52.wps.io.IParser
getSupportedInternalOutputDataType, parse
 

Field Detail

geomFactory

protected com.vividsolutions.jts.geom.GeometryFactory geomFactory

properties

protected org.n52.wps.PropertyDocument.Property[] properties

supportedSchemas

protected java.util.List<java.lang.String> supportedSchemas

supportedFormats

protected java.util.List<java.lang.String> supportedFormats

supportedEncodings

protected java.util.List<java.lang.String> supportedEncodings
Constructor Detail

AbstractXMLParser

public AbstractXMLParser()

AbstractXMLParser

public AbstractXMLParser(boolean pReadWPSConfig)
Method Detail

isSupportedFormat

public boolean isSupportedFormat(java.lang.String format)
Specified by:
isSupportedFormat in interface IOHandler

getSupportedFormats

public java.lang.String[] getSupportedFormats()
Specified by:
getSupportedFormats in interface IOHandler

getSupportedSchemas

public java.lang.String[] getSupportedSchemas()
Returns an array having the supported schemas.

Specified by:
getSupportedSchemas in interface IOHandler

isSupportedSchema

public boolean isSupportedSchema(java.lang.String schema)
Returns true if the given schema is supported, else false.

Specified by:
isSupportedSchema in interface IOHandler

isSupportedEncoding

public boolean isSupportedEncoding(java.lang.String encoding)
Specified by:
isSupportedEncoding in interface IOHandler

getSupportedEncodings

public java.lang.String[] getSupportedEncodings()
Specified by:
getSupportedEncodings in interface IOHandler

parseXML

public abstract IData parseXML(java.lang.String gml)

parseXML

public abstract IData parseXML(java.io.InputStream stream)


Copyright © 2007-2011 52north.org. All Rights Reserved.