Top Description Fields Constructors Methods
org.apache.xerces.impl.xs.util

public final Class XSNamedMap4Types

extends XSNamedMapImpl
Class Inheritance
Imports
org.apache.xerces.util.SymbolHash, org.apache.xerces.xs.XSObject, .XSTypeDefinition

Contains the map between qnames and XSObject's.
Author
Sandy Gao, IBM
Version
$Id: XSNamedMap4Types.java 726359 2008-12-14 05:04:10Z mrglavas $

Field Summary

Modifier and TypeField and Description
private final short
Inherited from org.apache.xerces.impl.xs.util.XSNamedMapImpl:
EMPTY_MAPfArrayfLengthfMapsfNamespacesfNSNum

Constructor Summary

AccessConstructor and Description
public
XSNamedMap4Types(String
the namespace to which the components belong
namespace
,
SymbolHash
the map from local names to components
map
,
short
the type of components
type
)

Construct an XSNamedMap implementation for one namespace

public
XSNamedMap4Types(String[]
the namespaces to which the components belong
namespaces
,
SymbolHash[]
the maps from local names to components
maps
,
int
the number of namespaces
num
,
short
the type of components
type
)

Construct an XSNamedMap implementation for a list of namespaces

Method Summary

Modifier and TypeMethod and Description
public synchronized int
getLength()

Overrides org.apache.xerces.impl.xs.util.XSNamedMapImpl.getLength.

Implements org.apache.xerces.xs.XSNamedMap.getLength.

The number of XSObjects in the XSObjectList.
public synchronized XSObject

Returns:

The XSObject at the indexth position in the XSNamedMap, or null if that is not a valid index.
item
(int
The position in the map from which the item is to be retrieved.
index
)

Overrides org.apache.xerces.impl.xs.util.XSNamedMapImpl.item.

Implements org.apache.xerces.xs.XSNamedMap.item.

Returns the indexth item in the map.
public XSObject

Returns:

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.
itemByName
(String
The namespace URI of the XSObject to retrieve.
namespace
,
String
The local name of the XSObject to retrieve.
localName
)

Overrides org.apache.xerces.impl.xs.util.XSNamedMapImpl.itemByName.

Implements org.apache.xerces.xs.XSNamedMap.itemByName.

Retrieves an XSObject specified by local name and namespace URI.
Inherited from org.apache.xerces.impl.xs.util.XSNamedMapImpl:
containsKeyentrySetgetisEqualsize

Field Detail

fTypeback to summary
private final short fType

Constructor Detail

XSNamedMap4Typesback to summary
public XSNamedMap4Types(String namespace, SymbolHash map, short type)

Construct an XSNamedMap implementation for one namespace

Parameters
namespace:String

the namespace to which the components belong

map:SymbolHash

the map from local names to components

type:short

the type of components

XSNamedMap4Typesback to summary
public XSNamedMap4Types(String[] namespaces, SymbolHash[] maps, int num, short type)

Construct an XSNamedMap implementation for a list of namespaces

Parameters
namespaces:String[]

the namespaces to which the components belong

maps:SymbolHash[]

the maps from local names to components

num:int

the number of namespaces

type:short

the type of components

Method Detail

getLengthback to summary
public synchronized int getLength()

Overrides org.apache.xerces.impl.xs.util.XSNamedMapImpl.getLength.

Implements org.apache.xerces.xs.XSNamedMap.getLength.

The number of XSObjects in the XSObjectList. The range of valid child node indices is 0 to length-1 inclusive.

itemback to summary
public synchronized XSObject item(int index)

Overrides org.apache.xerces.impl.xs.util.XSNamedMapImpl.item.

Implements org.apache.xerces.xs.XSNamedMap.item.

Returns the indexth 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:int

The position in the map from which the item is to be retrieved.

Returns:XSObject

The XSObject at the indexth position in the XSNamedMap, or null if that is not a valid index.

itemByNameback to summary
public XSObject itemByName(String namespace, String localName)

Overrides org.apache.xerces.impl.xs.util.XSNamedMapImpl.itemByName.

Implements org.apache.xerces.xs.XSNamedMap.itemByName.

Retrieves an XSObject specified by local name and namespace URI.

Parameters
namespace:String

The namespace URI of the XSObject to retrieve.

localName:String

The local name of the XSObject to retrieve.

Returns:XSObject

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.