vxmlsurfer
Class EventCounters

java.lang.Object
  extended by vxmlsurfer.EventCounters

public class EventCounters
extends java.lang.Object

this class keeps track of the number of times an event is thrown. It represents the count field of the event tag.

Author:
First Author Eugene Borodin

Field Summary
 java.util.Stack<java.lang.String> itemNames
           
 java.util.Map<java.lang.String,java.util.Map> scopes
           
 
Constructor Summary
EventCounters()
          constructor
EventCounters(java.util.Stack<java.lang.String> initNames, java.util.Map<java.lang.String,java.util.Map> initScopes)
          constructor
 
Method Summary
 java.lang.Object clone()
          make a clone
 void EnterDialogEventCounterScope()
          Enter the dialog: menu or form scope
 void EnterItemEventCounterScope(java.lang.String name)
          Enter form item event counter scope
 void ExitDialogEventCounterScope()
          Exit the dialog: menu or form
 void ExitItemEventCounterScope()
          Exit form item event counter scope
 int getCounter(java.lang.String name)
          get current count of the event
 void incrementCounter(java.lang.String name)
          increment counter for all prefixes of the event name
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

itemNames

public java.util.Stack<java.lang.String> itemNames

scopes

public java.util.Map<java.lang.String,java.util.Map> scopes
Constructor Detail

EventCounters

public EventCounters()
constructor


EventCounters

public EventCounters(java.util.Stack<java.lang.String> initNames,
                     java.util.Map<java.lang.String,java.util.Map> initScopes)
constructor

Method Detail

clone

public java.lang.Object clone()
make a clone

Overrides:
clone in class java.lang.Object
Returns:
Object

EnterDialogEventCounterScope

public void EnterDialogEventCounterScope()
Enter the dialog: menu or form scope


ExitDialogEventCounterScope

public void ExitDialogEventCounterScope()
Exit the dialog: menu or form


EnterItemEventCounterScope

public void EnterItemEventCounterScope(java.lang.String name)
Enter form item event counter scope


ExitItemEventCounterScope

public void ExitItemEventCounterScope()
Exit form item event counter scope


incrementCounter

public void incrementCounter(java.lang.String name)
increment counter for all prefixes of the event name

Parameters:
name -

getCounter

public int getCounter(java.lang.String name)
get current count of the event

Parameters:
name -