public final class XSNamedMap4Types extends XSNamedMapImpl
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
EMPTY_MAP
Constructor and Description |
---|
XSNamedMap4Types(String[] namespaces,
SymbolHash[] maps,
int num,
short type)
Construct an XSNamedMap implementation for a list of namespaces
|
XSNamedMap4Types(String namespace,
SymbolHash map,
short type)
Construct an XSNamedMap implementation for one namespace
|
Modifier and Type | Method and Description |
---|---|
int |
getLength()
The number of
XSObjects in the XSObjectList . |
XSObject |
item(int index)
Returns the
index th item in the map. |
XSObject |
itemByName(String namespace,
String localName)
Retrieves an
XSObject specified by local name and namespace
URI. |
containsKey, entrySet, get, size
clear, clone, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, toString, values
finalize, getClass, notify, notifyAll, wait, wait, wait
clear, compute, computeIfAbsent, computeIfPresent, containsValue, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, values
public XSNamedMap4Types(String namespace, SymbolHash map, short type)
namespace
- the namespace to which the components belongmap
- the map from local names to componentstype
- the type of componentspublic XSNamedMap4Types(String[] namespaces, SymbolHash[] maps, int num, short type)
namespaces
- the namespaces to which the components belongmaps
- the maps from local names to componentsnum
- the number of namespacestype
- the type of componentspublic int getLength()
XSObjects
in the XSObjectList
. The
range of valid child node indices is 0 to length-1
inclusive.getLength
in interface XSNamedMap
getLength
in class XSNamedMapImpl
public XSObject itemByName(String namespace, String localName)
XSObject
specified by local name and namespace
URI.itemByName
in interface XSNamedMap
itemByName
in class XSNamedMapImpl
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
item
in class XSNamedMapImpl
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.Copyright © 2016 JBoss by Red Hat. All rights reserved.