Package com.arbortext.epic
Interface AElement
- All Known Implementing Classes:
ElementImpl
public interface AElement
The PTC Arbortext extension to the W3C DOM
Element interface.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortThe element is declared as ANY content in the DTD.static final shortThe element is declared as CDATA in the DTD.static final shortThe element is declared as ELEMENT content in the DTD.static final shortThe element is declared as EMPTY content in the DTD.static final shortThe element is declared as MIXED content in the DTD.static final shortThe element is declared as RCDATA in the DTD.static final shortThe element is not declared in the DTD. -
Method Summary
Modifier and TypeMethodDescriptiongetElementsByAttribute(String name, String value, short selector) Returns aNodeListof all descendantElementsthat match the given attribute name and attribute value, in the order in which they are encountered in a pre-order traversal of thisElementtree.getElementsByAttributeNS(String namespaceURI, String localName, String value, short selector) Returns aNodeListof all descendantElementsthat match the given attribute namespace URI, local name, and attribute value, in the order in which they are encountered in a pre-order traversal of thisElementtree.getInternalAttribute(String name) Returns the value of an attribute as a string.getInternalAttributes(boolean includeDefaults) Returns aPropertyMapcontaining all attribute names and values.TheTableCellassociated with thisAElement.TheTableColumnassociated with thisAElement.TheTableGridassociated with thisAElement.TheTableRowassociated with thisAElement.TheTableRuleassociated with thisAElement.TheTableSetassociated with thisAElement.shortAn integer constant giving the declared content type for the element in the document type.booleanReturns whether thisElementis a part of table markup.booleanDeletes an attribute value.booleansetInternalAttribute(String name, String value) Sets an attribute value.
-
Field Details
-
UNDEFINED_CONTENT
static final short UNDEFINED_CONTENTThe element is not declared in the DTD.- See Also:
-
CDATA_CONTENT
static final short CDATA_CONTENTThe element is declared as CDATA in the DTD.- See Also:
-
RCDATA_CONTENT
static final short RCDATA_CONTENTThe element is declared as RCDATA in the DTD.- See Also:
-
EMPTY_CONTENT
static final short EMPTY_CONTENTThe element is declared as EMPTY content in the DTD.- See Also:
-
ELEMENT_CONTENT
static final short ELEMENT_CONTENTThe element is declared as ELEMENT content in the DTD.- See Also:
-
ANY_CONTENT
static final short ANY_CONTENTThe element is declared as ANY content in the DTD.- See Also:
-
MIXED_CONTENT
static final short MIXED_CONTENTThe element is declared as MIXED content in the DTD.- See Also:
-
-
Method Details
-
isTableMarkup
boolean isTableMarkup()Returns whether thisElementis a part of table markup.- Returns:
- Returns
trueif thisElementnode is part of table markup. Returnsfalseotherwise. - Since:
- Epic 4.1
-
getTagContentType
short getTagContentType()An integer constant giving the declared content type for the element in the document type. This attribute is deprecated in favor of the contentType attribute in the ElementEditVAL interface which is a W3C standard attribute that returns similar information.- Since:
- Epic 4.1
-
getElementsByAttribute
Returns aNodeListof all descendantElementsthat match the given attribute name and attribute value, in the order in which they are encountered in a pre-order traversal of thisElementtree.- Parameters:
name- Specifies the name of the attribute to match. The value"*"matches all attribute names.value- Specifies the value of the attribute to match.selector- Specifies how the attribute value should be matched. When selector is0, the value parameter is ignored. When selector is1, only the elements that match both the name and the value are included.- Returns:
- A list of matching element nodes.
- Throws:
DOMException- SYNTAX_ERR: If selector is invalid.
INVALID_CHARACTER_ERR: If name is namespace qualified.- Since:
- Epic 4.1
-
getElementsByAttributeNS
NodeList getElementsByAttributeNS(String namespaceURI, String localName, String value, short selector) throws DOMException Returns aNodeListof all descendantElementsthat match the given attribute namespace URI, local name, and attribute value, in the order in which they are encountered in a pre-order traversal of thisElementtree.- Parameters:
namespaceURI- The namespace URI of the attribute to retrieve. The value"*"matches all namespaces.localName- Specifies the local name of the attribute to match. The value"*"matches all local attribute names.value- Specifies the value of the attribute to match.selector- Specifies how the attribute value should be matched. When selector is0, the value parameter is ignored. When selector is1, only the elements that match both the name and the value are included.- Returns:
- A list of matching element nodes.
- Throws:
DOMException- SYNTAX_ERR: If selector is invalid.
INVALID_CHARACTER_ERR: If localname is namespace qualified.- Since:
- Epic 4.1
-
getTableSet
TableSet getTableSet()TheTableSetassociated with thisAElement. Null if none.- Since:
- Epic 4.3
-
getTableGrid
TableGrid getTableGrid()TheTableGridassociated with thisAElement. Null if none.- Since:
- Epic 4.3
-
getTableCell
TableCell getTableCell()TheTableCellassociated with thisAElement. Null if none.- Since:
- Epic 4.3
-
getTableColumn
TableColumn getTableColumn()TheTableColumnassociated with thisAElement. Null if none.- Since:
- Epic 4.3
-
getTableRow
TableRow getTableRow()TheTableRowassociated with thisAElement. Null if none.- Since:
- Epic 4.3
-
getTableRule
TableRule getTableRule()TheTableRuleassociated with thisAElement. Null if none.- Since:
- Epic 4.3
-
getInternalAttribute
Returns the value of an attribute as a string. Allows examination of Arbortext-specific internal attributes, which are not supported using the standard DOM interfaces.- Parameters:
name- Attribute name.- Returns:
- Attribute value or
nullif no such attribute is defined. - Since:
- Epic 4.4
-
getInternalAttributes
Returns aPropertyMapcontaining all attribute names and values.
The list includes Arbortext internal attributes that are excluded from standard DOM processing.- Parameters:
includeDefaults- IfTrue, default attribute values are included.- Returns:
- Map of attribute name/value pairs.
- Since:
- Epic 4.4
-
setInternalAttribute
Sets an attribute value. Allows setting of Arbortext internal attributes which are excluded from standard DOM processing.- Parameters:
name- Name of attribute to set.value- New value for attribute.- Returns:
- Returns
trueif a new attribute value was stored. Returnsfalseotherwise. - Since:
- Epic 4.4
-
removeInternalAttribute
Deletes an attribute value. Allows deletion of Arbortext internal attributes which are excluded from standard DOM processing.- Parameters:
name- Name of attribute to delete.- Returns:
- Returns
trueif the attribute was deleted. Returnsfalseotherwise. - Since:
- Arbortext 5.4
-