Package org.apache.xerces.xs
Interface XSNamedMap
-
- All Superinterfaces:
java.util.Map
public interface XSNamedMap extends java.util.MapObjects implementing theXSNamedMapinterface are used to represent immutable collections of XML Schema components that can be accessed by name. Note thatXSNamedMapdoes not inherit fromXSObjectList. TheXSObjects inXSNamedMaps are not maintained in any particular order.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetLength()The number ofXSObjectsin theXSObjectList.XSObjectitem(int index)Returns theindexth item in the collection ornullifindexis greater than or equal to the number of objects in the list.XSObjectitemByName(java.lang.String namespace, java.lang.String localName)Retrieves anXSObjectspecified by local name and namespace URI.
-
-
-
Method Detail
-
getLength
int getLength()
The number ofXSObjectsin theXSObjectList. The range of valid child object indices is 0 tolength-1inclusive.
-
item
XSObject item(int index)
Returns theindexth item in the collection ornullifindexis greater than or equal to the number of objects in the list. The index starts at 0.- Parameters:
index- index into the collection.- Returns:
- The
XSObjectat theindexth position in theXSObjectList, ornullif the index specified is not valid.
-
itemByName
XSObject itemByName(java.lang.String namespace, java.lang.String localName)
Retrieves anXSObjectspecified by local name and namespace URI.
Per XML Namespaces, applications must use the valuenullas thenamespaceparameter for methods if they wish to specify no namespace.- Parameters:
namespace- The namespace URI of theXSObjectto retrieve, ornullif theXSObjecthas no namespace.localName- The local name of theXSObjectto retrieve.- Returns:
- A
XSObject(of any type) with the specified local name and namespace URI, ornullif they do not identify any object in this map.
-
-