Generated by
JDiff

Class com.itextpdf.styledxmlparser.jsoup.nodes.Element

Documentation changed from old to new.

Added Constructors
Element( String) Create a new, standalone element.
 

Changed Constructors
Element( Tag, String ) Documentation changed from old to new.
Create a new Element from a Tag and a base URI.
Element( Tag, String , Attributes ) Documentation changed from old to new.
Create a new, standalone Element.
 

Removed Methods
String  id() Get the {@code id} attribute of this element.
Elements  select( String) Find elements that match the Selector CSS query, with this element as the starting context.
 

Added Methods
Element  appendChildren( Collection) Insert the given nodes to the end of this Element's children.
Element  appendTo( Element) Add this element to the supplied parent element, as its next child.
int  childrenSize() Get the number of child nodes of this element that are elements.
Node  clearAttributes()  
Element  closest( Evaluator) Find the closest element up the tree of parents that matches the specified evaluator.
Element  closest( String) Find the closest element up the tree of parents that matches the specified CSS query.
void  doSetBaseUri( String)  
Node  filter( NodeFilter)  
boolean  hasAttributes()  
boolean  hasChildNodes() Internal test to check if a nodelist object has been created.
Element  id( String) Set the {@code id} attribute of this element.
String  id() Get the {@code id} attribute of this element.
Element  insertChildren( int, Node[] ) Inserts the given child nodes into this element at the specified index.
boolean  is( Evaluator) Check if this element matches the given evaluator.
boolean  is( String) Checks if this element matches the given Selector CSS query.
Elements  nextElementSiblings() Get each of the sibling elements that come after this element.
String  normalName() Get the normalized name of this Element's tag.
Element  prependChildren( Collection) Insert the given nodes to the start of this Element's children.
Elements  previousElementSiblings() Get each of the element siblings before this element.
Node  root()  
Elements  select( Evaluator) Find elements that match the supplied Evaluator.
Elements  select( String) Find elements that match the Selector CSS query, with this element as the starting context.
Element  selectFirst( Evaluator) Finds the first Element that matches the supplied Evaluator, with this element as the starting context, or {@code null} if none match.
Element  selectFirst( String) Find the first Element that matches the Selector CSS query, with this element as the starting context.
Node  shallowClone()  
String  wholeText() Get the (unencoded) text of all children of this element, including any newlines and spaces present in the original.
 

Changed Methods
Element  addClass( String) Documentation changed from old to new.
Add a class name to this element's {@code class} attribute.
Element  appendChild( Node) Documentation changed from old to new.
Insert a node to the end of this Element's children.
Element  appendElement( String) Documentation changed from old to new.
Create a new element by tag name, and add it as the last child.
Element  appendText( String) Documentation changed from old to new.
Create and append a new TextNode to this element.
Attributes  attributes() Documentation changed from old to new.
Method was inherited from Node, but is now defined locally.
 
String  baseUri() Documentation changed from old to new.
Method was inherited from Node, but is now defined locally.
 
Element  child( int) Documentation changed from old to new.
Get a child element of this element, by its 0-based index number.
int  childNodeSize() Documentation changed from old to new.
Method was inherited from Node, but is now defined locally. Change from final to non-final.
 
Elements  children() Documentation changed from old to new.
Get this element's child elements.
String  data() Documentation changed from old to new.
Get the combined data of this element.
Node  doClone( Node) Method was inherited from Node, but is now defined locally.  
Node  empty() Change in return type from Element to Node.
Remove all of the element's child nodes.
List  ensureChildNodes() Change in return type from void to List.
Method was inherited from Node, but is now defined locally.
 
Element  firstElementSibling() Documentation changed from old to new.
Gets the first Element sibling of this element.
Elements  getAllElements() Documentation changed from old to new.
Find all elements under this element (including self, and children of children).
Elements  getElementsByAttributeValue( String, String ) Documentation changed from old to new.
Find elements that have an attribute with the specific value.
Elements  getElementsByAttributeValueContaining( String, String ) Documentation changed from old to new.
Find elements that have attributes whose value contains the match string.
Elements  getElementsByAttributeValueEnding( String, String ) Documentation changed from old to new.
Find elements that have attributes that end with the value suffix.
Elements  getElementsByAttributeValueNot( String, String ) Documentation changed from old to new.
Find elements that either do not have this attribute, or have it with a different value.
Elements  getElementsByAttributeValueStarting( String, String ) Documentation changed from old to new.
Find elements that have attributes that start with the value prefix.
Elements  getElementsByClass( String) Documentation changed from old to new.
Find elements that have this class, including or under this element.
boolean  hasText() Documentation changed from old to new.
Test if this element has any text content (that is not just whitespace).
boolean  isBlock() Documentation changed from old to new.
Test if this element is a block-level element.
Element  lastElementSibling() Documentation changed from old to new.
Gets the last element sibling of this element.
Element  nextElementSibling() Documentation changed from old to new.
Gets the next sibling element of this element.
String  ownText() Documentation changed from old to new.
Gets the (normalized) text owned by this element only; does not get the combined text of all children.
Element  prependChild( Node) Documentation changed from old to new.
Add a node to the start of this element's children.
Element  prependElement( String) Documentation changed from old to new.
Create a new element by tag name, and add it as the first child.
Element  prependText( String) Documentation changed from old to new.
Create and prepend a new TextNode to this element.
Node  removeAttr( String) Documentation changed from old to new.
Method was inherited from Node, but is now defined locally.
 
Element  removeClass( String) Documentation changed from old to new.
Remove a class name from this element's {@code class} attribute.
Tag  tag() Documentation changed from old to new.
Get the Tag for this element.
String  toString() Documentation changed from old to new.
Method was locally defined, but is now inherited from Node.
Gets this node's outer HTML.
Element  toggleClass( String) Documentation changed from old to new.
Toggle a class name on this element's {@code class} attribute: if present, remove it; otherwise add it.
Node  traverse( NodeVisitor) Documentation changed from old to new.
Method was inherited from Node, but is now defined locally.
 
Element  attr( String, boolean ) Documentation changed from old to new.
Set a boolean attribute value on this element.
Node  attr( String, String ) Documentation changed from old to new.
Set an attribute value on this element.
Element  classNames( Set) Documentation changed from old to new.
Set the element's {@code class} attribute to the supplied class names.
Elements  getElementsByAttributeValueMatching( String, String ) Documentation changed from old to new.
Find elements that have attributes whose values match the supplied regular expression.
Elements  getElementsMatchingOwnText( String) Documentation changed from old to new.
Find elements whose own text matches the supplied regular expression.
Elements  getElementsMatchingText( String) Documentation changed from old to new.
Find elements whose text matches the supplied regular expression.
Appendable  html( Appendable) Documentation changed from old to new.
 
String  html() Documentation changed from old to new.
Retrieves the element's inner HTML.
Element  tagName( String) Documentation changed from old to new.
Change (rename) the tag of this element.
String  tagName() Documentation changed from old to new.
Get the name of the tag for this element.
Element  text( String) Documentation changed from old to new.
Set the text of this element.
String  text() Documentation changed from old to new.
Gets the normalized, combined text of this element and all its children.