org.opennms.netmgt.config.notificationCommands
Class Command

java.lang.Object
  extended by org.opennms.netmgt.config.notificationCommands.Command
All Implemented Interfaces:
java.io.Serializable

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

Class Command.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Command()
           
 
Method Summary
 void addArgument(Argument vArgument)
          Method addArgument
 void addArgument(int index, Argument vArgument)
          Method addArgument
 void clearArgument()
          Method clearArgument
 java.util.Enumeration enumerateArgument()
          Method enumerateArgument
 Argument[] getArgument()
          Method getArgument
 Argument getArgument(int index)
          Method getArgument
 java.util.ArrayList getArgumentCollection()
          Method getArgumentCollection Returns a reference to 'argument'.
 int getArgumentCount()
          Method getArgumentCount
 java.lang.String getBinary()
          Returns the value of field 'binary'.
 java.lang.String getComment()
          Returns the value of field 'comment'.
 java.lang.String getExecute()
          Returns the value of field 'execute'.
 java.lang.String getName()
          Returns the value of field 'name'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeArgument(Argument vArgument)
          Method removeArgument
 void setArgument(Argument[] argumentArray)
          Method setArgument
 void setArgument(java.util.ArrayList argumentCollection)
          Method setArgument Sets the value of 'argument' by copying the given ArrayList.
 void setArgument(int index, Argument vArgument)
          Method setArgument
 void setArgumentCollection(java.util.ArrayList argumentCollection)
          Method setArgumentCollection Sets the value of 'argument' by setting it to the given ArrayList.
 void setBinary(java.lang.String binary)
          Sets the value of field 'binary'.
 void setComment(java.lang.String comment)
          Sets the value of field 'comment'.
 void setExecute(java.lang.String execute)
          Sets the value of field 'execute'.
 void setName(java.lang.String name)
          Sets the value of field 'name'.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Command

public Command()
Method Detail

addArgument

public void addArgument(Argument vArgument)
                 throws java.lang.IndexOutOfBoundsException
Method addArgument

Parameters:
vArgument -
Throws:
java.lang.IndexOutOfBoundsException

addArgument

public void addArgument(int index,
                        Argument vArgument)
                 throws java.lang.IndexOutOfBoundsException
Method addArgument

Parameters:
index -
vArgument -
Throws:
java.lang.IndexOutOfBoundsException

clearArgument

public void clearArgument()
Method clearArgument


enumerateArgument

public java.util.Enumeration enumerateArgument()
Method enumerateArgument

Returns:
Enumeration

getArgument

public Argument getArgument(int index)
                     throws java.lang.IndexOutOfBoundsException
Method getArgument

Parameters:
index -
Returns:
Argument
Throws:
java.lang.IndexOutOfBoundsException

getArgument

public Argument[] getArgument()
Method getArgument

Returns:
Argument

getArgumentCollection

public java.util.ArrayList getArgumentCollection()
Method getArgumentCollection Returns a reference to 'argument'. No type checking is performed on any modications to the Collection.

Returns:
ArrayList

getArgumentCount

public int getArgumentCount()
Method getArgumentCount

Returns:
int

getBinary

public java.lang.String getBinary()
Returns the value of field 'binary'.

Returns:
String

getComment

public java.lang.String getComment()
Returns the value of field 'comment'.

Returns:
String

getExecute

public java.lang.String getExecute()
Returns the value of field 'execute'.

Returns:
String

getName

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

Returns:
String

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

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
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeArgument

public boolean removeArgument(Argument vArgument)
Method removeArgument

Parameters:
vArgument -
Returns:
boolean

setArgument

public void setArgument(int index,
                        Argument vArgument)
                 throws java.lang.IndexOutOfBoundsException
Method setArgument

Parameters:
index -
vArgument -
Throws:
java.lang.IndexOutOfBoundsException

setArgument

public void setArgument(Argument[] argumentArray)
Method setArgument

Parameters:
argumentArray -

setArgument

public void setArgument(java.util.ArrayList argumentCollection)
Method setArgument Sets the value of 'argument' by copying the given ArrayList.

Parameters:
argumentCollection - the Vector to copy.

setArgumentCollection

public void setArgumentCollection(java.util.ArrayList argumentCollection)
Method setArgumentCollection Sets the value of 'argument' by setting it to the given ArrayList. No type checking is performed.

Parameters:
argumentCollection - the ArrayList to copy.

setBinary

public void setBinary(java.lang.String binary)
Sets the value of field 'binary'.

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

setComment

public void setComment(java.lang.String comment)
Sets the value of field 'comment'.

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

setExecute

public void setExecute(java.lang.String execute)
Sets the value of field 'execute'.

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

setName

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

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

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

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

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.