|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter 11g Release 1 (11.1.1.3.0) E15995-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.webcenter.search.Predicate
oracle.webcenter.search.NamedPredicate
oracle.webcenter.search.AttributePredicate<T>
public class AttributePredicate<T>
This represents an attribute criterion that compares an attribute with a value using a String comparator. This class is generic so one can instantiate it with a type argument. The type will be used to check against value being used to do the comparison.
Constructor Summary | |
---|---|
AttributePredicate(QName name, java.lang.String comparator, T value) Creates an Attribute Predicate with a name, a comparator and a value. |
Method Summary | |
---|---|
AttributePredicate<T> |
clonePredicate() Clones the AttributePredicate so that values of types like Calendar won't be directly manipulated by consumers. |
protected T |
getClonedValue(T value) |
java.lang.String |
getComparator() Which comparator do we use for comparison? |
QName |
getName() Returns the name of the attribute being compared. |
T |
getValue() The value to compare the attribute to. |
void |
setComparator(java.lang.String comparator) Sets the comparator to use for this comparison. |
void |
setName(QName name) Sets the name of the attribute. |
void |
setValue(T value) Sets the value to compare this attribute to. |
java.lang.String |
toString() A String version of the AttributePredicate. |
protected java.lang.String |
toString(T value) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AttributePredicate(QName name, java.lang.String comparator, T value)
name
- the name of the attributecomparator
- the String comparator with which to use against the valuevalue
- the value to compare againstMethod Detail |
---|
public QName getName()
getName
in class NamedPredicate
public java.lang.String getComparator()
ComparatorConstants
public T getValue()
public void setName(QName name)
name
- a QName object to be the name of the attributepublic void setComparator(java.lang.String comparator)
comparator
- a String comparator object to useComparatorConstants
public void setValue(T value)
value
- the Object value to compare this attribute toprotected java.lang.String toString(T value)
protected T getClonedValue(T value)
public java.lang.String toString()
toString
in class java.lang.Object
public AttributePredicate<T> clonePredicate()
clonePredicate
in class Predicate
|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter 11g Release 1 (11.1.1.3.0) E15995-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |