org.apache.xerces.impl.xs.util
Class XSNamedMap4Types
- org.apache.xerces.xs.XSNamedMap
public class XSNamedMap4Types
Containts the map between qnames and XSObject's.
$Id: XSNamedMap4Types.java 381260 2006-02-27 04:47:44Z mrglavas $
int | getLength() - The number of
XSObjects in the XSObjectList .
|
org.apache.xerces.xs.XSObject | item(int index) - Returns the
index th item in the map.
|
org.apache.xerces.xs.XSObject | itemByName(String namespace, String localName) - Retrieves an
XSObject specified by local name and namespace
URI.
|
XSNamedMap4Types
public XSNamedMap4Types(String namespace,
SymbolHash map,
short type)
Construct an XSNamedMap implmentation for one namespace
namespace
- the namespace to which the components belongmap
- the map from local names to componentstype
- the type of components
XSNamedMap4Types
public XSNamedMap4Types(String[] namespaces,
SymbolHash[] maps,
int num,
short type)
Construct an XSNamedMap implmentation for a list of namespaces
namespaces
- the namespaces to which the components belongmaps
- the maps from local names to componentsnum
- the number of namespacestype
- the type of components
getLength
public int getLength()
The number of XSObjects
in the XSObjectList
. The
range of valid child node indices is 0 to length-1
inclusive.
- getLength in interface org.apache.xerces.xs.XSNamedMap
- getLength in interface XSNamedMapImpl
item
public org.apache.xerces.xs.XSObject item(int index)
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
.
- item in interface org.apache.xerces.xs.XSNamedMap
- item in interface XSNamedMapImpl
index
- The position in the map from which the item is to be
retrieved.
- The
XSObject
at the index
th position
in the XSNamedMap
, or null
if that is
not a valid index.
itemByName
public org.apache.xerces.xs.XSObject itemByName(String namespace,
String localName)
Retrieves an XSObject
specified by local name and namespace
URI.
- itemByName in interface org.apache.xerces.xs.XSNamedMap
- itemByName in interface XSNamedMapImpl
namespace
- The namespace URI of the XSObject
to
retrieve.localName
- The local name of the XSObject
to retrieve.
- A
XSObject
(of any type) with the specified local
name and namespace URI, or null
if they do not
identify any XSObject
in this map.
Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.