|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opennms.bb.dp.poller.scheduler.utils.Parameter
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.
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 |
|
Field Detail |
private String m_name
The name of the parameter.
private String m_value
The value of the parameter.
private String m_type
The type for the parameter.
Constructor Detail |
public Parameter()
Creates a default instance of the parameter class. All values are set to null initialally.
Method Detail |
public String getName()
Returns the name of the parameter object.
public void setName(String name)
Sets the name of the parameter object.
name
- The name of the parameter object.public String getType()
Returns the type for the parmeter object.
public void setType(String type)
Sets the type for the parameter object.
type
- The type for the object.public String getValue()
Returns the value of the parameter object.
public void setValue(String value)
Sets the value for the parameter object.
value
- The value for the instance.public boolean isValid()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |