org.opennms.netmgt.config.capsd
Class ProtocolConfiguration

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

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

IP address/range-specific protocol configuration.

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

Constructor Summary
ProtocolConfiguration()
           
 
Method Summary
 void addProperty(int index, Property vProperty)
          Method addProperty
 void addProperty(Property vProperty)
          Method addProperty
 void addRange(int index, Range vRange)
          Method addRange
 void addRange(Range vRange)
          Method addRange
 void addSpecific(int index, java.lang.String vSpecific)
          Method addSpecific
 void addSpecific(java.lang.String vSpecific)
          Method addSpecific
 void clearProperty()
          Method clearProperty
 void clearRange()
          Method clearRange
 void clearSpecific()
          Method clearSpecific
 java.util.Enumeration enumerateProperty()
          Method enumerateProperty
 java.util.Enumeration enumerateRange()
          Method enumerateRange
 java.util.Enumeration enumerateSpecific()
          Method enumerateSpecific
 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
 Range[] getRange()
          Method getRange
 Range getRange(int index)
          Method getRange
 java.util.ArrayList getRangeCollection()
          Method getRangeCollection Returns a reference to 'range'.
 int getRangeCount()
          Method getRangeCount
 java.lang.String getScan()
          Returns the value of field 'scan'.
 java.lang.String[] getSpecific()
          Method getSpecific
 java.lang.String getSpecific(int index)
          Method getSpecific
 java.util.ArrayList getSpecificCollection()
          Method getSpecificCollection Returns a reference to 'specific'.
 int getSpecificCount()
          Method getSpecificCount
 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 removeRange(Range vRange)
          Method removeRange
 boolean removeSpecific(java.lang.String vSpecific)
          Method removeSpecific
 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 setRange(java.util.ArrayList rangeCollection)
          Method setRange Sets the value of 'range' by copying the given ArrayList.
 void setRange(int index, Range vRange)
          Method setRange
 void setRange(Range[] rangeArray)
          Method setRange
 void setRangeCollection(java.util.ArrayList rangeCollection)
          Method setRangeCollection Sets the value of 'range' by setting it to the given ArrayList.
 void setScan(java.lang.String scan)
          Sets the value of field 'scan'.
 void setSpecific(java.util.ArrayList specificCollection)
          Method setSpecific Sets the value of 'specific' by copying the given ArrayList.
 void setSpecific(int index, java.lang.String vSpecific)
          Method setSpecific
 void setSpecific(java.lang.String[] specificArray)
          Method setSpecific
 void setSpecificCollection(java.util.ArrayList specificCollection)
          Method setSpecificCollection Sets the value of 'specific' by setting it to the given ArrayList.
 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

ProtocolConfiguration

public ProtocolConfiguration()
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

addRange

public void addRange(Range vRange)
              throws java.lang.IndexOutOfBoundsException
Method addRange

Parameters:
vRange -
Throws:
java.lang.IndexOutOfBoundsException

addRange

public void addRange(int index,
                     Range vRange)
              throws java.lang.IndexOutOfBoundsException
Method addRange

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

addSpecific

public void addSpecific(java.lang.String vSpecific)
                 throws java.lang.IndexOutOfBoundsException
Method addSpecific

Parameters:
vSpecific -
Throws:
java.lang.IndexOutOfBoundsException

addSpecific

public void addSpecific(int index,
                        java.lang.String vSpecific)
                 throws java.lang.IndexOutOfBoundsException
Method addSpecific

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

clearProperty

public void clearProperty()
Method clearProperty


clearRange

public void clearRange()
Method clearRange


clearSpecific

public void clearSpecific()
Method clearSpecific


enumerateProperty

public java.util.Enumeration enumerateProperty()
Method enumerateProperty

Returns:
Enumeration

enumerateRange

public java.util.Enumeration enumerateRange()
Method enumerateRange

Returns:
Enumeration

enumerateSpecific

public java.util.Enumeration enumerateSpecific()
Method enumerateSpecific

Returns:
Enumeration

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

getRange

public Range getRange(int index)
               throws java.lang.IndexOutOfBoundsException
Method getRange

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

getRange

public Range[] getRange()
Method getRange

Returns:
Range

getRangeCollection

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

Returns:
ArrayList

getRangeCount

public int getRangeCount()
Method getRangeCount

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. Value of 'enable' causes the protocol to be added as supported without performing the protocol scan.

Returns:
String

getSpecific

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

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

getSpecific

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

Returns:
String

getSpecificCollection

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

Returns:
ArrayList

getSpecificCount

public int getSpecificCount()
Method getSpecificCount

Returns:
int

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

removeRange

public boolean removeRange(Range vRange)
Method removeRange

Parameters:
vRange -
Returns:
boolean

removeSpecific

public boolean removeSpecific(java.lang.String vSpecific)
Method removeSpecific

Parameters:
vSpecific -
Returns:
boolean

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.

setRange

public void setRange(int index,
                     Range vRange)
              throws java.lang.IndexOutOfBoundsException
Method setRange

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

setRange

public void setRange(Range[] rangeArray)
Method setRange

Parameters:
rangeArray -

setRange

public void setRange(java.util.ArrayList rangeCollection)
Method setRange Sets the value of 'range' by copying the given ArrayList.

Parameters:
rangeCollection - the Vector to copy.

setRangeCollection

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

Parameters:
rangeCollection - 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. Value of 'enable' causes the protocol to be added as supported without performing the protocol scan.

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

setSpecific

public void setSpecific(int index,
                        java.lang.String vSpecific)
                 throws java.lang.IndexOutOfBoundsException
Method setSpecific

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

setSpecific

public void setSpecific(java.lang.String[] specificArray)
Method setSpecific

Parameters:
specificArray -

setSpecific

public void setSpecific(java.util.ArrayList specificCollection)
Method setSpecific Sets the value of 'specific' by copying the given ArrayList.

Parameters:
specificCollection - the Vector to copy.

setSpecificCollection

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

Parameters:
specificCollection - the ArrayList to copy.

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.