uk.ac.essex.keymapper.xml
Class KeyMap

java.lang.Object
  extended by uk.ac.essex.keymapper.xml.KeyMap
All Implemented Interfaces:
java.io.Serializable

public class KeyMap
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
KeyMap()
           
 
Method Summary
 void addAction(Action vAction)
           
 void addAction(int index, Action vAction)
           
 java.util.Enumeration enumerateAction()
           
 Action[] getAction()
           
 Action getAction(int index)
           
 int getActionCount()
           
 java.lang.String getName()
          Returns the value of field 'name'.
 java.lang.String getParentMap()
          Returns the value of field 'parentMap'.
 boolean isValid()
           
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 Action removeAction(int index)
           
 void removeAllAction()
           
 void setAction(Action[] actionArray)
           
 void setAction(int index, Action vAction)
           
 void setName(java.lang.String name)
          Sets the value of field 'name'.
 void setParentMap(java.lang.String parentMap)
          Sets the value of field 'parentMap'.
static KeyMap unmarshal(java.io.Reader reader)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyMap

public KeyMap()
Method Detail

addAction

public void addAction(Action vAction)
               throws java.lang.IndexOutOfBoundsException
Parameters:
vAction -
Throws:
java.lang.IndexOutOfBoundsException

addAction

public void addAction(int index,
                      Action vAction)
               throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vAction -
Throws:
java.lang.IndexOutOfBoundsException

enumerateAction

public java.util.Enumeration enumerateAction()

getAction

public Action getAction(int index)
                 throws java.lang.IndexOutOfBoundsException
Parameters:
index -
Throws:
java.lang.IndexOutOfBoundsException

getAction

public Action[] getAction()

getActionCount

public int getActionCount()

getName

public java.lang.String getName()
Returns the value of field 'name'.

Returns:
the value of field 'name'.

getParentMap

public java.lang.String getParentMap()
Returns the value of field 'parentMap'.

Returns:
the value of field 'parentMap'.

isValid

public boolean isValid()

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeAction

public Action removeAction(int index)
Parameters:
index -

removeAllAction

public void removeAllAction()

setAction

public void setAction(int index,
                      Action vAction)
               throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vAction -
Throws:
java.lang.IndexOutOfBoundsException

setAction

public void setAction(Action[] actionArray)
Parameters:
actionArray -

setName

public void setName(java.lang.String name)
Sets the value of field 'name'.

Parameters:
name - the value of field 'name'.

setParentMap

public void setParentMap(java.lang.String parentMap)
Sets the value of field 'parentMap'.

Parameters:
parentMap - the value of field 'parentMap'.

unmarshal

public static KeyMap unmarshal(java.io.Reader reader)
                        throws org.exolab.castor.xml.MarshalException,
                               org.exolab.castor.xml.ValidationException
Parameters:
reader -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Throws:
org.exolab.castor.xml.ValidationException