| org.apache.xerces.dom3.as.ASNamedObjectMap
ASNamedObjectMap | public interface ASNamedObjectMap (Code) | | |
Method Summary | |
public int | getLength() The number of ASObjects in the ASObjectList . | public ASObject | getNamedItem(String name) Retrieves an ASObject specified by name.
Parameters: name - The nodeName of an ASObject to retrieve. | public ASObject | getNamedItemNS(String namespaceURI, String localName) Retrieves an ASObject specified by local name and
namespace URI.
Parameters: namespaceURI - The namespace URI of the ASObject to retrieve. Parameters: localName - The local name of the ASObject to retrieve. | public ASObject | item(int index) Returns the index th item in the map. | public ASObject | removeNamedItem(String name) Removes an ASObject specified by a nodeName . | public ASObject | removeNamedItemNS(String namespaceURI, String localName) Removes an ASObject specified by a namespace URI and a
local name.
Parameters: namespaceURI - The namespace URI of the ASObject to be removed. Parameters: localName - The local name of the ASObject to remove. | public ASObject | setNamedItem(ASObject newASObject) Adds an ASObject using its nodeName
attribute. | public ASObject | setNamedItemNS(ASObject newASObject) Adds an ASObject using its namespaceURI and
localName . |
getLength | public int getLength()(Code) | | The number of ASObjects in the ASObjectList .
The range of valid child node indices is 0 to length-1
inclusive.
|
getNamedItem | public ASObject getNamedItem(String name)(Code) | | Retrieves an ASObject specified by name.
Parameters: name - The nodeName of an ASObject to retrieve. An ASObject with specified node name and null if the map does not contain an element with the given name. |
getNamedItemNS | public ASObject getNamedItemNS(String namespaceURI, String localName)(Code) | | Retrieves an ASObject specified by local name and
namespace URI.
Parameters: namespaceURI - The namespace URI of the ASObject to retrieve. Parameters: localName - The local name of the ASObject to retrieve. A ASObject (of any type) with the specified local name and namespace URI, or null if they do not identify any ASObject in this map. |
item | public ASObject 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 be retrieved. The ASObject at the index th position in the ASNamedObjectMap , or null if that is not a valid index. |
removeNamedItem | public ASObject removeNamedItem(String name) throws DOMException(Code) | | Removes an ASObject specified by a nodeName .
Parameters: name - The nodeName of the ASObject to be removed. The ASObject removed from this map if an ASObject with such a name exists. exception: DOMException - NOT_FOUND_ERR: Raised if there is no node named name in this map. NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly. |
removeNamedItemNS | public ASObject removeNamedItemNS(String namespaceURI, String localName) throws DOMException(Code) | | Removes an ASObject specified by a namespace URI and a
local name.
Parameters: namespaceURI - The namespace URI of the ASObject to be removed. Parameters: localName - The local name of the ASObject to remove. The ASObject removed from this map if an ASObject with such a local name and namespace URI exists. exception: DOMException - NOT_FOUND_ERR: Raised if there is no node with the specified namespaceURI and localName in this map. NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly. |
setNamedItem | public ASObject setNamedItem(ASObject newASObject) throws DOMException(Code) | | Adds an ASObject using its nodeName
attribute. If an ASObject with that name is already
present in this map, it is replaced by the new one.
Parameters: newASObject - The ASObject to be inserted in the map with its nodeName as the key. If the new node replaces an existing one, the replaced node is returned, otherwise null . exception: DOMException - WRONG_DOCUMENT_ERR: Raised if arg was created from a different ASModel than the one that created this map. NO_MODIFICATION_ALLOWED_ERR: Raised if this map is readonly. HIERARCHY_REQUEST_ERR: Raised if an attempt is made to add a node doesn't belong in this ASNamedObjectMap . |
setNamedItemNS | public ASObject setNamedItemNS(ASObject newASObject) throws DOMException(Code) | | Adds an ASObject using its namespaceURI and
localName . If an ASObject with the same
namespaceURI and localName is already
present in this map, it is replaced by the new one.
Parameters: newASObject - The ASObject to be inserted in the map.The ASObject will later be accessible using the value of its namespaceURI and localName attributes. If the new node replaces an existing one, the replaced node is returned, otherwise null . exception: DOMException - WRONG_DOCUMENT_ERR : Raised if arg was created from a different ASModel than the one that created this map.
NO_MODIFICATION_ALLOWED_ERR : Raised if this map is readonly.
HIERARCHY_REQUEST_ERR : Raised if an attempt is made to add a node doesn't belong in this ASNamedObjectMap . |
|
|