Alignment API and Server 4.6 (1875M)

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

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.PropertyTypeRestriction
All Implemented Interfaces:
ValueExpression, Cloneable

public class PropertyTypeRestriction
extends PropertyRestriction
implements Cloneable

Represents a attributeTypeRestriction tag for a ClassExpressions.

Created on 24-Mar-2005 Committed by $Author: poettler_ric $

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

Field Summary
(package private)  Datatype type
           
 
Fields inherited from class fr.inrialpes.exmo.align.impl.edoal.Expression
variable
 
Constructor Summary
PropertyTypeRestriction()
          Constructs a simple PropertyTypeRestriction
PropertyTypeRestriction(Datatype t)
          Constructs a PropertyTypeRestriction with the given restriction.
 
Method Summary
 void accept(EDOALVisitor visitor)
           
 TypeCheckingVisitor.TYPE accept(TypeCheckingVisitor visitor)
           
 Datatype getType()
           
 void setType(Datatype t)
           
 
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

type

Datatype type
Constructor Detail

PropertyTypeRestriction

public PropertyTypeRestriction()
Constructs a simple PropertyTypeRestriction

Throws:
NullPointerException - if the restriction is null

PropertyTypeRestriction

public PropertyTypeRestriction(Datatype t)
Constructs a PropertyTypeRestriction with the given restriction.

Parameters:
t - the restricting target datatype
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

getType

public Datatype getType()

setType

public void setType(Datatype t)

Alignment API and Server 4.6 (1875M)

(C) INRIA & friends, 2003-2014