|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.dbcore.parameters.Parameter
story.dbcore.parameters.BooleanReturnParameter
story.dbcore.parameters.ThereExistsParameter
public class ThereExistsParameter
A filter parameter that queries a nested ParameterSet and tests the number of results against a constant. Useful for provisional matches, such as "either node X is related to node Y, or Node X has a parent related to node Y," the latter half of which would use this class.
Constructor Summary | |
---|---|
ThereExistsParameter(ParameterSet query,
ComparisonType comparisonType,
int target)
Constructor. |
Method Summary | |
---|---|
NodeAddressSet |
assumedNodes()
Each concretizing class needs to provide a list of nodes that it assumes exist prior to evaluation, i.e., concrete nodes with which it is constructed. |
ComparisonType |
getComparisonType()
|
ParameterSet |
getQuery()
|
int |
getTarget()
|
Parameter |
makeCopy()
All Parameters must include a self-duplication function. |
ReferenceReqSet |
referenceRequirements()
Each concretizing class needs to provide a ReferenceReqSet of all the references which must be set prior to the parameter's evaluation. |
java.lang.StringBuffer |
specificRender()
Render as a StringBuffer |
Methods inherited from class story.dbcore.parameters.Parameter |
---|
makeClone, render |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThereExistsParameter(ParameterSet query, ComparisonType comparisonType, int target) throws Scheherexception
query
- The parameters to query.comparisonType
- Whether to report satisfaction if the
number of matches is greater than, less than or equal to the
target.target
- The target number of matches to anticipate for
the query, interpreted as per comparisonType.
Scheherexception
Method Detail |
---|
public ParameterSet getQuery()
public ComparisonType getComparisonType()
public int getTarget()
public java.lang.StringBuffer specificRender() throws Scheherexception
specificRender
in class Parameter
Scheherexception
public ReferenceReqSet referenceRequirements()
Parameter
referenceRequirements
in class Parameter
public Parameter makeCopy()
Parameter
makeCopy
in class Parameter
public NodeAddressSet assumedNodes()
Parameter
assumedNodes
in class Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |