Package com.luciad.format.xml
Class TLcdXMLPrefixMap
java.lang.Object
com.luciad.format.xml.TLcdXMLPrefixMap
- All Implemented Interfaces:
ILcdXMLPrefixMap,NamespaceContext
Default implementation of ILcdXMLPrefixMap.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty prefix map.TLcdXMLPrefixMap(String aNamespace, String aPrefix) Creates a prefix map with a single namespace. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the given (namespace, prefix) mapping to this map.intReturns the number of namespaces, available in this map.getNamespaceURI(int aIndex) Returns the namespace at the given index.getNamespaceURI(String prefix) Returns the namespace, corresponding with the given prefix, ornullif no namespace is known for the given prefix.Returns the prefix, corresponding with the given namespace, ornullif no prefix is known for the given namespace.getPrefixes(String namespaceURI)
-
Constructor Details
-
TLcdXMLPrefixMap
public TLcdXMLPrefixMap()Creates an empty prefix map. -
TLcdXMLPrefixMap
Creates a prefix map with a single namespace.- Since:
- 2017.0
-
-
Method Details
-
getNamespaceCount
public int getNamespaceCount()Description copied from interface:ILcdXMLPrefixMapReturns the number of namespaces, available in this map.- Specified by:
getNamespaceCountin interfaceILcdXMLPrefixMap- Returns:
- the number of namespaces, available in this map.
-
getNamespaceURI
Description copied from interface:ILcdXMLPrefixMapReturns the namespace at the given index.- Specified by:
getNamespaceURIin interfaceILcdXMLPrefixMap- Parameters:
aIndex- the index of the namespace to be returned- Returns:
- the namespace at the given indexs.
-
getNamespaceURI
Description copied from interface:ILcdXMLPrefixMapReturns the namespace, corresponding with the given prefix, ornullif no namespace is known for the given prefix.- Specified by:
getNamespaceURIin interfaceILcdXMLPrefixMap- Specified by:
getNamespaceURIin interfaceNamespaceContext- Parameters:
prefix- the prefix for which to return its namespace.- Returns:
- the namespace, corresponding with the given prefix.
-
getPrefix
Description copied from interface:ILcdXMLPrefixMapReturns the prefix, corresponding with the given namespace, ornullif no prefix is known for the given namespace.- Specified by:
getPrefixin interfaceILcdXMLPrefixMap- Specified by:
getPrefixin interfaceNamespaceContext- Parameters:
namespaceURI- the namespace for which to return its prefix.- Returns:
- the prefix, corresponding with the given namespace.
-
addPrefix
Description copied from interface:ILcdXMLPrefixMapAdds the given (namespace, prefix) mapping to this map.- Specified by:
addPrefixin interfaceILcdXMLPrefixMap- Parameters:
aNamespaceURI- the namespace to be added.aPrefix- the prefix, corresponding to the namespace that is added.
-
getPrefixes
- Specified by:
getPrefixesin interfaceNamespaceContext- Since:
- 2017.0
-