Top Fields Methods
org.apache.xerces.dom3.as

public Interface ElementEditAS

extends NodeEditAS
Imports
org.w3c.dom.Attr, .Node, .NodeList

Deprecated

This interface extends the Element interface with additional methods for guided document editing. An object implementing this interface must also implement NodeEditAS interface.

See also the Document Object Model (DOM) Level 3 Abstract Schemas and Load and Save Specification.

Field Summary

Inherited from org.apache.xerces.dom3.as.NodeEditAS:
NS_WF_CHECKPARTIAL_VALIDITY_CHECKSTRICT_VALIDITY_CHECKWF_CHECK

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if no reason it can't be done; false if it can't be done.
canRemoveAttribute
(String
Name of attribute.
attrname
)

Verifies if an attribute by the given name can be removed.

public boolean

Returns:

true if no reason it can't be done; false if it can't be done.
canRemoveAttributeNode
(Node
The Attr node to remove from the attribute list.
attrNode
)

Determines if an attribute node can be removed.

public boolean

Returns:

true if no reason it can't be done; false if it can't be done.
canRemoveAttributeNS
(String
Local name of the attribute to be removed.
attrname
,
String
The namespace URI of the attribute to remove.
namespaceURI
)

Verifies if an attribute by the given local name and namespace can be removed.

public boolean

Returns:

true if no reason it can't be done; false if it can't be done.
canSetAttribute
(String
Name of attribute.
attrname
,
String
Value to be assigned to the attribute.
attrval
)

Determines if the value for specified attribute can be set.

public boolean

Returns:

true if no reason it can't be done; false if it can't be done.
canSetAttributeNode
(Attr
Node in which the attribute can possibly be set.
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!

public boolean

Returns:

true if no reason it can't be done; false if it can't be done.
canSetAttributeNS
(String
Qualified name of attribute.
name
,
String
Value to be assigned to the attribute.
attrval
,
String
namespaceURI of namespace.
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.

public short

Returns:

Constant for one of EMPTY_CONTENTTYPE, ANY_CONTENTTYPE, MIXED_CONTENTTYPE, ELEMENTS_CONTENTTYPE.
contentType
()

Determines element content type.

public NodeList

Returns:

List of possible attributes of this element.
getAttributeList
()

Returns an NodeList containing all the possible Attrs that can appear with this type of element.

public NodeList

Returns:

List of possible children element types of this element.
getChildElements
()

Returns an NodeList containing the possible Element names that can appear as children of this type of element.

public NodeList
getDefinedElementTypes()

The list of qualified element names defined in the abstract schema.

public NodeList

Returns:

List of possible parent element types of this element.
getParentElements
()

Returns an NodeList containing the possible Element names that can appear as a parent of this type of element.

public boolean

Returns:

A boolean that is true if the element is defined, false otherwise.
isElementDefined
(String
Name of element.
elemTypeName
)

Determines if this element is defined in the currently active AS.

public boolean

Returns:

A boolean that is true if the element is defined, false otherwise.
isElementDefinedNS
(String
Name of element.
elemTypeName
,
String
namespaceURI of namespace.
namespaceURI
,
String
Qualified name of namespace. This is for sub-elements.
name
)

Determines if this element in this namespace is defined in the currently active AS.

Inherited from org.apache.xerces.dom3.as.NodeEditAS:
canAppendChildcanInsertBeforecanRemoveChildcanReplaceChildisNodeValid

Method Detail

canRemoveAttributeback to summary
public boolean canRemoveAttribute(String attrname)

Verifies if an attribute by the given name can be removed.

Parameters
attrname:String

Name of attribute.

Returns:boolean

true if no reason it can't be done; false if it can't be done.

canRemoveAttributeNodeback to summary
public boolean canRemoveAttributeNode(Node attrNode)

Determines if an attribute node can be removed.

Parameters
attrNode:Node

The Attr node to remove from the attribute list.

Returns:boolean

true if no reason it can't be done; false if it can't be done.

canRemoveAttributeNSback to summary
public boolean canRemoveAttributeNS(String attrname, String namespaceURI)

Verifies if an attribute by the given local name and namespace can be removed.

Parameters
attrname:String

Local name of the attribute to be removed.

namespaceURI:String

The namespace URI of the attribute to remove.

Returns:boolean

true if no reason it can't be done; false if it can't be done.

canSetAttributeback to summary
public boolean canSetAttribute(String attrname, String attrval)

Determines if the value for specified attribute can be set.

Parameters
attrname:String

Name of attribute.

attrval:String

Value to be assigned to the attribute.

Returns:boolean

true if no reason it can't be done; false if it can't be done.

canSetAttributeNodeback to summary
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!

Parameters
attrNode:Attr

Node in which the attribute can possibly be set.

Returns:boolean

true if no reason it can't be done; false if it can't be done.

canSetAttributeNSback to summary
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.

Parameters
name:String

Qualified name of attribute.

attrval:String

Value to be assigned to the attribute.

namespaceURI:String

namespaceURI of namespace.

Returns:boolean

true if no reason it can't be done; false if it can't be done.

contentTypeback to summary
public short contentType()

Determines element content type.

Returns:short

Constant for one of EMPTY_CONTENTTYPE, ANY_CONTENTTYPE, MIXED_CONTENTTYPE, ELEMENTS_CONTENTTYPE.

getAttributeListback to summary
public NodeList getAttributeList()

Returns an NodeList containing all the possible Attrs that can appear with this type of element.

Returns:NodeList

List of possible attributes of this element.

getChildElementsback to summary
public NodeList getChildElements()

Returns an NodeList containing the possible Element names that can appear as children of this type of element.

Returns:NodeList

List of possible children element types of this element.

getDefinedElementTypesback to summary
public NodeList getDefinedElementTypes()

The list of qualified element names defined in the abstract schema.

getParentElementsback to summary
public NodeList getParentElements()

Returns an NodeList containing the possible Element names that can appear as a parent of this type of element.

Returns:NodeList

List of possible parent element types of this element.

isElementDefinedback to summary
public boolean isElementDefined(String elemTypeName)

Determines if this element is defined in the currently active AS.

Parameters
elemTypeName:String

Name of element.

Returns:boolean

A boolean that is true if the element is defined, false otherwise.

isElementDefinedNSback to summary
public boolean isElementDefinedNS(String elemTypeName, String namespaceURI, String name)

Determines if this element in this namespace is defined in the currently active AS.

Parameters
elemTypeName:String

Name of element.

namespaceURI:String

namespaceURI of namespace.

name:String

Qualified name of namespace. This is for sub-elements.

Returns:boolean

A boolean that is true if the element is defined, false otherwise.