fr.inria.oadymppac.parsing.gentra4cp
Class BasicChoiceConstraintEvent

java.lang.Object
  extended byfr.inria.oadymppac.parsing.event.EventImpl
      extended byfr.inria.oadymppac.parsing.gentra4cp.BasicChoiceConstraintEvent
All Implemented Interfaces:
ChoiceConstraintAttributes, ChoiceConstraintEvent, java.lang.Cloneable, DTDChoiceConstraintElement, Event
Direct Known Subclasses:
DefaultChoiceConstraintEvent

public class BasicChoiceConstraintEvent
extends EventImpl
implements ChoiceConstraintEvent

Author:
raf

Field Summary
 
Fields inherited from interface fr.inria.oadymppac.parsing.gentra4cp.event.ChoiceConstraintEvent
EVENT_TYPE
 
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.Event
logger
 
Constructor Summary
BasicChoiceConstraintEvent()
           
 
Method Summary
 java.lang.String[] getConstraints()
           
 int getEventType()
           
 Info getInfo()
           
 int getValue()
           
 java.lang.String getVariable()
           
 void init(ContentHandler handler, org.xml.sax.Attributes atts)
           
 void reset()
           
 void setConstraints(java.lang.String[] constraints)
           
 void setValue(int value)
           
 void setVariable(java.lang.String variable)
           
 
Methods inherited from class fr.inria.oadymppac.parsing.event.EventImpl
getAllAttributes, getAnyValue, getSource, init, setAllAttributes, setSource, terminate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.inria.oadymppac.parsing.event.Event
getAnyValue, getSource, init, setSource, terminate
 

Constructor Detail

BasicChoiceConstraintEvent

public BasicChoiceConstraintEvent()
Method Detail

init

public void init(ContentHandler handler,
                 org.xml.sax.Attributes atts)
Specified by:
init in interface Event
Overrides:
init in class EventImpl

reset

public void reset()
Specified by:
reset in interface Event
Overrides:
reset in class EventImpl

getConstraints

public java.lang.String[] getConstraints()
Specified by:
getConstraints in interface ChoiceConstraintAttributes
Returns:

getValue

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

getVariable

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

setConstraints

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

setValue

public void setValue(int value)
Specified by:
setValue in interface ChoiceConstraintAttributes
Parameters:
value -

setVariable

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

getInfo

public Info getInfo()
             throws java.lang.CloneNotSupportedException
Specified by:
getInfo in interface Event
Throws:
java.lang.CloneNotSupportedException

getEventType

public int getEventType()
Specified by:
getEventType in interface Event