org.opennms.bb.dp.poller.scheduler.utils
Class Parameter

java.lang.Object
  |
  +--org.opennms.bb.dp.poller.scheduler.utils.Parameter

public final class Parameter
extends Object

The parameter class is used by the parser to represent a classic parameter block in the XML file. For an example of a parameter block see the packages.dtd file in the CVS module xml.

This class was create to take the place of a Vector used to pass the parameters. The vector with synchronization and generic objects (1) has more overhead and (2) isn't very specific about the data.

Author:
Weave, OpenNMS

Field Summary
private  String m_name
          The name of the parameter.
private  String m_type
          The type for the parameter.
private  String m_value
          The value of the parameter.
 
Constructor Summary
Parameter()
          Creates a default instance of the parameter class.
 
Method Summary
 String getName()
          Returns the name of the parameter object.
 String getType()
          Returns the type for the parmeter object.
 String getValue()
          Returns the value of the parameter object.
 boolean isValid()
           
 void setName(String name)
          Sets the name of the parameter object.
 void setType(String type)
          Sets the type for the parameter object.
 void setValue(String value)
          Sets the value for the parameter object.
 String toString()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

m_name

private String m_name

The name of the parameter.


m_value

private String m_value

The value of the parameter.


m_type

private String m_type

The type for the parameter.

Constructor Detail

Parameter

public Parameter()

Creates a default instance of the parameter class. All values are set to null initialally.

Method Detail

getName

public String getName()

Returns the name of the parameter object.


setName

public void setName(String name)

Sets the name of the parameter object.

Parameters:
name - The name of the parameter object.

getType

public String getType()

Returns the type for the parmeter object.


setType

public void setType(String type)

Sets the type for the parameter object.

Parameters:
type - The type for the object.

getValue

public String getValue()

Returns the value of the parameter object.


setValue

public void setValue(String value)

Sets the value for the parameter object.

Parameters:
value - The value for the instance.

isValid

public boolean isValid()

toString

public String toString()
Overrides:
toString in class Object