Class XmlUtils

java.lang.Object
org.opengis.cite.wfs11.util.XmlUtils

public class XmlUtils extends Object

XmlUtils class.

  • Constructor Details

    • XmlUtils

      public XmlUtils()
  • Method Details

    • asNode

      public static Node asNode(String xmlString) throws Exception
      Creates a Node out of a String
      Parameters:
      xmlString - never null
      Returns:
      the string as node, never null
      Throws:
      Exception - if any.
    • asString

      public static String asString(Node node) throws Exception
      Creates a String out of a Node
      Parameters:
      node - never null
      Returns:
      the node as string, never null
      Throws:
      Exception
    • buildQName

      public static QName buildQName(Node node)

      buildQName.

      Parameters:
      node - a Node 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 - a Node 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 never null
      featureTypeName - the name of the feature type the properties should be parsed from, never null
      typeDefs - 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 never null