Modifier and Type | Method and Description |
---|---|
abstract Element |
Tag.getElement()
Returns the element that is started or ended by this tag.
|
Element |
EndTag.getElement()
Returns the element that is ended by this end tag.
|
Element |
FormControl.getElement()
Returns the element representing this form control in the source document.
|
Element |
StartTag.getElement()
Returns the element that is started by this start tag.
|
Element |
Source.getElementById(String id)
Returns the
Element with the specified id attribute value. |
Element |
Source.getEnclosingElement(int pos)
|
Element |
Source.getEnclosingElement(int pos,
String name)
|
Element |
Segment.getFirstElement()
|
Element |
Segment.getFirstElement(String name)
|
Element |
Segment.getFirstElement(String attributeName,
Pattern valueRegexPattern)
|
Element |
Segment.getFirstElement(String attributeName,
String value,
boolean valueCaseSensitive)
|
Element |
Segment.getFirstElementByClass(String className)
|
Element |
Source.getNextElement(int pos)
Returns the
Element beginning at or immediately following the specified position in the source document. |
Element |
Source.getNextElement(int pos,
String name)
|
Element |
Source.getNextElement(int pos,
String attributeName,
Pattern valueRegexPattern)
Returns the
Element with the specified attribute name and value pattern beginning at or immediately following the specified position in the source document. |
Element |
Source.getNextElement(int pos,
String attributeName,
String value,
boolean valueCaseSensitive)
Returns the
Element with the specified attribute name/value pair beginning at or immediately following the specified position in the source document. |
Element |
Source.getNextElementByClass(int pos,
String className)
Returns the
Element with the specified class beginning at or immediately following the specified position in the source document. |
Element |
Element.getParentElement()
Returns the parent of this element in the document element hierarchy.
|
Modifier and Type | Method and Description |
---|---|
List<Element> |
Source.getAllElements()
Returns a list of all elements in this source document.
|
List<Element> |
Segment.getAllElements()
|
List<Element> |
Segment.getAllElements(StartTagType startTagType)
|
List<Element> |
Segment.getAllElements(String name)
|
List<Element> |
Segment.getAllElements(String attributeName,
Pattern valueRegexPattern)
|
List<Element> |
Segment.getAllElements(String attributeName,
String value,
boolean valueCaseSensitive)
|
List<Element> |
Segment.getAllElementsByClass(String className)
|
List<Element> |
Source.getChildElements()
Returns a list of the top-level elements in the document element hierarchy.
|
List<Element> |
Element.getChildElements()
Returns a list of the immediate children of this element in the document element hierarchy.
|
List<Element> |
Segment.getChildElements()
Returns a list of the immediate children of this segment in the document element hierarchy.
|
Iterator<Element> |
FormControl.getOptionElementIterator()
|