fr.inria.oadymppac.parsing.gentra4cp
Class BasicNewVariableEvent

java.lang.Object
  extended byfr.inria.oadymppac.parsing.event.EventImpl
      extended byfr.inria.oadymppac.parsing.gentra4cp.BasicEvent
          extended byfr.inria.oadymppac.parsing.gentra4cp.BasicNewVariableEvent
All Implemented Interfaces:
java.lang.Cloneable, DTDEventAttributes, DTDVariableAttributes, DTDVariableElement, DTDVariableTypeAttribute, Event, EventAttributes, NewVariableEvent, VarAttributes, VariableAttributes, VariableTypeAttribute
Direct Known Subclasses:
DefaultNewVariableEvent

public class BasicNewVariableEvent
extends BasicEvent
implements NewVariableEvent

Author:
raf

Field Summary
 
Fields inherited from interface fr.inria.oadymppac.parsing.gentra4cp.event.NewVariableEvent
EVENT_TYPE
 
Fields inherited from interface fr.inria.oadymppac.parsing.gentra4cp.event.attributes.EventAttributes
CHRONO_NONE, CONTEXT_NONE, DEPTH_NONE, FILE_NONE, LINE_NONE, TIME_NONE
 
Fields inherited from interface fr.inria.oadymppac.parsing.gentra4cp.dtd.DTDEventAttributes
CHRONO, CONTEXT, DEPTH, FILE, LINE, TIME
 
Fields inherited from interface fr.inria.oadymppac.parsing.gentra4cp.dtd.DTDVariableElement
VARIABLE
 
Fields inherited from interface fr.inria.oadymppac.parsing.gentra4cp.event.attributes.VarAttributes
EXTERNAL_NONE, IDENTIFIER_NONE, INTERNAL_NONE, NAME_NONE
 
Fields inherited from interface fr.inria.oadymppac.parsing.gentra4cp.dtd.DTDVariableAttributes
EXTERNAL, IDENTIFIER, INTERNAL, NAME
 
Fields inherited from interface fr.inria.oadymppac.parsing.gentra4cp.event.attributes.VariableTypeAttribute
TYPE_ENUM, TYPE_INT, TYPE_NONE, TYPE_RAT, TYPE_REAL, TYPE_STRING
 
Fields inherited from interface fr.inria.oadymppac.parsing.gentra4cp.dtd.DTDVariableTypeAttribute
ENUM, INT, RAT, REAL, STRING, TYPE
 
Fields inherited from interface fr.inria.oadymppac.parsing.event.Event
logger
 
Constructor Summary
BasicNewVariableEvent()
           
 
Method Summary
 int getChrono()
           
 java.lang.String getContext()
           
 int getDepth()
           
 int getEventType()
           
 java.lang.String getExternal()
           
 java.lang.String getFile()
           
 java.lang.String getIdentifier()
           
 Info getInfo()
           
 java.lang.String getInternal()
           
 int getLine()
           
 java.lang.String getName()
           
 long getTime()
           
 short getType()
           
 void init(ContentHandler handler, org.xml.sax.Attributes atts)
           
 void reset()
           
 void setChrono(int chrono)
           
 void setContext(java.lang.String context)
           
 void setDepth(int depth)
           
 void setExternal(java.lang.String external)
           
 void setFile(java.lang.String file)
           
 void setIdentifier(java.lang.String ident)
           
 void setInternal(java.lang.String internal)
           
 void setLine(int line)
           
 void setName(java.lang.String name)
           
 void setTime(long time)
           
 void setType(short type)
           
 
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

BasicNewVariableEvent

public BasicNewVariableEvent()
Method Detail

getChrono

public int getChrono()
Specified by:
getChrono in interface EventAttributes
Overrides:
getChrono in class BasicEvent
Returns:

getContext

public java.lang.String getContext()
Specified by:
getContext in interface EventAttributes
Overrides:
getContext in class BasicEvent
Returns:

getDepth

public int getDepth()
Specified by:
getDepth in interface EventAttributes
Overrides:
getDepth in class BasicEvent
Returns:

getExternal

public java.lang.String getExternal()
Specified by:
getExternal in interface VarAttributes
Returns:

getFile

public java.lang.String getFile()
Specified by:
getFile in interface EventAttributes
Overrides:
getFile in class BasicEvent
Returns:

getIdentifier

public java.lang.String getIdentifier()
Specified by:
getIdentifier in interface VarAttributes
Returns:

getInfo

public Info getInfo()
Specified by:
getInfo in interface Event
Returns:
Returns the info.

getInternal

public java.lang.String getInternal()
Specified by:
getInternal in interface VarAttributes
Returns:

getLine

public int getLine()
Specified by:
getLine in interface EventAttributes
Overrides:
getLine in class BasicEvent
Returns:

getName

public java.lang.String getName()
Specified by:
getName in interface VarAttributes
Returns:

getTime

public long getTime()
Specified by:
getTime in interface EventAttributes
Overrides:
getTime in class BasicEvent
Returns:

getType

public short getType()
Specified by:
getType in interface VariableTypeAttribute
Returns:

init

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

reset

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

setChrono

public void setChrono(int chrono)
Specified by:
setChrono in interface EventAttributes
Overrides:
setChrono in class BasicEvent
Parameters:
chrono -

setContext

public void setContext(java.lang.String context)
Specified by:
setContext in interface EventAttributes
Overrides:
setContext in class BasicEvent
Parameters:
context -

setDepth

public void setDepth(int depth)
Specified by:
setDepth in interface EventAttributes
Overrides:
setDepth in class BasicEvent
Parameters:
depth -

setExternal

public void setExternal(java.lang.String external)
Specified by:
setExternal in interface VarAttributes
Parameters:
external -

setFile

public void setFile(java.lang.String file)
Specified by:
setFile in interface EventAttributes
Overrides:
setFile in class BasicEvent
Parameters:
file -

setIdentifier

public void setIdentifier(java.lang.String ident)
Specified by:
setIdentifier in interface VarAttributes
Parameters:
ident -

setInternal

public void setInternal(java.lang.String internal)
Specified by:
setInternal in interface VarAttributes
Parameters:
internal -

setLine

public void setLine(int line)
Specified by:
setLine in interface EventAttributes
Overrides:
setLine in class BasicEvent
Parameters:
line -

setName

public void setName(java.lang.String name)
Specified by:
setName in interface VarAttributes
Parameters:
name -

setTime

public void setTime(long time)
Specified by:
setTime in interface EventAttributes
Overrides:
setTime in class BasicEvent
Parameters:
time -

setType

public void setType(short type)
Specified by:
setType in interface VariableTypeAttribute
Parameters:
type -

getEventType

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