|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.commons.xml.XMLAdapter org.deegree.protocol.ows.OWSCommonXMLAdapter
public class OWSCommonXMLAdapter
Supplies some basic exports methods for deegree/commons to ows mappings.
Field Summary | |
---|---|
static String |
OWS_NS
ows namespace without version |
static String |
OWS_PREFIX
the ows prefix |
static String |
OWS110_NS
ows 1.1 version |
static String |
OWS110_PREFIX
the ows 1.1.0 prefix |
static String |
XML_NS
normal xml namespace |
static String |
XML_PREFIX
the xml prefix |
Fields inherited from class org.deegree.commons.xml.XMLAdapter |
---|
DEFAULT_URL, nsContext, rootElement, XLN_NS |
Constructor Summary | |
---|---|
OWSCommonXMLAdapter()
|
Method Summary | |
---|---|
static void |
exportBoundingBoxType(XMLStreamWriter writer,
Envelope bbox)
Exports an Envelope as a ows:BoundingBoxType . |
static void |
exportCoordinateList(XMLStreamWriter writer,
List<? extends Number> coordinates,
String separator)
|
static void |
exportPositionType(XMLStreamWriter writer,
Point pos)
Exports a Point as a ows:PositionType . |
Envelope |
parseBoundingBoxType(org.apache.axiom.om.OMElement boundingBoxDataElement,
ICRS defaultCRS)
Parses the given element of type ows:BoundingBoxType . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String OWS_NS
public static final String OWS110_NS
public static final String XML_NS
public static final String OWS_PREFIX
public static final String OWS110_PREFIX
public static final String XML_PREFIX
Constructor Detail |
---|
public OWSCommonXMLAdapter()
Method Detail |
---|
public Envelope parseBoundingBoxType(org.apache.axiom.om.OMElement boundingBoxDataElement, ICRS defaultCRS)
ows:BoundingBoxType
.
boundingBoxDataElement
- element of type ows:BoundingBoxType
defaultCRS
- default CRS to use if no crs attribute is specified
Envelope
object
XMLParsingException
- if a syntactical or semantical error has been encountered in the element's contentspublic static void exportBoundingBoxType(XMLStreamWriter writer, Envelope bbox) throws XMLStreamException
Envelope
as a ows:BoundingBoxType
.
writer
- bbox
- envelope to be exported
XMLStreamException
public static void exportCoordinateList(XMLStreamWriter writer, List<? extends Number> coordinates, String separator) throws XMLStreamException
writer
- to export tocoordinates
- to be exportedseparator
- to use between coordinates, if null
a space character will be used.
XMLStreamException
- if the writing fails.public static void exportPositionType(XMLStreamWriter writer, Point pos) throws XMLStreamException
Point
as a ows:PositionType
.
writer
- pos
- point to be exported
XMLStreamException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |