|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap
org.apache.xerces.impl.xs.util.XSNamedMapImpl
Contains the map between qnames and XSObject's.
Nested Class Summary |
Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
Field Summary | |
static XSNamedMapImpl |
EMPTY_MAP
An immutable empty map. |
Constructor Summary | |
XSNamedMapImpl(java.lang.String[] namespaces,
SymbolHash[] maps,
int num)
Construct an XSNamedMap implementation for a list of namespaces |
|
XSNamedMapImpl(java.lang.String namespace,
SymbolHash map)
Construct an XSNamedMap implementation for one namespace |
|
XSNamedMapImpl(org.apache.xerces.xs.XSObject[] array,
int length)
Construct an XSNamedMap implementation one namespace from an array |
Method Summary | |
boolean |
containsKey(java.lang.Object key)
|
java.util.Set |
entrySet()
|
java.lang.Object |
get(java.lang.Object key)
|
int |
getLength()
The number of XSObjects in the XSObjectList . |
org.apache.xerces.xs.XSObject |
item(int index)
Returns the index th item in the collection or
null if index is greater than or equal to
the number of objects in the list. |
org.apache.xerces.xs.XSObject |
itemByName(java.lang.String namespace,
java.lang.String localName)
Retrieves an XSObject specified by local name and
namespace URI. |
int |
size()
|
Methods inherited from class java.util.AbstractMap |
clear, clone, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
clear, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, values |
Field Detail |
public static final XSNamedMapImpl 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(org.apache.xerces.xs.XSObject[] array, int length)
array
- containing all componentslength
- number of componentsMethod Detail |
public int getLength()
XSObjects
in the XSObjectList
.
The range of valid child object indices is 0 to length-1
inclusive.
getLength
in interface org.apache.xerces.xs.XSNamedMap
public org.apache.xerces.xs.XSObject itemByName(java.lang.String namespace, java.lang.String localName)
XSObject
specified by local name and
namespace URI.
null
as the
namespace
parameter for methods if they wish to specify
no namespace.
itemByName
in interface org.apache.xerces.xs.XSNamedMap
namespace
- The namespace URI of the XSObject
to
retrieve, or null
if the XSObject
has no
namespace.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 object in this map.public org.apache.xerces.xs.XSObject item(int index)
index
th item in the collection or
null
if index
is greater than or equal to
the number of objects in the list. The index starts at 0.
item
in interface org.apache.xerces.xs.XSNamedMap
index
- index into the collection.
XSObject
at the index
th
position in the XSObjectList
, or null
if
the index specified is not valid.public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map
public int size()
size
in interface java.util.Map
public java.util.Set entrySet()
entrySet
in interface java.util.Map
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |