Modifier and Type | Class and Description |
---|---|
private static class | XSNamedMapImpl.
An entry in the XSNamedMap. |
Modifier and Type | Field and Description |
---|---|
public static final XSNamedMapImpl | EMPTY_MAP
An immutable empty map. |
pack-priv XSObject[] | |
private Set | |
pack-priv int | |
pack-priv final SymbolHash[] | |
pack-priv final String[] | |
pack-priv final int |
Access | Constructor and Description |
---|---|
public | XSNamedMapImpl(String
the namespace to which the components belong namespace, SymbolHash the map from local names to components map)Construct an XSNamedMap implementation for one namespace |
public | XSNamedMapImpl(String[]
the namespaces to which the components belong namespaces, SymbolHash[] the maps from local names to components maps, int the number of namespaces num)Construct an XSNamedMap implementation for a list of namespaces |
public | XSNamedMapImpl(XSObject[]
containing all components array, int number of components length)Construct an XSNamedMap implementation one namespace from an array |
Modifier and Type | Method and Description |
---|---|
public boolean | containsKey(Object
key whose presence in this map is to be tested key)Overrides java. Implements java. Returns |
public synchronized Set | entrySet()
Implements abstract java. Implements java. Returns a |
public XSObject | get(Object
the key whose associated value is to be returned key)Overrides java. Implements java. Returns the value to which the specified key is mapped,
or |
public synchronized int | getLength()
Implements com. The number of |
pack-priv static boolean | |
public synchronized XSObject | Returns: TheXSObject at the index th
position in the XSObjectList , or null if
the index specified is not valid.index into the collection. index)Implements com. Returns the |
public XSObject | Returns: AXSObject (of any type) with the specified local
name and namespace URI, or null if they do not
identify any object in this map.The namespace URI of the namespace, String XSObject to
retrieve, or null if the XSObject has no
namespace.The local name of the localName)XSObject to
retrieve.Implements com. Retrieves an |
public int | size()
Overrides java. Implements java. Returns the number of key-value mappings in this map. |
EMPTY_MAP | back to summary |
---|---|
public static final XSNamedMapImpl EMPTY_MAP An immutable empty map. |
fArray | back to summary |
---|---|
pack-priv XSObject[] fArray |
fEntrySet | back to summary |
---|---|
private Set<Map. |
fLength | back to summary |
---|---|
pack-priv int fLength |
fMaps | back to summary |
---|---|
pack-priv final SymbolHash[] fMaps |
fNamespaces | back to summary |
---|---|
pack-priv final String[] fNamespaces |
fNSNum | back to summary |
---|---|
pack-priv final int fNSNum |
XSNamedMapImpl | back to summary |
---|---|
public XSNamedMapImpl(String namespace, SymbolHash map) Construct an XSNamedMap implementation for one namespace
|
XSNamedMapImpl | back to summary |
---|---|
public XSNamedMapImpl(String[] namespaces, SymbolHash[] maps, int num) Construct an XSNamedMap implementation for a list of namespaces
|
XSNamedMapImpl | back to summary |
---|---|
public XSNamedMapImpl(XSObject[] array, int length) Construct an XSNamedMap implementation one namespace from an array
|
containsKey | back to summary |
---|---|
public boolean containsKey(Object key) Overrides java. Implements java. Doc from java. Returns
|
entrySet | back to summary |
---|---|
public synchronized Set Implements abstract java. Implements java. Doc from java. Returns a |
get | back to summary |
---|---|
public XSObject get(Object key) Overrides java. Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
If this map permits null values, then a return value of
|
getLength | back to summary |
---|---|
public synchronized int getLength() Implements com. The number of |
isEqual | back to summary |
---|---|
pack-priv static boolean isEqual(String one, String two) |
item | back to summary |
---|---|
public synchronized XSObject item(int index) Implements com. Returns the
|
itemByName | back to summary |
---|---|
public XSObject itemByName(String namespace, String localName) Implements com. Retrieves an
|
size | back to summary |
---|---|
public int size() Overrides java. Implements java. Doc from java. Returns the number of key-value mappings in this map. If the
map contains more than
|
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public boolean | |
public QName | |
public XSObject | |
public int | hashCode()
Overrides java. Implements java. Returns the hash code value for this map entry. |
public XSObject | setValue(XSObject
new value to be stored in this entry value)Implements java. Replaces the value corresponding to this entry with the specified value (optional operation). |
public String |
key | back to summary |
---|---|
private final QName key |
value | back to summary |
---|---|
private final XSObject value |
XSNamedMapEntry | back to summary |
---|---|
public XSNamedMapEntry(QName key, XSObject value) |
equals | back to summary |
---|---|
public boolean equals(XSNamedMapImpl. |
getKey | back to summary |
---|---|
public QName getKey() Implements java. Doc from java. Returns the key corresponding to this entry.
|
getValue | back to summary |
---|---|
public XSObject getValue() Implements java. Doc from java. Returns the value corresponding to this entry. If the mapping
has been removed from the backing map (by the iterator's
|
hashCode | back to summary |
---|---|
public int hashCode() Overrides java. Implements java. Doc from java. Returns the hash code value for this map entry. The hash code
of a map entry (e.getKey()==null ? 0 : e.getKey().hashCode()) ^ (e.getValue()==null ? 0 : e.getValue().hashCode())This ensures that e1.equals(e2) implies that
e1.hashCode()==e2.hashCode() for any two Entries
e1 and e2 , as required by the general
contract of Object.hashCode .
|
setValue | back to summary |
---|---|
public XSObject setValue(XSObject value) Implements java. Doc from java. Replaces the value corresponding to this entry with the specified
value (optional operation). (Writes through to the map.) The
behavior of this call is undefined if the mapping has already been
removed from the map (by the iterator's |
toString | back to summary |
---|---|
public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
|