Package ro.sync.xml
Class ProxyNamespaceMapping
- java.lang.Object
-
- ro.sync.basic.xml.ProxyNamespaceMapping
-
- ro.sync.xml.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.
-
-
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
-
-
-
-
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 thexmlns
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 classro.sync.basic.xml.ProxyNamespaceMapping
-
clone
public java.lang.Object clone()
Clones the prefix namespace mapping.- Overrides:
clone
in classro.sync.basic.xml.ProxyNamespaceMapping
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
-