public class AstConcreteClafer extends AstClafer
claferClafer
Modifier and Type | Method and Description |
---|---|
AstConcreteClafer |
extending(AstAbstractClafer superClafer)
Set the supertype of this Clafer.
|
Card |
getCard()
Returns this Clafer's cardinality.
|
AstClafer |
getParent()
Returns this Clafer's parent.
|
boolean |
hasParent()
Checks if this Clafer has a parent.
|
AstConcreteClafer |
refTo(AstClafer targetType)
Set this Clafer's reference to target type.
|
AstConcreteClafer |
refToUnique(AstClafer targetType)
Set this Clafer's reference to target type along with a uniqueness
constraint.
|
AstConcreteClafer |
withCard(Card card)
Set this Clafer's cardinality.
|
AstConcreteClafer |
withCard(int low)
Set this Clafer's low cardinality and set the high cardinality to
unbounded.
|
AstConcreteClafer |
withCard(int low,
int high)
Set this Clafer's cardinality.
|
AstConcreteClafer |
withGroupCard(Card groupCard)
Set this Clafer's group cardinality.
|
AstConcreteClafer |
withGroupCard(int low)
Set this Clafer's low group cardinality and set the high group
cardinality to unbounded.
|
AstConcreteClafer |
withGroupCard(int low,
int high)
Set this Clafer's group cardinality.
|
addChild, addConstraint, equals, getChildren, getConstraints, getGroupCard, getName, getRef, getSuperClafer, hasChildren, hasConstraints, hashCode, hasRef, hasSuperClafer, toString
public boolean hasParent()
true
if and only if this Clafer has a parent,
false
otherwisepublic AstConcreteClafer withCard(Card card)
card
- the cardinalitypublic AstConcreteClafer withCard(int low)
low
- the low group cardinalitypublic AstConcreteClafer withCard(int low, int high)
low
- the low cardinalityhigh
- the high cardinalitypublic AstConcreteClafer withGroupCard(Card groupCard)
withGroupCard
in class AstClafer
groupCard
- the group cardinalitypublic AstConcreteClafer withGroupCard(int low)
withGroupCard
in class AstClafer
low
- the low group cardinalitypublic AstConcreteClafer withGroupCard(int low, int high)
withGroupCard
in class AstClafer
low
- the low group cardinalityhigh
- the high group cardinalitypublic AstConcreteClafer extending(AstAbstractClafer superClafer)
public AstConcreteClafer refTo(AstClafer targetType)
public AstConcreteClafer refToUnique(AstClafer targetType)
refToUnique
in class AstClafer
targetType
- the type to refer toCopyright © 2013. All Rights Reserved.