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 Node
static String
static QName
buildQName
(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 Node
reloadNode
(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
- aNode
object- 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
- aNode
object- Returns:
- a
Node
object - 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 nevernull
featureTypeName
- the name of the feature type the properties should be parsed from, nevernull
typeDefs
- a list of types the properties should match- Returns:
- a list of
XSElementDeclaration
s part of the feature type matching to one of the passed types, may be empty but nevernull
-