Alignment API and Server 4.5 (1846M)

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

java.lang.Object
  extended by fr.inrialpes.exmo.align.impl.edoal.Expression
      extended by fr.inrialpes.exmo.align.impl.edoal.ClassExpression
          extended by fr.inrialpes.exmo.align.impl.edoal.ClassRestriction
              extended by 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 $

Field Summary
(package private)  Comparator comparator
           
(package private)  int occurence
           
 
Fields inherited from class fr.inrialpes.exmo.align.impl.edoal.ClassRestriction
constrainedPath
 
Fields inherited from class fr.inrialpes.exmo.align.impl.edoal.Expression
variable
 
Constructor Summary
ClassOccurenceRestriction(PathExpression p, Comparator c, int n)
          Constructs a ClassOccurenceRestriction with the given restriction.
 
Method Summary
 void accept(EDOALVisitor visitor)
           
 TypeCheckingVisitor.TYPE accept(TypeCheckingVisitor visitor)
           
 Comparator getComparator()
           
 int getOccurence()
           
 void setComparator(Comparator c)
           
 void setOccurence(int n)
           
 
Methods inherited from class fr.inrialpes.exmo.align.impl.edoal.ClassRestriction
getRestrictionPath, setRestrictionPath
 
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

comparator

Comparator comparator

occurence

int occurence
Constructor Detail

ClassOccurenceRestriction

public ClassOccurenceRestriction(PathExpression p,
                                 Comparator c,
                                 int n)
Constructs a ClassOccurenceRestriction with the given restriction.

Parameters:
p - the constrained PathExpression
c - the restriction Comparator
n - the number of occurence compared
Throws:
NullPointerException - if the restriction is null
Method Detail

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)

Alignment API and Server 4.5 (1846M)

(C) INRIA & friends, 2003-2013