|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.Vector | +--context.arch.storage.Conditions
This class is a container for a group of related Condition objects. Condition objects can be added and found in the container.
Field Summary | |
static java.lang.String |
CONDITIONS
Tag for conditions |
Fields inherited from class java.util.Vector |
capacityIncrement,
elementCount,
elementData |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
Conditions()
Empty constructor |
|
Conditions(DataObject data)
Constructor that takes a DataObject as a parameter. |
Method Summary | |
void |
addCondition(Condition cond)
Adds the given Condition object to the container. |
void |
addCondition(java.lang.String attribute,
int compare,
java.lang.Object value)
Adds the given attribute name, comparison and comparison value to the container. |
Condition |
getConditionAt(int index)
Returns the Condition object at the given index |
boolean |
hasCondition(Condition cond)
Determines whether the given Condition object is in the container |
boolean |
hasCondition(java.lang.String attribute,
int compare,
java.lang.Object value)
Determines whether the given attribute name and value are in the container, using the default datatype. |
int |
indexOfCondition(Condition cond)
Returns the index at which the Condition object occurs |
int |
indexOfCondition(java.lang.String name,
int compare,
java.lang.Object value)
Returns the index at which the given Condition attribute name, comparison and value occurs. |
int |
numConditions()
Returns the number of Condition objects in the container return the number of Condition objects in the container |
DataObject |
toDataObject()
Converts the Condition objects to a DataObject |
Methods inherited from class java.util.Vector |
add,
add,
addAll,
addAll,
addElement,
capacity,
clear,
clone,
contains,
containsAll,
copyInto,
elementAt,
elements,
ensureCapacity,
equals,
firstElement,
get,
hashCode,
indexOf,
indexOf,
insertElementAt,
isEmpty,
lastElement,
lastIndexOf,
lastIndexOf,
remove,
remove,
removeAll,
removeAllElements,
removeElement,
removeElementAt,
removeRange,
retainAll,
set,
setElementAt,
setSize,
size,
subList,
toArray,
toArray,
toString,
trimToSize |
Methods inherited from class java.util.AbstractList |
iterator,
listIterator,
listIterator |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String CONDITIONS
Constructor Detail |
public Conditions()
public Conditions(DataObject data)
data
- DataObject that contains condition info for retrievalMethod Detail |
public DataObject toDataObject()
public void addCondition(Condition cond)
cond
- Condition to addpublic void addCondition(java.lang.String attribute, int compare, java.lang.Object value)
attribute
- Name of the attribute to addcompare
- Comparison to usevalue
- Value for comparisonpublic Condition getConditionAt(int index)
index
- Index into the containerpublic boolean hasCondition(Condition cond)
cond
- Condition to checkpublic boolean hasCondition(java.lang.String attribute, int compare, java.lang.Object value)
attribute
- Name of the attribute to checkcompare
- Comparison to checkvalue
- Comparison value of the attribute to checkpublic int indexOfCondition(Condition cond)
att
- Condition to look forpublic int indexOfCondition(java.lang.String name, int compare, java.lang.Object value)
attribute
- Name of the attribute to look forcompare
- Comparison to look forvalue
- Comparison value to look forpublic int numConditions()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |