public class Varbind extends Object implements Serializable
Constructor and Description |
---|
Varbind() |
Modifier and Type | Method and Description |
---|---|
void |
addVbvalue(int index,
String vVbvalue) |
void |
addVbvalue(String vVbvalue) |
void |
deleteVbnumber() |
Enumeration<String> |
enumerateVbvalue()
Method enumerateVbvalue.
|
boolean |
equals(Object obj)
Overrides the Object.equals method.
|
String |
getTextualConvention()
Returns the value of field 'textualConvention'.
|
Integer |
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.
|
int |
hashCode()
Overrides the Object.hashCode method.
|
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(Integer 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() |
public void addVbvalue(String vVbvalue) throws IndexOutOfBoundsException
vVbvalue
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic 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 boolean equals(Object obj)
public String getTextualConvention()
public Integer 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 int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
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 marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.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(Integer 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 marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2015. All Rights Reserved.