|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xerces.impl.xs.util.XSNamedMapImpl
public class XSNamedMapImpl
Containts the map between qnames and XSObject's.
Field Summary | |
---|---|
static XSNamedMap |
EMPTY_MAP
An immutable empty map. |
Constructor Summary | |
---|---|
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(XSObject[] array,
int length)
Construct an XSNamedMap implmentation one namespace from an array |
Method Summary | |
---|---|
int |
getLength()
The number of XSObjects in the XSObjectList . |
XSObject |
item(int index)
Returns the index th item in the map. |
XSObject |
itemByName(java.lang.String namespace,
java.lang.String localName)
Retrieves an XSObject specified by local name and namespace
URI. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final XSNamedMap EMPTY_MAP
Constructor Detail |
---|
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(XSObject[] array, int length)
array
- containing all componentslength
- number of componentsMethod Detail |
---|
public int getLength()
XSObjects
in the XSObjectList
. The
range of valid child node indices is 0 to length-1
inclusive.
getLength
in interface XSNamedMap
public XSObject itemByName(java.lang.String namespace, java.lang.String localName)
XSObject
specified by local name and namespace
URI.
itemByName
in interface XSNamedMap
namespace
- 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 XSObject item(int index)
index
th 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 XSNamedMap
index
- The position in the map from which the item is to be
retrieved.
XSObject
at the index
th position
in the XSNamedMap
, or null
if that is
not a valid index.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |