@Immutable public class Element extends Object implements Serializable
| Constructor and Description |
|---|
Element(Node node)
Create a new Element.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equalAttributes(Element otherElement)
Are all the attributes the same?
|
boolean |
equalId(Element otherElement)
Are both Id's the same?
|
boolean |
equals(Object object) |
boolean |
equalText(Element otherElement)
Are both the text equal?
|
String |
getAttributeOrNull(String attribute) |
com.google.common.collect.ImmutableMap<String,String> |
getAttributes() |
String |
getElementId()
Search for the attribute "id" and return the value.
|
Node |
getNode() |
String |
getTag() |
String |
getText() |
int |
hashCode() |
String |
toString() |
public boolean equalAttributes(Element otherElement)
otherElement - the other element to comparepublic boolean equalId(Element otherElement)
otherElement - the other element to comparepublic boolean equalText(Element otherElement)
otherElement - the other element to comparepublic String getElementId()
public String getTag()
public String getText()
public String getAttributeOrNull(String attribute)
attribute - the attribute name.null if the attribute cannot be found.public Node getNode()
Copyright © 2007-2013. All Rights Reserved.