Class HasAttributeFilter
- java.lang.Object
-
- net.sf.basedb.util.overview.filter.HasAttributeFilter
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(Node node)
Evaluate if the given object should pass the filter or not.
-
-
-
Field Detail
-
attribute
private final NodeAttribute<?> attribute
-
value
private final Object value
-
-
Constructor Detail
-
HasAttributeFilter
public HasAttributeFilter(NodeAttribute<?> attribute)
Create a filter that finds nodes that has value for the given attribute.- Parameters:
attribute
- The attribute to check
-
HasAttributeFilter
public HasAttributeFilter(NodeAttribute<?> attribute, Object value)
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
-
-