org.jdom2.Attribute objects.
| Modifier and Type | Field and Description |
|---|---|
| private final String | name
The element name |
| private final Namespace | namespace
The element namespace |
| private static final long | serialVersionUID
JDOM2 Serialization: Default mechanism
|
| Access | Constructor and Description |
|---|---|
| public | |
| public | AttributeFilter(String
The name of the Element. name)Select only the Elements with the supplied name in any Namespace. |
| public | AttributeFilter(Namespace
The namespace the Attribute lives in. namespace)Select only the Attributes with the supplied Namespace. |
| public | AttributeFilter(String
The name of the Attribute. name, Namespace The namespace the Attribute lives in. namespace)Select only the Attributes 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 Attribute | Returns: true if the objected matched a predfined
set of rules.The Content to verify. content)Implements org. |
| public int |
| name | back to summary |
|---|---|
| private final String name The element name | |
| namespace | back to summary |
|---|---|
| private final Namespace namespace The element namespace | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. JDOM2 Serialization: Default mechanism | |
| AttributeFilter | back to summary |
|---|---|
| public AttributeFilter() Select only the Elements. | |
| AttributeFilter | back to summary |
|---|---|
| public AttributeFilter(String name) Select only the Elements with the supplied name in any Namespace.
| |
| AttributeFilter | back to summary |
|---|---|
| public AttributeFilter(Namespace namespace) Select only the Attributes with the supplied Namespace.
| |
| AttributeFilter | back to summary |
|---|---|
| public AttributeFilter(String name, Namespace namespace) Select only the Attributes 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 Attribute filter(Object content) Implements org. Check to see if the Content 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
| |