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
ConstructorDescriptionCreates an empty prefix map.TLcdXMLPrefixMap
(String aNamespace, String aPrefix) Creates a prefix map with a single namespace. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the given (namespace, prefix) mapping to this map.int
Returns 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, ornull
if no namespace is known for the given prefix.Returns the prefix, corresponding with the given namespace, ornull
if 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:ILcdXMLPrefixMap
Returns the number of namespaces, available in this map.- Specified by:
getNamespaceCount
in interfaceILcdXMLPrefixMap
- Returns:
- the number of namespaces, available in this map.
-
getNamespaceURI
Description copied from interface:ILcdXMLPrefixMap
Returns the namespace at the given index.- Specified by:
getNamespaceURI
in interfaceILcdXMLPrefixMap
- Parameters:
aIndex
- the index of the namespace to be returned- Returns:
- the namespace at the given indexs.
-
getNamespaceURI
Description copied from interface:ILcdXMLPrefixMap
Returns the namespace, corresponding with the given prefix, ornull
if no namespace is known for the given prefix.- Specified by:
getNamespaceURI
in interfaceILcdXMLPrefixMap
- Specified by:
getNamespaceURI
in interfaceNamespaceContext
- Parameters:
prefix
- the prefix for which to return its namespace.- Returns:
- the namespace, corresponding with the given prefix.
-
getPrefix
Description copied from interface:ILcdXMLPrefixMap
Returns the prefix, corresponding with the given namespace, ornull
if no prefix is known for the given namespace.- Specified by:
getPrefix
in interfaceILcdXMLPrefixMap
- Specified by:
getPrefix
in interfaceNamespaceContext
- Parameters:
namespaceURI
- the namespace for which to return its prefix.- Returns:
- the prefix, corresponding with the given namespace.
-
addPrefix
Description copied from interface:ILcdXMLPrefixMap
Adds the given (namespace, prefix) mapping to this map.- Specified by:
addPrefix
in interfaceILcdXMLPrefixMap
- Parameters:
aNamespaceURI
- the namespace to be added.aPrefix
- the prefix, corresponding to the namespace that is added.
-
getPrefixes
- Specified by:
getPrefixes
in interfaceNamespaceContext
- Since:
- 2017.0
-