Modifier and Type | Field and Description |
---|---|
pack-priv Attr[] | |
pack-priv int | |
pack-priv int | |
pack-priv int | |
pack-priv String | |
pack-priv String | |
pack-priv int | |
pack-priv int | |
pack-priv int | |
pack-priv SchemaDOM |
Access | Constructor and Description |
---|---|
public | |
public | |
public | ElementImpl(String prefix, String localpart, String rawname, String uri, int line, int column, int offset)
|
public |
Modifier and Type | Method and Description |
---|---|
public String | |
public String | getAttribute(String
The name of the attribute to retrieve. name)Overrides com. Implements org. Retrieves an attribute value by name. |
public Attr | getAttributeNode(String
The name ( name)nodeName ) of the attribute to
retrieve.Overrides com. Implements org. Retrieves an attribute node by name. |
public Attr | getAttributeNodeNS(String
The namespace URI of the attribute to retrieve. namespaceURI, String The local name of the attribute to retrieve. localName)Overrides com. Implements org. Retrieves an |
public String | getAttributeNS(String
The namespace URI of the attribute to retrieve. namespaceURI, String The local name of the attribute to retrieve. localName)Overrides com. Implements org. Retrieves an attribute value by local name and namespace URI. |
public NamedNodeMap | getAttributes()
Overrides com. Implements org. A |
public int | |
public int | |
public Node | getFirstChild()
Overrides com. Implements org. The first child of this node. |
public Node | getLastChild()
Overrides com. Implements org. The last child of this node. |
public int | |
public Node | getNextSibling()
Overrides com. Implements org. The node immediately following this node. |
public Document | getOwnerDocument()
Overrides com. Implements org. The |
public Node | getParentNode()
Overrides com. Implements org. The parent of this node. |
public Node | getPreviousSibling()
Overrides com. Implements org. The node immediately preceding this node. |
public String | |
public String | getTagName()
Overrides com. Implements org. The name of the element. |
public boolean | hasAttribute(String
The name of the attribute to look for. name)Overrides com. Implements org. Returns |
public boolean | hasAttributeNS(String
The namespace URI of the attribute to look for. namespaceURI, String The local name of the attribute to look for. localName)Overrides com. Implements org. Returns |
public boolean | hasAttributes()
Overrides com. Implements org. Returns whether this node (if it is an element) has any attributes. |
public boolean | hasChildNodes()
Overrides com. Implements org. Returns whether this node has any children. |
private static boolean | |
public void | setAttribute(String
The name of the attribute to create or alter. name, String Value to set in string form. value)Overrides com. Implements org. Adds a new attribute. |
attrs | back to summary |
---|---|
pack-priv Attr[] attrs |
charOffset | back to summary |
---|---|
pack-priv int charOffset |
col | back to summary |
---|---|
pack-priv int col |
column | back to summary |
---|---|
pack-priv int column |
fAnnotation | back to summary |
---|---|
pack-priv String fAnnotation |
fSyntheticAnnotation | back to summary |
---|---|
pack-priv String fSyntheticAnnotation |
line | back to summary |
---|---|
pack-priv int line |
parentRow | back to summary |
---|---|
pack-priv int parentRow |
row | back to summary |
---|---|
pack-priv int row |
schemaDOM | back to summary |
---|---|
pack-priv SchemaDOM schemaDOM |
ElementImpl | back to summary |
---|---|
public ElementImpl(int line, int column, int offset) |
ElementImpl | back to summary |
---|---|
public ElementImpl(int line, int column) |
ElementImpl | back to summary |
---|---|
public ElementImpl(String prefix, String localpart, String rawname, String uri, int line, int column, int offset) |
ElementImpl | back to summary |
---|---|
public ElementImpl(String prefix, String localpart, String rawname, String uri, int line, int column) |
getAnnotation | back to summary |
---|---|
public String getAnnotation() |
getAttribute | back to summary |
---|---|
public String getAttribute(String name) Overrides com. Implements org. Doc from org. Retrieves an attribute value by name. |
getAttributeNode | back to summary |
---|---|
public Attr getAttributeNode(String name) Overrides com. Implements org. Doc from org. Retrieves an attribute node by name.
|
getAttributeNodeNS | back to summary |
---|---|
public Attr getAttributeNodeNS(String namespaceURI, String localName) Overrides com. Implements org. Doc from org. Retrieves an |
getAttributeNS | back to summary |
---|---|
public String getAttributeNS(String namespaceURI, String localName) Overrides com. Implements org. Doc from org. Retrieves an attribute value by local name and namespace URI.
|
getAttributes | back to summary |
---|---|
public NamedNodeMap getAttributes() Overrides com. Implements org. Doc from org. A |
getCharacterOffset | back to summary |
---|---|
public int getCharacterOffset() Returns the character offset. |
getColumnNumber | back to summary |
---|---|
public int getColumnNumber() Returns the column number. |
getFirstChild | back to summary |
---|---|
public Node getFirstChild() Overrides com. Implements org. Doc from org. The first child of this node. If there is no such node, this returns
|
getLastChild | back to summary |
---|---|
public Node getLastChild() Overrides com. Implements org. Doc from org. The last child of this node. If there is no such node, this returns
|
getLineNumber | back to summary |
---|---|
public int getLineNumber() Returns the line number. |
getNextSibling | back to summary |
---|---|
public Node getNextSibling() Overrides com. Implements org. Doc from org. The node immediately following this node. If there is no such node,
this returns |
getOwnerDocument | back to summary |
---|---|
public Document getOwnerDocument() Overrides com. Implements org. Doc from org. The |
getParentNode | back to summary |
---|---|
public Node getParentNode() Overrides com. Implements org. Doc from org. The parent of this node. All nodes, except |
getPreviousSibling | back to summary |
---|---|
public Node getPreviousSibling() Overrides com. Implements org. Doc from org. The node immediately preceding this node. If there is no such node,
this returns |
getSyntheticAnnotation | back to summary |
---|---|
public String getSyntheticAnnotation() |
getTagName | back to summary |
---|---|
public String getTagName() Overrides com. Implements org. Doc from org. The name of the element. If <elementExample id="demo"> ... </elementExample> , tagName has the value
"elementExample" . Note that this is case-preserving in
XML, as are all of the operations of the DOM. The HTML DOM returns
the tagName of an HTML element in the canonical
uppercase form, regardless of the case in the source HTML document.
|
hasAttribute | back to summary |
---|---|
public boolean hasAttribute(String name) Overrides com. Implements org. Doc from org. Returns
|
hasAttributeNS | back to summary |
---|---|
public boolean hasAttributeNS(String namespaceURI, String localName) Overrides com. Implements org. Doc from org. Returns |
hasAttributes | back to summary |
---|---|
public boolean hasAttributes() Overrides com. Implements org. Doc from org. Returns whether this node (if it is an element) has any attributes.
|
hasChildNodes | back to summary |
---|---|
public boolean hasChildNodes() Overrides com. Implements org. Doc from org. Returns whether this node has any children.
|
nsEquals | back to summary |
---|---|
private static boolean nsEquals(String nsURI_1, String nsURI_2) Compares two namespace URIs with an extra case for null entries |
setAttribute | back to summary |
---|---|
public void setAttribute(String name, String value) Overrides com. Implements org. Doc from org. Adds a new attribute. If an attribute with that name is already present
in the element, its value is changed to be that of the value
parameter. This value is a simple string; it is not parsed as it is
being set. So any markup (such as syntax to be recognized as an
entity reference) is treated as literal text, and needs to be
appropriately escaped by the implementation when it is written out.
In order to assign an attribute value that contains entity
references, the user must create an |