Package ro.sync.xml

Class ProxyNamespaceMapping

java.lang.Object
ro.sync.basic.xml.ProxyNamespaceMapping
ro.sync.xml.ProxyNamespaceMapping
All Implemented Interfaces:
Cloneable

@API(type=EXTENDABLE, src=PRIVATE) public class ProxyNamespaceMapping extends ro.sync.basic.xml.ProxyNamespaceMapping
Stores the mappings between the namespace prefixes and the URI's. It is mainly used in the content completion process. The implementation consists in two lists. The modifying operations are performed at the end of the lists. Note that duplicates can exist in the mappings.
  • Field Summary

    Fields inherited from class ro.sync.basic.xml.ProxyNamespaceMapping

    namespaces, prefixes
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    Constructor.
    protected
    ProxyNamespaceMapping(List<String> prefixies, List<String> namespaces)
    Private constructor.
     
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Clones the prefix namespace mapping.
     
    boolean
     

    Methods inherited from class ro.sync.basic.xml.ProxyNamespaceMapping

    addMapping, clear, getMappingsFromAncestor, getNamespaceForAttributePrefix, getNamespaceForPrefix, getNamespaces, getPrefixesForNamespace, getPrefixesForNamespace, getPrefixForAttributeNamespace, getPrefixForNamespace, getPrefixForNamespace, getProxies, removeByNamespace, removeByPrefix, removeLastMapping, toString, update, updateNamespaceProxyMapping

    Methods inherited from class java.lang.Object

    finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ProxyNamespaceMapping

      public ProxyNamespaceMapping(Node node)
      Constructor. Adds the default namespace mapping.
      Parameters:
      node - The context node, DOM Level 1, the prefix namespace mapping will be populated based on the xmlns attributes, starting with the root element.
    • ProxyNamespaceMapping

      protected ProxyNamespaceMapping(List<String> prefixies, List<String> namespaces)
      Private constructor. Used to clone a prefix-namespace mapping.
      Parameters:
      prefixies - The prefixes list.
      namespaces - The namespaces list.
    • ProxyNamespaceMapping

      public ProxyNamespaceMapping()
      Constructor. Adds the default namespace.
  • Method Details

    • createProxyNamespaceMapping

      protected ProxyNamespaceMapping createProxyNamespaceMapping()
      Overrides:
      createProxyNamespaceMapping in class ro.sync.basic.xml.ProxyNamespaceMapping
    • clone

      public Object clone()
      Clones the prefix namespace mapping.
      Overrides:
      clone in class ro.sync.basic.xml.ProxyNamespaceMapping
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      See Also: