|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.essex.common.keymapper.xml.KeyMapXML
public class KeyMapXML
Class KeyMapXML.
Constructor Summary | |
---|---|
KeyMapXML()
|
Method Summary | |
---|---|
void |
addAction(Action vAction)
|
void |
addAction(int index,
Action vAction)
|
java.util.Enumeration<? extends Action> |
enumerateAction()
Method enumerateAction. |
Action[] |
getAction()
Method getAction.Returns the contents of the collection in an Array. |
Action |
getAction(int index)
Method getAction. |
int |
getActionCount()
Method getActionCount. |
java.lang.String |
getName()
Returns the value of field 'name'. |
java.lang.String |
getParentMap()
Returns the value of field 'parentMap'. |
boolean |
isValid()
Method isValid. |
java.util.Iterator<? extends Action> |
iterateAction()
Method iterateAction. |
void |
marshal(org.xml.sax.ContentHandler handler)
|
void |
marshal(java.io.Writer out)
|
boolean |
removeAction(Action vAction)
Method removeAction. |
Action |
removeActionAt(int index)
Method removeActionAt. |
void |
removeAllAction()
|
void |
setAction(Action[] vActionArray)
|
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 KeyMapXML |
unmarshal(java.io.Reader reader)
Method unmarshal. |
void |
validate()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyMapXML()
Method Detail |
---|
public void addAction(Action vAction) throws java.lang.IndexOutOfBoundsException
vAction
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addAction(int index, Action vAction) throws java.lang.IndexOutOfBoundsException
index
- vAction
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration<? extends Action> enumerateAction()
public Action getAction(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Action[] getAction()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public int getActionCount()
public java.lang.String getName()
public java.lang.String getParentMap()
public boolean isValid()
public java.util.Iterator<? extends Action> iterateAction()
public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
-
org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
-
java.io.IOException
- if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic boolean removeAction(Action vAction)
vAction
-
public Action removeActionAt(int index)
index
-
public void removeAllAction()
public void setAction(int index, Action vAction) throws java.lang.IndexOutOfBoundsException
index
- vAction
-
java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setAction(Action[] vActionArray)
vActionArray
- public void setName(java.lang.String name)
name
- the value of field 'name'.public void setParentMap(java.lang.String parentMap)
parentMap
- the value of field 'parentMap'.public static KeyMapXML unmarshal(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
-
org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schema
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |