org.apache.xerces.dom3.as
Interface ElementEditAS
- NodeEditAS
public interface ElementEditAS
boolean | canRemoveAttribute(String attrname)- Verifies if an attribute by the given name can be removed.
|
boolean | canRemoveAttributeNS(String attrname, String namespaceURI)- Verifies if an attribute by the given local name and namespace can be
removed.
|
boolean | canRemoveAttributeNode(Node attrNode)- Determines if an attribute node can be removed.
|
boolean | canSetAttribute(String attrname, String attrval)- Determines if the value for specified attribute can be set.
|
boolean | canSetAttributeNS(String name, String attrval, String namespaceURI)- Determines if the attribute with given namespace and qualified name can
be created if not already present in the attribute list of the
element.
|
boolean | canSetAttributeNode(Attr attrNode)- Determines if an attribute node can be added with respect to the
validity check level.This is an attribute node, there is no need for
canSetAttributreNodeNS!
|
short | contentType()- Determines element content type.
|
NodeList | getAttributeList()- Returns an
NodeList containing all the possible
Attrs that can appear with this type of element.
|
NodeList | getChildElements()- Returns an
NodeList containing the possible
Element names that can appear as children of this type
of element.
|
NodeList | getDefinedElementTypes()- The list of qualified element names defined in the abstract schema.
|
NodeList | getParentElements()- Returns an
NodeList containing the possible
Element names that can appear as a parent of this type
of element.
|
boolean | isElementDefined(String elemTypeName)- Determines if this element is defined in the currently active AS.
|
boolean | isElementDefinedNS(String elemTypeName, String namespaceURI, String name)- Determines if this element in this namespace is defined in the
currently active AS.
|
canRemoveAttribute
public boolean canRemoveAttribute(String attrname)
Verifies if an attribute by the given name can be removed.
attrname - Name of attribute.
true if no reason it can't be done;
false if it can't be done.
canRemoveAttributeNS
public boolean canRemoveAttributeNS(String attrname,
String namespaceURI) Verifies if an attribute by the given local name and namespace can be
removed.
attrname - Local name of the attribute to be removed.namespaceURI - The namespace URI of the attribute to remove.
true if no reason it can't be done;
false if it can't be done.
canRemoveAttributeNode
public boolean canRemoveAttributeNode(Node attrNode)
Determines if an attribute node can be removed.
attrNode - The Attr node to remove from the
attribute list.
true if no reason it can't be done;
false if it can't be done.
canSetAttribute
public boolean canSetAttribute(String attrname,
String attrval) Determines if the value for specified attribute can be set.
attrname - Name of attribute.attrval - Value to be assigned to the attribute.
true if no reason it can't be done;
false if it can't be done.
canSetAttributeNS
public boolean canSetAttributeNS(String name,
String attrval,
String namespaceURI) Determines if the attribute with given namespace and qualified name can
be created if not already present in the attribute list of the
element. If the attribute with same qualified name and namespaceURI
is already present in the elements attribute list it tests for the
value of the attribute and its prefix to the new value. See DOM core
setAttributeNS.
name - Qualified name of attribute.attrval - Value to be assigned to the attribute.namespaceURI - namespaceURI of namespace.
true if no reason it can't be done;
false if it can't be done.
canSetAttributeNode
public boolean canSetAttributeNode(Attr attrNode)
Determines if an attribute node can be added with respect to the
validity check level.This is an attribute node, there is no need for
canSetAttributreNodeNS!
attrNode - Node in which the attribute can possibly
be set.
true if no reason it can't be done;
false if it can't be done.
contentType
public short contentType()
Determines element content type.
- Constant for one of EMPTY_CONTENTTYPE, ANY_CONTENTTYPE,
MIXED_CONTENTTYPE, ELEMENTS_CONTENTTYPE.
getAttributeList
public NodeList getAttributeList()
Returns an NodeList containing all the possible
Attrs that can appear with this type of element.
- List of possible attributes of this element.
getChildElements
public NodeList getChildElements()
Returns an NodeList containing the possible
Element names that can appear as children of this type
of element.
- List of possible children element types of this element.
getDefinedElementTypes
public NodeList getDefinedElementTypes()
The list of qualified element names defined in the abstract schema.
getParentElements
public NodeList getParentElements()
Returns an NodeList containing the possible
Element names that can appear as a parent of this type
of element.
- List of possible parent element types of this element.
isElementDefined
public boolean isElementDefined(String elemTypeName)
Determines if this element is defined in the currently active AS.
elemTypeName - Name of element.
- A boolean that is
true if the element is defined,
false otherwise.
isElementDefinedNS
public boolean isElementDefinedNS(String elemTypeName,
String namespaceURI,
String name) Determines if this element in this namespace is defined in the
currently active AS.
elemTypeName - Name of element.namespaceURI - namespaceURI of namespace.name - Qualified name of namespace. This is for sub-elements.
- A boolean that is
true if the element is defined,
false otherwise.
Copyright © 1999-2004 Apache XML Project. All Rights Reserved.