Class HasAttributeFilter
java.lang.Object
net.sf.basedb.util.overview.filter.HasAttributeFilter
public class HasAttributeFilter extends Object implements Filter<Node>
A filter implementation that checks if a value for a given attribute
exists on a node. It will evaluate to true for all
Node
:s that
has a value for a specific attribute.- Since:
- 3.0
- Author:
- Nicklas
- Last modified
- $Date $
-
Field Summary
Fields Modifier and Type Field Description private NodeAttribute<?>
attribute
private Object
value
-
Constructor Summary
Constructors Constructor Description HasAttributeFilter(NodeAttribute<?> attribute)
Create a filter that finds nodes that has value for the given attribute.HasAttributeFilter(NodeAttribute<?> attribute, Object value)
Create a filter that finds nodes that has a specific value for the given attribute. -
Method Summary
-
Field Details
-
attribute
-
value
-
-
Constructor Details
-
HasAttributeFilter
Create a filter that finds nodes that has value for the given attribute.- Parameters:
attribute
- The attribute to check
-
HasAttributeFilter
Create a filter that finds nodes that has a specific value for the given attribute.- Parameters:
attribute
- The attribute to checkvalue
- The value that must match- Since:
- 3.3
-
-
Method Details