Package net.anotheria.anodoc.query2
Class QueryContainsProperty<T>
- java.lang.Object
-
- net.anotheria.anodoc.query2.QueryProperty
-
- net.anotheria.anodoc.query2.QueryContainsProperty<T>
-
- All Implemented Interfaces:
java.io.Serializable
public class QueryContainsProperty<T> extends QueryProperty
Query to List/Array Property. Passes only if Property contains all queried values. IMPORTANT:Not properly tested yet. Use on own risk!!!!- Version:
- $Id: $Id
- Author:
- denis
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QueryContainsProperty(java.lang.String aName, java.util.Collection<T> aValues)Constructor for QueryContainsProperty.QueryContainsProperty(java.lang.String aName, T... aValues)Constructor for QueryContainsProperty.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandoesMatch(java.lang.Object o)doesMatch.java.lang.StringgetComparator()Returns the comparator operation for this query.java.lang.ObjectgetValue()Getter for the fieldvalue.booleanunprepaireable()unprepaireable.-
Methods inherited from class net.anotheria.anodoc.query2.QueryProperty
getName, getOriginalValue, setName, setValue, toString
-
-
-
-
Constructor Detail
-
QueryContainsProperty
public QueryContainsProperty(java.lang.String aName, T... aValues)Constructor for QueryContainsProperty.
- Parameters:
aName- aStringobject.aValues- a T object.
-
QueryContainsProperty
public QueryContainsProperty(java.lang.String aName, java.util.Collection<T> aValues)Constructor for QueryContainsProperty.
- Parameters:
aName- aStringobject.aValues- aCollectionobject.
-
-
Method Detail
-
doesMatch
public boolean doesMatch(java.lang.Object o)
doesMatch.
- Overrides:
doesMatchin classQueryProperty- Parameters:
o- aObjectobject.- Returns:
- a boolean.
-
getComparator
public java.lang.String getComparator()
Returns the comparator operation for this query.- Overrides:
getComparatorin classQueryProperty- Returns:
- a
Stringobject.
-
getValue
public java.lang.Object getValue()
Getter for the field
value.- Overrides:
getValuein classQueryProperty- Returns:
- a
Objectobject.
-
unprepaireable
public boolean unprepaireable()
unprepaireable.
- Overrides:
unprepaireablein classQueryProperty- Returns:
- a boolean.
-
-