|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--context.arch.storage.Condition
This class is a container for a condition attribute, comparison and value.
| Field Summary | |
static java.lang.String |
COMPARE
Tag for type of comparison |
static java.lang.String |
CONDITION
Tag for AttributeCondition |
static java.lang.String |
NAME
Tag for attribute name to use in comparison |
static java.lang.String |
VALUE
Tag for value to use for comparison |
| Constructor Summary | |
Condition()
Empty constructor |
|
Condition(DataObject data)
Constructor that creates a Condition object from a DataObject. |
|
Condition(java.lang.String attribute,
int compare,
java.lang.Object value)
Constructor that takes an attribute, value and comparison |
|
| Method Summary | |
java.lang.String |
getAttribute()
Returns the name of the attribute |
int |
getCompare()
Returns the type of comparison |
java.lang.Object |
getValue()
Returns the value of the attribute to use for comparison |
void |
setAttribute(java.lang.String attribute)
Sets the name of an attribute |
void |
setCompare(int compare)
Sets the comparison to make |
void |
setValue(java.lang.Object value)
Sets the value of an attribute |
DataObject |
toDataObject()
Converts this object to a DataObject |
java.lang.String |
toString()
Returns a printable version of the condition object |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final java.lang.String NAME
public static final java.lang.String COMPARE
public static final java.lang.String VALUE
public static final java.lang.String CONDITION
| Constructor Detail |
public Condition()
public Condition(java.lang.String attribute,
int compare,
java.lang.Object value)
name - Name of attributecompare - Comparison to makevalue - Value of attribute to compare topublic Condition(DataObject data)
data - DataObject containing the condition info| Method Detail |
public DataObject toDataObject()
public void setAttribute(java.lang.String attribute)
attribute - Name of the attributepublic void setValue(java.lang.Object value)
value - Value of the attributepublic void setCompare(int compare)
compare - Comparison to makepublic java.lang.String getAttribute()
public java.lang.Object getValue()
public int getCompare()
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||