| Modifier and Type | Class and Description |
|---|---|
| private static class | XSNamedMapImpl.XSNamedMapEntry
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. true if this map contains a mapping for the specified
key.
|
| public synchronized Set | entrySet()
Implements abstract java. Implements java. Set view of the mappings contained in this map.
|
| public Object | get(Object
the key whose associated value is to be returned key)Overrides java. Implements java. null if this map contains no mapping for the key.
|
| public synchronized int | getLength()
Implements org. XSObjects in the XSObjectList.
|
| pack-priv static boolean | |
| public synchronized XSObject | Returns: TheXSObject at the indexth
position in the XSObjectList, or null if
the index specified is not valid.index into the collection. index)Implements org. indexth item in the collection or
null if index is greater than or equal to
the number of objects in the list.
|
| 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 org. XSObject specified by local name and
namespace URI.
|
| public int | size()
Overrides java. Implements java. |
| 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<E> fEntrySet | |
| 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 Object 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 org. 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 org. Returns the
| |
| itemByName | back to summary |
|---|---|
| public XSObject itemByName(String namespace, String localName) Implements org. 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 | equals(Object
object to be compared for equality with this map entry o)Overrides java. Implements java. |
| public Object | |
| public Object | |
| public int | hashCode()
Overrides java. Implements java. |
| public Object | setValue(Object
new value to be stored in this entry value)Implements java. |
| 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(Object o) Overrides java. Implements java. Doc from java. Compares the specified object with this entry for equality.
Returns
(e1.getKey()==null ?
e2.getKey()==null : e1.getKey().equals(e2.getKey())) &&
(e1.getValue()==null ?
e2.getValue()==null : e1.getValue().equals(e2.getValue()))
This ensures that the equals method works properly across
different implementations of the Map.Entry interface.
| |
| getKey | back to summary |
|---|---|
| public Object getKey() Implements java. Doc from java. Returns the key corresponding to this entry.
| |
| getValue | back to summary |
|---|---|
| public Object 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 Object setValue(Object 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.
| |