|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 java.lang.String |
OWS_NS
ows namespace without version |
static java.lang.String |
OWS_PREFIX
the ows prefix |
static java.lang.String |
OWS110_NS
ows 1.1 version |
static java.lang.String |
OWS110_PREFIX
the ows 1.1.0 prefix |
static java.lang.String |
XML_NS
normal xml namespace |
static java.lang.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(javax.xml.stream.XMLStreamWriter writer,
Envelope bbox)
Exports an Envelope as a ows:BoundingBoxType. |
static void |
exportCoordinateList(javax.xml.stream.XMLStreamWriter writer,
java.util.List<? extends java.lang.Number> coordinates,
java.lang.String separator)
|
static void |
exportPositionType(javax.xml.stream.XMLStreamWriter writer,
Point pos)
Exports a Point as a ows:PositionType. |
Envelope |
parseBoundingBoxType(org.apache.axiom.om.OMElement boundingBoxDataElement,
CRS 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 java.lang.String OWS_NS
public static final java.lang.String OWS110_NS
public static final java.lang.String XML_NS
public static final java.lang.String OWS_PREFIX
public static final java.lang.String OWS110_PREFIX
public static final java.lang.String XML_PREFIX
| Constructor Detail |
|---|
public OWSCommonXMLAdapter()
| Method Detail |
|---|
public Envelope parseBoundingBoxType(org.apache.axiom.om.OMElement boundingBoxDataElement,
CRS defaultCRS)
ows:BoundingBoxType.
boundingBoxDataElement - element of type ows:BoundingBoxTypedefaultCRS - 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 contents
public static void exportBoundingBoxType(javax.xml.stream.XMLStreamWriter writer,
Envelope bbox)
throws javax.xml.stream.XMLStreamException
Envelope as a ows:BoundingBoxType.
writer - bbox - envelope to be exported
javax.xml.stream.XMLStreamException
public static void exportCoordinateList(javax.xml.stream.XMLStreamWriter writer,
java.util.List<? extends java.lang.Number> coordinates,
java.lang.String separator)
throws javax.xml.stream.XMLStreamException
writer - to export tocoordinates - to be exportedseparator - to use between coordinates, if null a space character will be used.
javax.xml.stream.XMLStreamException - if the writing fails.
public static void exportPositionType(javax.xml.stream.XMLStreamWriter writer,
Point pos)
throws javax.xml.stream.XMLStreamException
Point as a ows:PositionType.
writer - pos - point to be exported
javax.xml.stream.XMLStreamException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||