public class PropertyValueRestriction extends PropertyRestriction implements java.lang.Cloneable
Represents a attributeValueRestriction tag for a ClassExpressions.
Created on 24-Mar-2005 Committed by $Author: poettler_ric $
Modifier and Type | Field and Description |
---|---|
(package private) Comparator |
comparator |
(package private) ValueExpression |
value |
variable
Constructor and Description |
---|
PropertyValueRestriction()
Constructs a simple PropertyValueRestriction
|
PropertyValueRestriction(Comparator comp,
ValueExpression v)
Constructs a PropertyValueRestriction with the given restriction.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(EDOALVisitor visitor) |
TypeCheckingVisitor.TYPE |
accept(TypeCheckingVisitor visitor) |
Comparator |
getComparator() |
ValueExpression |
getValue() |
void |
setComparator(Comparator comp) |
void |
setValue(ValueExpression v) |
getVariable, setVariable
Comparator comparator
ValueExpression value
public PropertyValueRestriction()
java.lang.NullPointerException
- if the restriction is nullpublic PropertyValueRestriction(Comparator comp, ValueExpression v)
comp
- the comparator between the restricted property and the restricting valuev
- the target restricting valuejava.lang.NullPointerException
- if the restriction is nullpublic void accept(EDOALVisitor visitor) throws AlignmentException
accept
in interface ValueExpression
accept
in class Expression
AlignmentException
public TypeCheckingVisitor.TYPE accept(TypeCheckingVisitor visitor) throws AlignmentException
accept
in interface ValueExpression
accept
in class Expression
AlignmentException
public Comparator getComparator()
public void setComparator(Comparator comp)
public ValueExpression getValue()
public void setValue(ValueExpression v)
(C) INRIA & friends, 2003-2020