Class PrefixCollector

java.lang.Object
org.apache.ws.commons.schema.utils.PrefixCollector

public abstract class PrefixCollector extends Object
Searches for namespace prefix declarations.
  • Constructor Details

    • PrefixCollector

      public PrefixCollector()
  • Method Details

    • declare

      protected abstract void declare(String pPrefix, String pNamespaceURI)
      Records a single namespace prefix declaration.
    • searchLocalPrefixDeclarations

      public void searchLocalPrefixDeclarations(Node pNode)
      Searches for namespace prefix declarations in the given node. For any prefix declaration, it invokes declare(String, String). This method doesn't work recursively: The parent nodes prefix declarations are ignored.
    • searchAllPrefixDeclarations

      public void searchAllPrefixDeclarations(Node pNode)
      Searches for namespace prefix declarations in the given node. For any prefix declaration, it invokes declare(String, String). This method works recursively: The parent nodes prefix declarations are collected before the current nodes.