|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IExistsStatement
One of the "exists" statements. Expresses that an element in a collection exists, or that a simple attribute exists. The statement contains an optional "cardinality constraint", which declares how many elements exist in a collection, and an optional "constraint", which specifies a constraint that has to hold for each element in the collection that is checked for existence.
Abstract syntax reference:
exists (count:CardinalityConstraint)? element:ModelReference (constraint:Constraint)?
| Field Summary |
|---|
| Fields inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode |
|---|
NEWLINE |
| Method Summary | |
|---|---|
IConstraint |
getConstraint()
Return the constraint to check relative to each collection member being iterated over. |
ICardinalityConstraint |
getCount()
Return the cardinality constraint (one, two, three, at least one, etc.), if there is one. |
IModelReference |
getElement()
Return the model reference being checked for existence. |
boolean |
hasConstraint()
Return true if there is a constraint attached that is to be executed relative to collection members. |
boolean |
hasCount()
Return true if the exists statement has a counter attached to it. |
| Methods inherited from interface net.sourceforge.nrl.parser.ast.constraints.IConstraint |
|---|
getNRLDataType, setNRLDataType |
| Methods inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode |
|---|
accept, dump, getColumn, getLine, getUserData, setUserData |
| Method Detail |
|---|
IConstraint getConstraint()
hasConstraint() to check if it exists first.
ICardinalityConstraint getCount()
hasCount() to check
first.
IModelReference getElement()
boolean hasConstraint()
boolean hasCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||