org.opennms.netmgt.config.destinationPaths
Class Target

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

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

Class Target.

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

Constructor Summary
Target()
           
 
Method Summary
 void addCommand(int index, java.lang.String vCommand)
          Method addCommand
 void addCommand(java.lang.String vCommand)
          Method addCommand
 void clearCommand()
          Method clearCommand
 java.util.Enumeration enumerateCommand()
          Method enumerateCommand
 java.lang.String getAutoNotify()
          Returns the value of field 'autoNotify'.
 java.lang.String[] getCommand()
          Method getCommand
 java.lang.String getCommand(int index)
          Method getCommand
 java.util.ArrayList getCommandCollection()
          Method getCommandCollection Returns a reference to 'command'.
 int getCommandCount()
          Method getCommandCount
 java.lang.String getInterval()
          Returns the value of field 'interval'.
 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 removeCommand(java.lang.String vCommand)
          Method removeCommand
 void setAutoNotify(java.lang.String autoNotify)
          Sets the value of field 'autoNotify'.
 void setCommand(java.util.ArrayList commandCollection)
          Method setCommand Sets the value of 'command' by copying the given ArrayList.
 void setCommand(int index, java.lang.String vCommand)
          Method setCommand
 void setCommand(java.lang.String[] commandArray)
          Method setCommand
 void setCommandCollection(java.util.ArrayList commandCollection)
          Method setCommandCollection Sets the value of 'command' by setting it to the given ArrayList.
 void setInterval(java.lang.String interval)
          Sets the value of field 'interval'.
 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

Target

public Target()
Method Detail

addCommand

public void addCommand(java.lang.String vCommand)
                throws java.lang.IndexOutOfBoundsException
Method addCommand

Parameters:
vCommand -
Throws:
java.lang.IndexOutOfBoundsException

addCommand

public void addCommand(int index,
                       java.lang.String vCommand)
                throws java.lang.IndexOutOfBoundsException
Method addCommand

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

clearCommand

public void clearCommand()
Method clearCommand


enumerateCommand

public java.util.Enumeration enumerateCommand()
Method enumerateCommand

Returns:
Enumeration

getAutoNotify

public java.lang.String getAutoNotify()
Returns the value of field 'autoNotify'.

Returns:
String

getCommand

public java.lang.String getCommand(int index)
                            throws java.lang.IndexOutOfBoundsException
Method getCommand

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

getCommand

public java.lang.String[] getCommand()
Method getCommand

Returns:
String

getCommandCollection

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

Returns:
ArrayList

getCommandCount

public int getCommandCount()
Method getCommandCount

Returns:
int

getInterval

public java.lang.String getInterval()
Returns the value of field 'interval'.

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

removeCommand

public boolean removeCommand(java.lang.String vCommand)
Method removeCommand

Parameters:
vCommand -
Returns:
boolean

setAutoNotify

public void setAutoNotify(java.lang.String autoNotify)
Sets the value of field 'autoNotify'.

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

setCommand

public void setCommand(int index,
                       java.lang.String vCommand)
                throws java.lang.IndexOutOfBoundsException
Method setCommand

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

setCommand

public void setCommand(java.lang.String[] commandArray)
Method setCommand

Parameters:
commandArray -

setCommand

public void setCommand(java.util.ArrayList commandCollection)
Method setCommand Sets the value of 'command' by copying the given ArrayList.

Parameters:
commandCollection - the Vector to copy.

setCommandCollection

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

Parameters:
commandCollection - the ArrayList to copy.

setInterval

public void setInterval(java.lang.String interval)
Sets the value of field 'interval'.

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

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.