org.jdom2.Element objects.
| Modifier and Type | Field and Description |
|---|---|
| private String | name
The element name |
| private Namespace | namespace
The element namespace |
| private static final long | serialVersionUID
JDOM2 Serialization: Default mechanism
|
| Access | Constructor and Description |
|---|---|
| public | |
| public | ElementFilter(String
The name of the Element. name)Select only the Elements with the supplied name in any Namespace. |
| public | ElementFilter(Namespace
The namespace the Element lives in. namespace)Select only the Elements with the supplied Namespace. |
| public | ElementFilter(String
The name of the Element. name, Namespace The namespace the Element lives in. namespace)Select only the Elements with the supplied name and Namespace. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: whether the two filters are equalthe object to compare against obj)Overrides java. |
| public Element | Returns: true if the objected matched a predfined
set of rules.The object to verify. content)Implements org. |
| public int | |
| public String |
| name | back to summary |
|---|---|
| private String name The element name | |
| namespace | back to summary |
|---|---|
| private Namespace namespace The element namespace | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. JDOM2 Serialization: Default mechanism | |
| ElementFilter | back to summary |
|---|---|
| public ElementFilter() Select only the Elements. | |
| ElementFilter | back to summary |
|---|---|
| public ElementFilter(String name) Select only the Elements with the supplied name in any Namespace.
| |
| ElementFilter | back to summary |
|---|---|
| public ElementFilter(Namespace namespace) Select only the Elements with the supplied Namespace.
| |
| ElementFilter | back to summary |
|---|---|
| public ElementFilter(String name, Namespace namespace) Select only the Elements with the supplied name and Namespace. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Returns whether the two filters are equivalent (i.e. the matching names and namespace are equivalent). | |
| filter | back to summary |
|---|---|
| public Element filter(Object content) Implements org. Check to see if the object matches a predefined set of rules. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |