fr.inrialpes.exmo.align.impl.edoal
Class ClassTypeRestriction
java.lang.Object
fr.inrialpes.exmo.align.impl.edoal.Expression
fr.inrialpes.exmo.align.impl.edoal.ClassExpression
fr.inrialpes.exmo.align.impl.edoal.ClassRestriction
fr.inrialpes.exmo.align.impl.edoal.ClassTypeRestriction
- All Implemented Interfaces:
- Cloneable, Visitable
public class ClassTypeRestriction
- extends ClassRestriction
- implements Cloneable
Represents a type typeCondition tag for PropertyExpressions.
$Id: ClassTypeRestriction.java 1520 2010-10-06 07:10:00Z euzenat $
Created on 24-Mar-2005 Committed by $Author: poettler_ric $
- Version:
- $Revision: 1.5 $ $Date: 2010-03-07 21:55:23 +0100 (Sun, 07 Mar 2010) $
- Author:
- Francois Scharffe, Adrian Mocan, Richard Pöttler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
Datatype type
universal
boolean universal
ClassTypeRestriction
public ClassTypeRestriction(PathExpression p,
boolean pred,
Datatype t)
- Constructs a ClassTypeRestriction with the given restriction.
- Parameters:
p
- the restricted PathExpressionpred
- wether the constraint is universal (true) or existential (false)t
- the Datatype to which this path is restricted
- Throws:
NullPointerException
- if the restriction is null
NOTE: Currently the predicate is not visible in the syntax which only
authorises type (so universal)
ClassTypeRestriction
public ClassTypeRestriction(PathExpression p,
Datatype t)
getType
public Datatype getType()
setType
public void setType(Datatype t)
isUniversal
public boolean isUniversal()
(C) INRIA & friends, 2003-${curryear}