fr.inrialpes.exmo.align.impl.edoal
Class ClassOccurenceRestriction
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.ClassOccurenceRestriction
- All Implemented Interfaces:
- Cloneable
public class ClassOccurenceRestriction
- extends ClassRestriction
- implements Cloneable
Represents a attributeOccurenceRestriction tag for a ClassExpressions.
- Version:
- $Id: ClassOccurenceRestriction.java 1710 2012-03-23 19:53:25Z euzenat $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
comparator
Comparator comparator
occurence
int occurence
ClassOccurenceRestriction
public ClassOccurenceRestriction(PathExpression p,
Comparator c,
int n)
- Constructs a ClassOccurenceRestriction with the given restriction.
- Parameters:
p
- the constrained PathExpressionc
- the restriction Comparatorn
- the number of occurence compared
- Throws:
NullPointerException
- if the restriction is null
accept
public void accept(EDOALVisitor visitor)
throws AlignmentException
- Specified by:
accept
in class Expression
- Throws:
AlignmentException
accept
public TypeCheckingVisitor.TYPE accept(TypeCheckingVisitor visitor)
throws AlignmentException
- Specified by:
accept
in class Expression
- Throws:
AlignmentException
getOccurence
public int getOccurence()
setOccurence
public void setOccurence(int n)
getComparator
public Comparator getComparator()
setComparator
public void setComparator(Comparator c)
(C) INRIA & friends, 2003-2014