|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jdom.filter.ElementFilter
The ElementFilter
when applied to a FilterList
will only allow Elements
to be visible.
Field Summary | |
protected java.lang.String |
name
The element name |
protected Namespace |
namespace
The element namespace |
Constructor Summary | |
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. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Returns true if object is instance of ElementFilter and has the same parent Element, name, and namespace as this filter. |
boolean |
matches(java.lang.Object obj)
Check to see if the object matches a predefined set of rules. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String name
protected Namespace namespace
Constructor Detail |
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.Method Detail |
public boolean matches(java.lang.Object obj)
matches
in interface Filter
obj
- The object to verify.
true
if the objected matched a predfined
set of rules.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
true
if the Filters are equal
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |