public class NotificationCommands extends Object implements Serializable
Constructor and Description |
---|
NotificationCommands() |
Modifier and Type | Method and Description |
---|---|
void |
addCommand(Command vCommand) |
void |
addCommand(int index,
Command vCommand) |
Enumeration<Command> |
enumerateCommand()
Method enumerateCommand.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
Command[] |
getCommand()
Method getCommand.Returns the contents of the collection in
an Array.
|
Command |
getCommand(int index)
Method getCommand.
|
List<Command> |
getCommandCollection()
Method getCommandCollection.Returns a reference to
'_commandList'.
|
int |
getCommandCount()
Method getCommandCount.
|
Header |
getHeader()
Returns the value of field 'header'.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<Command> |
iterateCommand()
Method iterateCommand.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllCommand() |
boolean |
removeCommand(Command vCommand)
Method removeCommand.
|
Command |
removeCommandAt(int index)
Method removeCommandAt.
|
void |
setCommand(Command[] vCommandArray) |
void |
setCommand(int index,
Command vCommand) |
void |
setCommand(List<Command> vCommandList)
Sets the value of '_commandList' by copying the given
Vector.
|
void |
setCommandCollection(List<Command> commandList)
Deprecated.
|
void |
setHeader(Header header)
Sets the value of field 'header'.
|
static NotificationCommands |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addCommand(Command vCommand) throws IndexOutOfBoundsException
vCommand
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addCommand(int index, Command vCommand) throws IndexOutOfBoundsException
index
- vCommand
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Command> enumerateCommand()
public boolean equals(Object obj)
public Command getCommand(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Command[] getCommand()
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 List<Command> getCommandCollection()
public int getCommandCount()
public Header getHeader()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<Command> iterateCommand()
public void marshal(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 marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllCommand()
public boolean removeCommand(Command vCommand)
vCommand
- public Command removeCommandAt(int index)
index
- public void setCommand(int index, Command vCommand) throws IndexOutOfBoundsException
index
- vCommand
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setCommand(Command[] vCommandArray)
vCommandArray
- public void setCommand(List<Command> vCommandList)
vCommandList
- the Vector to copy.public void setCommandCollection(List<Command> commandList)
commandList
- the Vector to set.public void setHeader(Header header)
header
- the value of field 'header'.public static NotificationCommands unmarshal(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 marshalingorg.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 schemaCopyright © 2017. All rights reserved.