Package org.opengis.cite.wfs11.util
Class XmlUtils
java.lang.Object
org.opengis.cite.wfs11.util.XmlUtils
XmlUtils class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Nodestatic Stringstatic QNamebuildQName(Node node) buildQName.static List<org.apache.xerces.xs.XSElementDeclaration>getFeaturePropertiesByType(org.apache.xerces.xs.XSModel model, QName featureTypeName, org.apache.xerces.xs.XSTypeDefinition... typeDefs) Parses all properties of a feature type matching the given typestatic NodereloadNode(Node wfsCapabilities) reloadNode.
-
Constructor Details
-
XmlUtils
public XmlUtils()
-
-
Method Details
-
asNode
- Parameters:
xmlString- nevernull- Returns:
- the string as node, never
null - Throws:
Exception- if any.
-
asString
- Parameters:
node- nevernull- Returns:
- the node as string, never
null - Throws:
Exception
-
buildQName
buildQName.
- Parameters:
node- aNodeobject- Returns:
- the node of the name as qualified name, never
null
-
reloadNode
public static Node reloadNode(Node wfsCapabilities) throws Exception, SAXException, IOException, ParserConfigurationException reloadNode.
- Parameters:
wfsCapabilities- aNodeobject- Returns:
- a
Nodeobject - Throws:
Exception- if any.SAXException- if any.IOException- if any.ParserConfigurationException- if any.
-
getFeaturePropertiesByType
public static List<org.apache.xerces.xs.XSElementDeclaration> getFeaturePropertiesByType(org.apache.xerces.xs.XSModel model, QName featureTypeName, org.apache.xerces.xs.XSTypeDefinition... typeDefs) Parses all properties of a feature type matching the given type- Parameters:
model- the parsed schema definition nevernullfeatureTypeName- the name of the feature type the properties should be parsed from, nevernulltypeDefs- a list of types the properties should match- Returns:
- a list of
XSElementDeclarations part of the feature type matching to one of the passed types, may be empty but nevernull
-