|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--quoggles.boxes.Box
|
+--quoggles.auxboxes.contains.Contains_Box
Input: two objects (first will be a collection most times)
Output: boolean value indicating if the two inputs are equal or the first
actually is a collection and contains the second (the collection is not
implicitly flattened). If first input is null, the result
will only be true if the second input is null as well.
For a definition of what is meant by "equal", see the javadoc of the
execute method (basically, the equals method
is used).
| Field Summary | |
private java.lang.Object |
obj1
|
private java.lang.Object |
obj2
|
| Fields inherited from class quoggles.boxes.Box |
boxExecuted, iBoxGRep, inputs, outputs, parameters |
| Constructor Summary | |
Contains_Box()
|
|
| Method Summary | |
void |
execute()
Two objects are equal if obj1.equals(obj2) holds. |
int[] |
getInputTypes()
This implementation returns ONE element, the most general type. |
int |
getNumberOfInputs()
Returns 2. |
int[] |
getOutputTypes()
Override this method to specify more restricted types for the output(s) of the box. |
void |
setInputs(java.lang.Object[] inputs)
Checks if the number of inputs is correct and sets the inputs. |
| Methods inherited from class quoggles.boxes.Box |
areAllInputsNull, getClassName, getGraphicalRepresentation, getId, getNode, getNumberOfOutputs, getOutputAt, getOutputs, getParameters, hasBeenExecuted, ignoreBox, isGraphicalRepNull, isInputSet, isInputSetAt, needsQueryRunner, removeNullValues, reset, reset, setBoxNumber, setCurrentNodesTodo, setCurrentResult, setDefaultParameters, setIgnoreBox, setInputAt, setNode, setParameters, setQueryRunner |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.Object obj1
private java.lang.Object obj2
| Constructor Detail |
public Contains_Box()
| Method Detail |
public void execute()
throws QueryExecutionException
obj1.equals(obj2) holds.
This means that two Lists are equal only if they contain
the same elements (tested via equals) in the same order.
execute in interface IBoxexecute in class BoxQueryExecutionExceptionIBox.execute()public int[] getInputTypes()
BoxgetNumberOfInputs.
getInputTypes in interface IBoxgetInputTypes in class BoxIBox.getInputTypes()public int[] getOutputTypes()
BoxgetNumberOfOutputs.
This implementation returns the same as a call to
getInputTypes yields.
getOutputTypes in interface IBoxgetOutputTypes in class BoxIBox.getOutputTypes()
public void setInputs(java.lang.Object[] inputs)
throws InvalidInputException
Boxsuper.setInputs(inputs)) so that consistency checks are
done and some flags are correctly set.
setInputs in interface IBoxsetInputs in class BoxInvalidInputExceptionIBox.setInputs(java.lang.Object[])public int getNumberOfInputs()
getNumberOfInputs in interface IBoxgetNumberOfInputs in class BoxIBox.getNumberOfInputs()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||