| java.lang.Object org.apache.xerces.impl.xs.util.XSNamedMapImpl
All known Subclasses: org.apache.xerces.impl.xs.util.XSNamedMap4Types,
XSNamedMapImpl | public class XSNamedMapImpl implements XSNamedMap(Code) | | Containts the map between qnames and XSObject's.
author: Sandy Gao, IBM version: $Id: XSNamedMapImpl.java 446723 2006-09-15 20:37:45Z mrglavas $ |
Method Summary | |
public synchronized int | getLength() The number of XSObjects in the XSObjectList . | final boolean | isEqual(String one, String two) | public synchronized XSObject | item(int index) Returns the index th item in the map. | public XSObject | itemByName(String namespace, String localName) Retrieves an XSObject specified by local name and namespace
URI.
Parameters: namespace - The namespace URI of the XSObject toretrieve. Parameters: localName - The local name of the XSObject to retrieve. |
XSNamedMapImpl | public XSNamedMapImpl(String namespace, SymbolHash map)(Code) | | Construct an XSNamedMap implmentation for one namespace
Parameters: namespace - the namespace to which the components belong Parameters: map - the map from local names to components |
XSNamedMapImpl | public XSNamedMapImpl(String[] namespaces, SymbolHash[] maps, int num)(Code) | | Construct an XSNamedMap implmentation for a list of namespaces
Parameters: namespaces - the namespaces to which the components belong Parameters: maps - the maps from local names to components Parameters: num - the number of namespaces |
XSNamedMapImpl | public XSNamedMapImpl(XSObject[] array, int length)(Code) | | Construct an XSNamedMap implmentation one namespace from an array
Parameters: array - containing all components Parameters: length - number of components |
getLength | public synchronized int getLength()(Code) | | The number of XSObjects in the XSObjectList . The
range of valid child node indices is 0 to length-1
inclusive.
|
item | public synchronized XSObject item(int index)(Code) | | Returns the 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 .
Parameters: index - The position in the map from which the item is to beretrieved. The XSObject at the index th positionin the XSNamedMap , or null if that isnot a valid index. |
itemByName | public XSObject itemByName(String namespace, String localName)(Code) | | Retrieves an XSObject specified by local name and namespace
URI.
Parameters: namespace - The namespace URI of the XSObject toretrieve. Parameters: localName - The local name of the XSObject to retrieve. A XSObject (of any type) with the specified localname and namespace URI, or null if they do notidentify any XSObject in this map. |
|
|