org.apache.xerces.impl.xs.util
public class XSNamedMapImpl extends java.lang.Object implements org.apache.xerces.xs.XSNamedMap
| Modifier and Type | Field and Description |
|---|---|
static org.apache.xerces.xs.XSNamedMap |
EMPTY_MAP
An immutable empty map.
|
| Constructor and Description |
|---|
XSNamedMapImpl(java.lang.String[] namespaces,
SymbolHash[] maps,
int num)
Construct an XSNamedMap implmentation for a list of namespaces
|
XSNamedMapImpl(java.lang.String namespace,
SymbolHash map)
Construct an XSNamedMap implmentation for one namespace
|
XSNamedMapImpl(org.apache.xerces.xs.XSObject[] array,
int length)
Construct an XSNamedMap implmentation one namespace from an array
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLength()
The number of
XSObjects in the XSObjectList. |
org.apache.xerces.xs.XSObject |
item(int index)
Returns the
indexth item in the map. |
org.apache.xerces.xs.XSObject |
itemByName(java.lang.String namespace,
java.lang.String localName)
Retrieves an
XSObject specified by local name and namespace
URI. |
public static final org.apache.xerces.xs.XSNamedMap EMPTY_MAP
public XSNamedMapImpl(java.lang.String namespace,
SymbolHash map)
namespace - the namespace to which the components belongmap - the map from local names to componentspublic XSNamedMapImpl(java.lang.String[] namespaces,
SymbolHash[] maps,
int num)
namespaces - the namespaces to which the components belongmaps - the maps from local names to componentsnum - the number of namespacespublic XSNamedMapImpl(org.apache.xerces.xs.XSObject[] array,
int length)
array - containing all componentslength - number of componentspublic int getLength()
XSObjects in the XSObjectList. The
range of valid child node indices is 0 to length-1
inclusive.getLength in interface org.apache.xerces.xs.XSNamedMappublic org.apache.xerces.xs.XSObject itemByName(java.lang.String namespace,
java.lang.String localName)
XSObject specified by local name and namespace
URI.itemByName in interface org.apache.xerces.xs.XSNamedMapnamespace - The namespace URI of the XSObject to
retrieve.localName - The local name of the XSObject to retrieve.XSObject (of any type) with the specified local
name and namespace URI, or null if they do not
identify any XSObject in this map.public org.apache.xerces.xs.XSObject item(int index)
indexth item in the map. The index starts at
0. If index is greater than or equal to the number of
nodes in the list, this returns null.item in interface org.apache.xerces.xs.XSNamedMapindex - The position in the map from which the item is to be
retrieved.XSObject at the indexth position
in the XSNamedMap, or null if that is
not a valid index.Copyright ? 1999-2005 Apache XML Project. All Rights Reserved.