org.opennms.netmgt.config.translator
Class Value

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

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

An element representing a value to be used in a translation.

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

Constructor Summary
Value()
           
 
Method Summary
 void addValue(int index, Value vValue)
          Method addValue
 void addValue(Value vValue)
          Method addValue
 void clearValue()
          Method clearValue
 java.util.Enumeration enumerateValue()
          Method enumerateValue
 java.lang.String getMatches()
          Returns the value of field 'matches'.
 java.lang.String getName()
          Returns the value of field 'name'.
 java.lang.String getResult()
          Returns the value of field 'result'.
 java.lang.String getType()
          Returns the value of field 'type'.
 Value[] getValue()
          Method getValue
 Value getValue(int index)
          Method getValue
 java.util.ArrayList getValueCollection()
          Method getValueCollection Returns a reference to 'value'.
 int getValueCount()
          Method getValueCount
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeValue(Value vValue)
          Method removeValue
 void setMatches(java.lang.String matches)
          Sets the value of field 'matches'.
 void setName(java.lang.String name)
          Sets the value of field 'name'.
 void setResult(java.lang.String result)
          Sets the value of field 'result'.
 void setType(java.lang.String type)
          Sets the value of field 'type'.
 void setValue(java.util.ArrayList valueCollection)
          Method setValue Sets the value of 'value' by copying the given ArrayList.
 void setValue(int index, Value vValue)
          Method setValue
 void setValue(Value[] valueArray)
          Method setValue
 void setValueCollection(java.util.ArrayList valueCollection)
          Method setValueCollection Sets the value of 'value' 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

Value

public Value()
Method Detail

addValue

public void addValue(Value vValue)
              throws java.lang.IndexOutOfBoundsException
Method addValue

Parameters:
vValue -
Throws:
java.lang.IndexOutOfBoundsException

addValue

public void addValue(int index,
                     Value vValue)
              throws java.lang.IndexOutOfBoundsException
Method addValue

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

clearValue

public void clearValue()
Method clearValue


enumerateValue

public java.util.Enumeration enumerateValue()
Method enumerateValue

Returns:
Enumeration

getMatches

public java.lang.String getMatches()
Returns the value of field 'matches'.

Returns:
String

getName

public java.lang.String getName()
Returns the value of field 'name'.

Returns:
String

getResult

public java.lang.String getResult()
Returns the value of field 'result'.

Returns:
String

getType

public java.lang.String getType()
Returns the value of field 'type'.

Returns:
String

getValue

public Value getValue(int index)
               throws java.lang.IndexOutOfBoundsException
Method getValue

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

getValue

public Value[] getValue()
Method getValue

Returns:
Value

getValueCollection

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

Returns:
ArrayList

getValueCount

public int getValueCount()
Method getValueCount

Returns:
int

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

removeValue

public boolean removeValue(Value vValue)
Method removeValue

Parameters:
vValue -
Returns:
boolean

setMatches

public void setMatches(java.lang.String matches)
Sets the value of field 'matches'.

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

setName

public void setName(java.lang.String name)
Sets the value of field 'name'.

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

setResult

public void setResult(java.lang.String result)
Sets the value of field 'result'.

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

setType

public void setType(java.lang.String type)
Sets the value of field 'type'.

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

setValue

public void setValue(int index,
                     Value vValue)
              throws java.lang.IndexOutOfBoundsException
Method setValue

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

setValue

public void setValue(Value[] valueArray)
Method setValue

Parameters:
valueArray -

setValue

public void setValue(java.util.ArrayList valueCollection)
Method setValue Sets the value of 'value' by copying the given ArrayList.

Parameters:
valueCollection - the Vector to copy.

setValueCollection

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

Parameters:
valueCollection - 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.