fr.inria.oadymppac.parsing.info
Class ChoiceConstraintInfo

java.lang.Object
  extended byfr.inria.oadymppac.parsing.info.BasicInfo
      extended byfr.inria.oadymppac.parsing.info.ChoiceConstraintInfo
All Implemented Interfaces:
ChoiceConstraintAttributes, java.lang.Cloneable, DTDChoiceConstraintElement, Info

public class ChoiceConstraintInfo
extends BasicInfo
implements ChoiceConstraintAttributes, java.lang.Cloneable

Author:
raf

Field Summary
static int INFO_TYPE
           
 
Fields inherited from class fr.inria.oadymppac.parsing.info.BasicInfo
cloned, created
 
Fields inherited from interface fr.inria.oadymppac.parsing.gentra4cp.event.attributes.ChoiceConstraintAttributes
CONSTRAINTS_NONE, CONSTRAINTS_SEPARATOR, VALUE_NONE, VARIABLE_NONE
 
Fields inherited from interface fr.inria.oadymppac.parsing.gentra4cp.dtd.DTDChoiceConstraintElement
CHOICECONSTRAINT, CONSTRAINTS, VALUE, VARIABLE
 
Fields inherited from interface fr.inria.oadymppac.parsing.event.Info
logger
 
Constructor Summary
ChoiceConstraintInfo()
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.String[] getConstraints()
          /**
 int getInfoType()
           
 int getValue()
           
 java.lang.String getVariable()
           
 void setConstraints(java.lang.String[] constraints)
           
 void setValue(int value)
           
 void setVariable(java.lang.String variable)
           
 
Methods inherited from class fr.inria.oadymppac.parsing.info.BasicInfo
clone, clone, clone
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INFO_TYPE

public static final int INFO_TYPE
See Also:
Constant Field Values
Constructor Detail

ChoiceConstraintInfo

public ChoiceConstraintInfo()
Method Detail

getInfoType

public int getInfoType()
Specified by:
getInfoType in interface Info

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class BasicInfo
Throws:
java.lang.CloneNotSupportedException

getConstraints

public java.lang.String[] getConstraints()
/**

Specified by:
getConstraints in interface ChoiceConstraintAttributes
Returns:
Returns the constraints.

setConstraints

public void setConstraints(java.lang.String[] constraints)
Specified by:
setConstraints in interface ChoiceConstraintAttributes
Parameters:
constraints - The constraints to set.

getValue

public int getValue()
Specified by:
getValue in interface ChoiceConstraintAttributes
Returns:
Returns the value.

setValue

public void setValue(int value)
Specified by:
setValue in interface ChoiceConstraintAttributes
Parameters:
value - The value to set.

getVariable

public java.lang.String getVariable()
Specified by:
getVariable in interface ChoiceConstraintAttributes
Returns:
Returns the variable.

setVariable

public void setVariable(java.lang.String variable)
Specified by:
setVariable in interface ChoiceConstraintAttributes
Parameters:
variable - The variable to set.