| Modifier and Type | Method and Description |
|---|---|
| public AttributeSet | Returns: the attributes for the elementFetches the collection of attributes this element contains. |
| public Document | |
| public Element | Returns: the child elementthe specified index >= 0 index)Fetches the child element at the given index. |
| public int | Returns: the number of child elements >= 0Gets the number of child elements contained by this element. |
| public int | Returns: the element index >= 0the specified offset >= 0 offset)Gets the child element index closest to the given offset. |
| public int | Returns: the ending offset > getStartOffset() and <= getDocument().getLength() + 1Fetches the offset from the beginning of the document that this element ends at. |
| public String | |
| public Element | |
| public int | Returns: the starting offset >= 0 and < getEndOffset();Fetches the offset from the beginning of the document that this element begins at. |
| public boolean |
| getAttributes | back to summary |
|---|---|
| public AttributeSet getAttributes() Fetches the collection of attributes this element contains.
| |
| getDocument | back to summary |
|---|---|
| public Document getDocument() Fetches the document associated with this element.
| |
| getElement | back to summary |
|---|---|
| public Element getElement(int index) Fetches the child element at the given index.
| |
| getElementCount | back to summary |
|---|---|
| public int getElementCount() Gets the number of child elements contained by this element. If this element is a leaf, a count of zero is returned.
| |
| getElementIndex | back to summary |
|---|---|
| public int getElementIndex(int offset) Gets the child element index closest to the given offset.
The offset is specified relative to the beginning of the
document. Returns
| |
| getEndOffset | back to summary |
|---|---|
| public int getEndOffset() Fetches the offset from the beginning of the document that this element ends at. If this element has children, this will be the end offset of the last child. As a document position, there is an implied backward bias.
All the default
| |
| getName | back to summary |
|---|---|
| public String getName() Fetches the name of the element. If the element is used to represent some type of structure, this would be the type name.
| |
| getParentElement | back to summary |
|---|---|
| public Element getParentElement() Fetches the parent element. If the element is a root level
element returns
| |
| getStartOffset | back to summary |
|---|---|
| public int getStartOffset() Fetches the offset from the beginning of the document that this element begins at. If this element has children, this will be the offset of the first child. As a document position, there is an implied forward bias.
| |
| isLeaf | back to summary |
|---|---|
| public boolean isLeaf() Is this element a leaf element? An element that
may have children, even if it currently
has no children, would return
| |