Package ro.sync.xml

Class ProxyNamespaceMapping

  • All Implemented Interfaces:
    java.lang.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
        ProxyNamespaceMapping()
      Constructor.
      protected ProxyNamespaceMapping​(java.util.List<java.lang.String> prefixies, java.util.List<java.lang.String> namespaces)
      Private constructor.
        ProxyNamespaceMapping​(org.w3c.dom.Node node)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()
      Clones the prefix namespace mapping.
      protected ProxyNamespaceMapping createProxyNamespaceMapping()  
      boolean equals​(java.lang.Object obj)  
      • 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 Detail

      • ProxyNamespaceMapping

        public ProxyNamespaceMapping​(org.w3c.dom.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​(java.util.List<java.lang.String> prefixies,
                                        java.util.List<java.lang.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 Detail

      • createProxyNamespaceMapping

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

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)