org.opennms.netmgt.xml.eventconf
Class Varbind

java.lang.Object
  extended by org.opennms.netmgt.xml.eventconf.Varbind
All Implemented Interfaces:
java.io.Serializable

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

The varbind element

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

Constructor Summary
Varbind()
           
 
Method Summary
 void addVbvalue(int index, java.lang.String vVbvalue)
          Method addVbvalue
 void addVbvalue(java.lang.String vVbvalue)
          Method addVbvalue
 void clearVbvalue()
          Method clearVbvalue
 void deleteVbnumber()
          Method deleteVbnumber
 java.util.Enumeration enumerateVbvalue()
          Method enumerateVbvalue
 java.lang.String getTextualConvention()
          Returns the value of field 'textualConvention'.
 int getVbnumber()
          Returns the value of field 'vbnumber'.
 java.lang.String[] getVbvalue()
          Method getVbvalue
 java.lang.String getVbvalue(int index)
          Method getVbvalue
 java.util.ArrayList getVbvalueCollection()
          Method getVbvalueCollection Returns a reference to 'vbvalue'.
 int getVbvalueCount()
          Method getVbvalueCount
 boolean hasVbnumber()
          Method hasVbnumber
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeVbvalue(java.lang.String vVbvalue)
          Method removeVbvalue
 void setTextualConvention(java.lang.String textualConvention)
          Sets the value of field 'textualConvention'.
 void setVbnumber(int vbnumber)
          Sets the value of field 'vbnumber'.
 void setVbvalue(java.util.ArrayList vbvalueCollection)
          Method setVbvalue Sets the value of 'vbvalue' by copying the given ArrayList.
 void setVbvalue(int index, java.lang.String vVbvalue)
          Method setVbvalue
 void setVbvalue(java.lang.String[] vbvalueArray)
          Method setVbvalue
 void setVbvalueCollection(java.util.ArrayList vbvalueCollection)
          Method setVbvalueCollection Sets the value of 'vbvalue' by setting it to the given ArrayList.
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

Varbind

public Varbind()
Method Detail

addVbvalue

public void addVbvalue(java.lang.String vVbvalue)
                throws java.lang.IndexOutOfBoundsException
Method addVbvalue

Parameters:
vVbvalue -
Throws:
java.lang.IndexOutOfBoundsException

addVbvalue

public void addVbvalue(int index,
                       java.lang.String vVbvalue)
                throws java.lang.IndexOutOfBoundsException
Method addVbvalue

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

clearVbvalue

public void clearVbvalue()
Method clearVbvalue


deleteVbnumber

public void deleteVbnumber()
Method deleteVbnumber


enumerateVbvalue

public java.util.Enumeration enumerateVbvalue()
Method enumerateVbvalue

Returns:
Enumeration

getTextualConvention

public java.lang.String getTextualConvention()
Returns the value of field 'textualConvention'.

Returns:
String

getVbnumber

public int getVbnumber()
Returns the value of field 'vbnumber'. The field 'vbnumber' has the following description: The varbind element number

Returns:
int

getVbvalue

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

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

getVbvalue

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

Returns:
String

getVbvalueCollection

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

Returns:
ArrayList

getVbvalueCount

public int getVbvalueCount()
Method getVbvalueCount

Returns:
int

hasVbnumber

public boolean hasVbnumber()
Method hasVbnumber

Returns:
boolean

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

removeVbvalue

public boolean removeVbvalue(java.lang.String vVbvalue)
Method removeVbvalue

Parameters:
vVbvalue -
Returns:
boolean

setTextualConvention

public void setTextualConvention(java.lang.String textualConvention)
Sets the value of field 'textualConvention'.

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

setVbnumber

public void setVbnumber(int vbnumber)
Sets the value of field 'vbnumber'. The field 'vbnumber' has the following description: The varbind element number

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

setVbvalue

public void setVbvalue(int index,
                       java.lang.String vVbvalue)
                throws java.lang.IndexOutOfBoundsException
Method setVbvalue

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

setVbvalue

public void setVbvalue(java.lang.String[] vbvalueArray)
Method setVbvalue

Parameters:
vbvalueArray -

setVbvalue

public void setVbvalue(java.util.ArrayList vbvalueCollection)
Method setVbvalue Sets the value of 'vbvalue' by copying the given ArrayList.

Parameters:
vbvalueCollection - the Vector to copy.

setVbvalueCollection

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

Parameters:
vbvalueCollection - the ArrayList to copy.

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.