|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.xml.eventconf.Varbind
public class Varbind
The varbind element
| Constructor Summary | |
|---|---|
Varbind()
|
|
| Method Summary | |
|---|---|
void |
addVbvalue(int index,
String vVbvalue)
|
void |
addVbvalue(String vVbvalue)
|
void |
deleteVbnumber()
|
Enumeration<String> |
enumerateVbvalue()
Method enumerateVbvalue. |
String |
getTextualConvention()
Returns the value of field 'textualConvention'. |
int |
getVbnumber()
Returns the value of field 'vbnumber'. |
String[] |
getVbvalue()
Method getVbvalue.Returns the contents of the collection in an Array. |
String |
getVbvalue(int index)
Method getVbvalue. |
List<String> |
getVbvalueCollection()
Method getVbvalueCollection.Returns a reference to '_vbvalueList'. |
int |
getVbvalueCount()
Method getVbvalueCount. |
boolean |
hasVbnumber()
Method hasVbnumber. |
boolean |
isValid()
Method isValid. |
Iterator<String> |
iterateVbvalue()
Method iterateVbvalue. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllVbvalue()
|
boolean |
removeVbvalue(String vVbvalue)
Method removeVbvalue. |
String |
removeVbvalueAt(int index)
Method removeVbvalueAt. |
void |
setTextualConvention(String textualConvention)
Sets the value of field 'textualConvention'. |
void |
setVbnumber(int vbnumber)
Sets the value of field 'vbnumber'. |
void |
setVbvalue(int index,
String vVbvalue)
|
void |
setVbvalue(List<String> vVbvalueList)
Sets the value of '_vbvalueList' by copying the given Vector. |
void |
setVbvalue(String[] vVbvalueArray)
|
void |
setVbvalueCollection(List<String> vbvalueList)
Deprecated. |
static Varbind |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Varbind()
| Method Detail |
|---|
public void addVbvalue(String vVbvalue)
throws IndexOutOfBoundsException
vVbvalue -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addVbvalue(int index,
String vVbvalue)
throws IndexOutOfBoundsException
index - vVbvalue -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void deleteVbnumber()
public Enumeration<String> enumerateVbvalue()
public String getTextualConvention()
public int getVbnumber()
public String getVbvalue(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic String[] getVbvalue()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<String> getVbvalueCollection()
public int getVbvalueCount()
public boolean hasVbnumber()
public boolean isValid()
public Iterator<String> iterateVbvalue()
public void marshal(Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void removeAllVbvalue()
public boolean removeVbvalue(String vVbvalue)
vVbvalue -
public String removeVbvalueAt(int index)
index -
public void setTextualConvention(String textualConvention)
textualConvention - the value of field
'textualConvention'.public void setVbnumber(int vbnumber)
vbnumber - the value of field 'vbnumber'.
public void setVbvalue(int index,
String vVbvalue)
throws IndexOutOfBoundsException
index - vVbvalue -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setVbvalue(String[] vVbvalueArray)
vVbvalueArray - public void setVbvalue(List<String> vVbvalueList)
vVbvalueList - the Vector to copy.public void setVbvalueCollection(List<String> vbvalueList)
vbvalueList - the Vector to set.
public static Varbind unmarshal(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||