public class XSNamedMapImpl extends AbstractMap implements XSNamedMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
static XSNamedMapImpl |
EMPTY_MAP
An immutable empty map.
|
| Constructor and Description |
|---|
XSNamedMapImpl(String[] namespaces,
SymbolHash[] maps,
int num)
Construct an XSNamedMap implementation for a list of namespaces
|
XSNamedMapImpl(String namespace,
SymbolHash map)
Construct an XSNamedMap implementation for one namespace
|
XSNamedMapImpl(XSObject[] array,
int length)
Construct an XSNamedMap implementation one namespace from an array
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object key) |
Set |
entrySet() |
Object |
get(Object key) |
int |
getLength()
The number of
XSObjects in the XSObjectList. |
XSObject |
item(int index)
Returns the
indexth item in the collection or
null if index is greater than or equal to
the number of objects in the list. |
XSObject |
itemByName(String namespace,
String localName)
Retrieves an
XSObject specified by local name and
namespace URI. |
int |
size() |
clear, clone, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitclear, compute, computeIfAbsent, computeIfPresent, containsValue, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, valuespublic static final XSNamedMapImpl EMPTY_MAP
public XSNamedMapImpl(String namespace, SymbolHash map)
namespace - the namespace to which the components belongmap - the map from local names to componentspublic XSNamedMapImpl(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 componentspublic int getLength()
XSObjects in the XSObjectList.
The range of valid child object indices is 0 to length-1
inclusive.getLength in interface XSNamedMappublic XSObject itemByName(String namespace, 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 XSNamedMapnamespace - 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 XSObject item(int index)
indexth 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 XSNamedMapindex - index into the collection.XSObject at the indexth
position in the XSObjectList, or null if
the index specified is not valid.public boolean containsKey(Object key)
containsKey in interface MapcontainsKey in class AbstractMappublic Object get(Object key)
get in interface Mapget in class AbstractMappublic int size()
size in interface Mapsize in class AbstractMappublic Set entrySet()
entrySet in interface MapentrySet in class AbstractMapCopyright © 2019 JBoss by Red Hat. All rights reserved.