| 构造器和说明 |
|---|
ElementFilter()
Select only the Elements.
|
ElementFilter(Namespace namespace)
Select only the Elements with the supplied Namespace.
|
ElementFilter(java.lang.String name)
Select only the Elements with the supplied name in any Namespace.
|
ElementFilter(java.lang.String name,
Namespace namespace)
Select only the Elements with the supplied name and Namespace.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns whether the two filters are equivalent (i.e. the
matching names and namespace are equivalent).
|
Element |
filter(java.lang.Object content)
Check to see if the object matches a predefined set of rules.
|
int |
hashCode() |
java.lang.String |
toString() |
public ElementFilter()
public ElementFilter(java.lang.String name)
name - The name of the Element.public ElementFilter(Namespace namespace)
namespace - The namespace the Element lives in.public ElementFilter(java.lang.String name,
Namespace namespace)
name - The name of the Element.namespace - The namespace the Element lives in.public Element filter(java.lang.Object content)
content - The object to verify.true if the objected matched a predfined
set of rules.public boolean equals(java.lang.Object obj)
equals 在类中 java.lang.Objectobj - the object to compare againstpublic int hashCode()
hashCode 在类中 java.lang.Objectpublic java.lang.String toString()
toString 在类中 java.lang.Object