|
|||||||||
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 | +--com.iphrase.runtime.query.constraint.Disjunction
Represent a collection of Constraint
instances
ORed together by this disjunction.
Note that neither ArrayList (nor List) support setSize(), so I've implemented this as a Vector.
Constructor Summary | |
Disjunction()
Create an empty constraint disjunction. |
|
Disjunction(Constraint constraint)
Construct a disjunction from a single constraint. |
Method Summary | |
void |
cull(Constraint constraint)
Cull a constraint from this disjunction. |
boolean |
matches(Constraint c)
Determine whether this disjunction has any constraints that match (as defined by Constraint.matches(com.iphrase.runtime.query.constraint.Constraint) ) the designated constraint. |
void |
merge(Constraint constraint)
Merge a constraint into this disjunction. |
static Disjunction |
newInstance(java.lang.String state)
|
java.lang.String |
toString()
Serialize this disjunction using the OneStep serialization format. |
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, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
iterator, listIterator, listIterator |
Constructor Detail |
public Disjunction()
public Disjunction(Constraint constraint)
constraint
- Constraint
to be added to new disjunctionMethod Detail |
public void merge(Constraint constraint)
cull(com.iphrase.runtime.query.constraint.Constraint)
matches,
then add the designated constraint.constraint
- the designated Constraint
to mergepublic void cull(Constraint constraint)
matches(com.iphrase.runtime.query.constraint.Constraint)
)
the designated constraint.constraint
- the designated Constraint
to cullpublic boolean matches(Constraint c)
Constraint.matches(com.iphrase.runtime.query.constraint.Constraint)
) the designated constraint.c
- Constraint
to be matchedtrue
if there is a match, else false
public java.lang.String toString()
Object.toString()
toString
in class java.util.Vector
String
of this disjunctionpublic static Disjunction newInstance(java.lang.String state) throws ArgumentError
|
© Copyright 2005, 2006. IBM Corporation. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |