org.opennms.netmgt.config.capsd
Class ProtocolPlugin

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

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

protocol plugin definition

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

Constructor Summary
ProtocolPlugin()
           
 
Method Summary
 void addProperty(int index, Property vProperty)
          Method addProperty
 void addProperty(Property vProperty)
          Method addProperty
 void addProtocolConfiguration(int index, ProtocolConfiguration vProtocolConfiguration)
          Method addProtocolConfiguration
 void addProtocolConfiguration(ProtocolConfiguration vProtocolConfiguration)
          Method addProtocolConfiguration
 void clearProperty()
          Method clearProperty
 void clearProtocolConfiguration()
          Method clearProtocolConfiguration
 java.util.Enumeration enumerateProperty()
          Method enumerateProperty
 java.util.Enumeration enumerateProtocolConfiguration()
          Method enumerateProtocolConfiguration
 java.lang.String getClassName()
          Returns the value of field 'className'.
 Property[] getProperty()
          Method getProperty
 Property getProperty(int index)
          Method getProperty
 java.util.ArrayList getPropertyCollection()
          Method getPropertyCollection Returns a reference to 'property'.
 int getPropertyCount()
          Method getPropertyCount
 java.lang.String getProtocol()
          Returns the value of field 'protocol'.
 ProtocolConfiguration[] getProtocolConfiguration()
          Method getProtocolConfiguration
 ProtocolConfiguration getProtocolConfiguration(int index)
          Method getProtocolConfiguration
 java.util.ArrayList getProtocolConfigurationCollection()
          Method getProtocolConfigurationCollection Returns a reference to 'protocolConfiguration'.
 int getProtocolConfigurationCount()
          Method getProtocolConfigurationCount
 java.lang.String getScan()
          Returns the value of field 'scan'.
 java.lang.String getUserDefined()
          Returns the value of field 'userDefined'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeProperty(Property vProperty)
          Method removeProperty
 boolean removeProtocolConfiguration(ProtocolConfiguration vProtocolConfiguration)
          Method removeProtocolConfiguration
 void setClassName(java.lang.String className)
          Sets the value of field 'className'.
 void setProperty(java.util.ArrayList propertyCollection)
          Method setProperty Sets the value of 'property' by copying the given ArrayList.
 void setProperty(int index, Property vProperty)
          Method setProperty
 void setProperty(Property[] propertyArray)
          Method setProperty
 void setPropertyCollection(java.util.ArrayList propertyCollection)
          Method setPropertyCollection Sets the value of 'property' by setting it to the given ArrayList.
 void setProtocol(java.lang.String protocol)
          Sets the value of field 'protocol'.
 void setProtocolConfiguration(java.util.ArrayList protocolConfigurationCollection)
          Method setProtocolConfiguration Sets the value of 'protocolConfiguration' by copying the given ArrayList.
 void setProtocolConfiguration(int index, ProtocolConfiguration vProtocolConfiguration)
          Method setProtocolConfiguration
 void setProtocolConfiguration(ProtocolConfiguration[] protocolConfigurationArray)
          Method setProtocolConfiguration
 void setProtocolConfigurationCollection(java.util.ArrayList protocolConfigurationCollection)
          Method setProtocolConfigurationCollection Sets the value of 'protocolConfiguration' by setting it to the given ArrayList.
 void setScan(java.lang.String scan)
          Sets the value of field 'scan'.
 void setUserDefined(java.lang.String userDefined)
          Sets the value of field 'userDefined'.
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

ProtocolPlugin

public ProtocolPlugin()
Method Detail

addProperty

public void addProperty(Property vProperty)
                 throws java.lang.IndexOutOfBoundsException
Method addProperty

Parameters:
vProperty -
Throws:
java.lang.IndexOutOfBoundsException

addProperty

public void addProperty(int index,
                        Property vProperty)
                 throws java.lang.IndexOutOfBoundsException
Method addProperty

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

addProtocolConfiguration

public void addProtocolConfiguration(ProtocolConfiguration vProtocolConfiguration)
                              throws java.lang.IndexOutOfBoundsException
Method addProtocolConfiguration

Parameters:
vProtocolConfiguration -
Throws:
java.lang.IndexOutOfBoundsException

addProtocolConfiguration

public void addProtocolConfiguration(int index,
                                     ProtocolConfiguration vProtocolConfiguration)
                              throws java.lang.IndexOutOfBoundsException
Method addProtocolConfiguration

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

clearProperty

public void clearProperty()
Method clearProperty


clearProtocolConfiguration

public void clearProtocolConfiguration()
Method clearProtocolConfiguration


enumerateProperty

public java.util.Enumeration enumerateProperty()
Method enumerateProperty

Returns:
Enumeration

enumerateProtocolConfiguration

public java.util.Enumeration enumerateProtocolConfiguration()
Method enumerateProtocolConfiguration

Returns:
Enumeration

getClassName

public java.lang.String getClassName()
Returns the value of field 'className'. The field 'className' has the following description: Java class name of the plugin used for testing this protocol.

Returns:
String

getProperty

public Property getProperty(int index)
                     throws java.lang.IndexOutOfBoundsException
Method getProperty

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

getProperty

public Property[] getProperty()
Method getProperty

Returns:
Property

getPropertyCollection

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

Returns:
ArrayList

getPropertyCount

public int getPropertyCount()
Method getPropertyCount

Returns:
int

getProtocol

public java.lang.String getProtocol()
Returns the value of field 'protocol'. The field 'protocol' has the following description: protocol name

Returns:
String

getProtocolConfiguration

public ProtocolConfiguration getProtocolConfiguration(int index)
                                               throws java.lang.IndexOutOfBoundsException
Method getProtocolConfiguration

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

getProtocolConfiguration

public ProtocolConfiguration[] getProtocolConfiguration()
Method getProtocolConfiguration

Returns:
ProtocolConfiguration

getProtocolConfigurationCollection

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

Returns:
ArrayList

getProtocolConfigurationCount

public int getProtocolConfigurationCount()
Method getProtocolConfigurationCount

Returns:
int

getScan

public java.lang.String getScan()
Returns the value of field 'scan'. The field 'scan' has the following description: Controls whether this protocol is scanned by Capsd. The default is 'on'.

Returns:
String

getUserDefined

public java.lang.String getUserDefined()
Returns the value of field 'userDefined'. The field 'userDefined' has the following description: Specifies if the protocol was added by the user via the UI.

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

removeProperty

public boolean removeProperty(Property vProperty)
Method removeProperty

Parameters:
vProperty -
Returns:
boolean

removeProtocolConfiguration

public boolean removeProtocolConfiguration(ProtocolConfiguration vProtocolConfiguration)
Method removeProtocolConfiguration

Parameters:
vProtocolConfiguration -
Returns:
boolean

setClassName

public void setClassName(java.lang.String className)
Sets the value of field 'className'. The field 'className' has the following description: Java class name of the plugin used for testing this protocol.

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

setProperty

public void setProperty(int index,
                        Property vProperty)
                 throws java.lang.IndexOutOfBoundsException
Method setProperty

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

setProperty

public void setProperty(Property[] propertyArray)
Method setProperty

Parameters:
propertyArray -

setProperty

public void setProperty(java.util.ArrayList propertyCollection)
Method setProperty Sets the value of 'property' by copying the given ArrayList.

Parameters:
propertyCollection - the Vector to copy.

setPropertyCollection

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

Parameters:
propertyCollection - the ArrayList to copy.

setProtocol

public void setProtocol(java.lang.String protocol)
Sets the value of field 'protocol'. The field 'protocol' has the following description: protocol name

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

setProtocolConfiguration

public void setProtocolConfiguration(int index,
                                     ProtocolConfiguration vProtocolConfiguration)
                              throws java.lang.IndexOutOfBoundsException
Method setProtocolConfiguration

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

setProtocolConfiguration

public void setProtocolConfiguration(ProtocolConfiguration[] protocolConfigurationArray)
Method setProtocolConfiguration

Parameters:
protocolConfigurationArray -

setProtocolConfiguration

public void setProtocolConfiguration(java.util.ArrayList protocolConfigurationCollection)
Method setProtocolConfiguration Sets the value of 'protocolConfiguration' by copying the given ArrayList.

Parameters:
protocolConfigurationCollection - the Vector to copy.

setProtocolConfigurationCollection

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

Parameters:
protocolConfigurationCollection - the ArrayList to copy.

setScan

public void setScan(java.lang.String scan)
Sets the value of field 'scan'. The field 'scan' has the following description: Controls whether this protocol is scanned by Capsd. The default is 'on'.

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

setUserDefined

public void setUserDefined(java.lang.String userDefined)
Sets the value of field 'userDefined'. The field 'userDefined' has the following description: Specifies if the protocol was added by the user via the UI.

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

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.