be.ac.vub.cocompose.lang.impl.constraints
Class DefaultAndConstraint
java.lang.Object
be.ac.vub.cocompose.lang.impl.DefaultElement
be.ac.vub.cocompose.lang.impl.core.DefaultModelElement
be.ac.vub.cocompose.lang.impl.core.DefaultNamespace
be.ac.vub.cocompose.lang.impl.constraints.DefaultConstraint
be.ac.vub.cocompose.lang.impl.constraints.DefaultCompositeConstraint
be.ac.vub.cocompose.lang.impl.constraints.DefaultAndConstraint
- All Implemented Interfaces:
- AndConstraint, Cloneable, CompositeConstraint, Constraint, Element, ModelElement, Namespace, VisitedElement
- public class DefaultAndConstraint
- extends DefaultCompositeConstraint
- implements AndConstraint
Boolean "and" composite constraint.
- Since:
- 0.2.0
- Version:
- 0.2.0
- Author:
- Dennis Wagelaar
Methods inherited from class be.ac.vub.cocompose.lang.impl.core.DefaultNamespace |
addOwnedElement, getDeepOwnedElement, getDeepOwnedElements, getOwnedElement, getOwnedElementId, getOwnedElements, getOwnedElements, getOwnedIds, isRegistered, registerNameChange, translateIndex, translateIndex |
Methods inherited from interface be.ac.vub.cocompose.lang.core.Namespace |
addOwnedElement, addOwnedElement, getDeepOwnedElement, getDeepOwnedElements, getOwnedElement, getOwnedElementId, getOwnedElements, getOwnedElements, getOwnedIds, isRegistered, registerNameChange, removeOwnedElement |
DefaultAndConstraint
public DefaultAndConstraint()
accept
public void accept(ModelVisitor modelVisitor)
throws ModelElementException
- Accepts a visitor.
- Specified by:
accept
in interface VisitedElement
- Overrides:
accept
in class DefaultCompositeConstraint
- Parameters:
modelVisitor
- The visitor to accept.
- Throws:
ModelElementException
acceptSuper
public void acceptSuper(ModelVisitor modelVisitor)
throws ModelElementException
- Invokes superclass accept().
- Overrides:
acceptSuper
in class DefaultCompositeConstraint
- Parameters:
modelVisitor
- The visitor to accept.
- Throws:
ModelElementException
- See Also:
accept(ModelVisitor)
concreteCheck
protected void concreteCheck()
throws ModelElementException
- Checks whether the constraint holds.
- Specified by:
concreteCheck
in class DefaultConstraint
- Throws:
ModelElementException
- - if the constraint doesn't hold.