|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.translator.Value
public class Value
An element representing a value to be used in a translation.
| Constructor Summary | |
|---|---|
Value()
|
|
| Method Summary | |
|---|---|
void |
addValue(int index,
Value vValue)
|
void |
addValue(Value vValue)
|
Enumeration<Value> |
enumerateValue()
Method enumerateValue. |
String |
getMatches()
Returns the value of field 'matches'. |
String |
getName()
Returns the value of field 'name'. |
String |
getResult()
Returns the value of field 'result'. |
String |
getType()
Returns the value of field 'type'. |
Value[] |
getValue()
Method getValue.Returns the contents of the collection in an Array. |
Value |
getValue(int index)
Method getValue. |
List<Value> |
getValueCollection()
Method getValueCollection.Returns a reference to '_valueList'. |
int |
getValueCount()
Method getValueCount. |
boolean |
isValid()
Method isValid. |
Iterator<Value> |
iterateValue()
Method iterateValue. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllValue()
|
boolean |
removeValue(Value vValue)
Method removeValue. |
Value |
removeValueAt(int index)
Method removeValueAt. |
void |
setMatches(String matches)
Sets the value of field 'matches'. |
void |
setName(String name)
Sets the value of field 'name'. |
void |
setResult(String result)
Sets the value of field 'result'. |
void |
setType(String type)
Sets the value of field 'type'. |
void |
setValue(int index,
Value vValue)
|
void |
setValue(List<Value> vValueList)
Sets the value of '_valueList' by copying the given Vector. |
void |
setValue(Value[] vValueArray)
|
void |
setValueCollection(List<Value> valueList)
Deprecated. |
static Value |
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 Value()
| Method Detail |
|---|
public void addValue(Value vValue)
throws IndexOutOfBoundsException
vValue -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addValue(int index,
Value vValue)
throws IndexOutOfBoundsException
index - vValue -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Value> enumerateValue()
public String getMatches()
public String getName()
public String getResult()
public String getType()
public Value getValue(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Value[] getValue()
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<Value> getValueCollection()
public int getValueCount()
public boolean isValid()
public Iterator<Value> iterateValue()
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 removeAllValue()
public boolean removeValue(Value vValue)
vValue -
public Value removeValueAt(int index)
index -
public void setMatches(String matches)
matches - the value of field 'matches'.public void setName(String name)
name - the value of field 'name'.public void setResult(String result)
result - the value of field 'result'.public void setType(String type)
type - the value of field 'type'.
public void setValue(int index,
Value vValue)
throws IndexOutOfBoundsException
index - vValue -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setValue(Value[] vValueArray)
vValueArray - public void setValue(List<Value> vValueList)
vValueList - the Vector to copy.public void setValueCollection(List<Value> valueList)
valueList - the Vector to set.
public static Value 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 | ||||||||