Alignment API and Server 4.6 (1875M)

fr.inrialpes.exmo.align.impl.edoal
Class PropertyDomainRestriction

java.lang.Object
  extended by fr.inrialpes.exmo.align.impl.edoal.Expression
      extended by fr.inrialpes.exmo.align.impl.edoal.PathExpression
          extended by fr.inrialpes.exmo.align.impl.edoal.PropertyExpression
              extended by fr.inrialpes.exmo.align.impl.edoal.PropertyRestriction
                  extended by fr.inrialpes.exmo.align.impl.edoal.PropertyDomainRestriction
All Implemented Interfaces:
ValueExpression, Cloneable

public class PropertyDomainRestriction
extends PropertyRestriction

Represents a domainRestriction tag for PropertyExpressions.

Version:
$Id: PropertyDomainRestriction.java 1710 2012-03-23 19:53:25Z euzenat $

Field Summary
protected  ClassExpression domain
           
 
Fields inherited from class fr.inrialpes.exmo.align.impl.edoal.Expression
variable
 
Constructor Summary
PropertyDomainRestriction()
          Constructs a domainRestiction with the given restriction.
PropertyDomainRestriction(ClassExpression dom)
          Constructs a domainRestiction with the given restriction.
 
Method Summary
 void accept(EDOALVisitor visitor)
           
 TypeCheckingVisitor.TYPE accept(TypeCheckingVisitor visitor)
           
 ClassExpression getDomain()
           
 void setDomain(ClassExpression dom)
           
 
Methods inherited from class fr.inrialpes.exmo.align.impl.edoal.Expression
getVariable, setVariable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

domain

protected ClassExpression domain
Constructor Detail

PropertyDomainRestriction

public PropertyDomainRestriction()
Constructs a domainRestiction with the given restriction.

Throws:
NullPointerException - if the restriction is null

PropertyDomainRestriction

public PropertyDomainRestriction(ClassExpression dom)
Constructs a domainRestiction with the given restriction.

Parameters:
dom - the restricting class expression
Throws:
NullPointerException - if the restriction is null
Method Detail

accept

public void accept(EDOALVisitor visitor)
            throws AlignmentException
Specified by:
accept in interface ValueExpression
Specified by:
accept in class Expression
Throws:
AlignmentException

accept

public TypeCheckingVisitor.TYPE accept(TypeCheckingVisitor visitor)
                                throws AlignmentException
Specified by:
accept in interface ValueExpression
Specified by:
accept in class Expression
Throws:
AlignmentException

getDomain

public ClassExpression getDomain()

setDomain

public void setDomain(ClassExpression dom)

Alignment API and Server 4.6 (1875M)

(C) INRIA & friends, 2003-2014