org.opennms.netmgt.collectd
Class Attr

java.lang.Object
  extended by org.opennms.netmgt.collectd.Attr

public class Attr
extends Object

Author:
mjamison TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
Attr()
          Constructor
 
Method Summary
 boolean equals(Object object)
          This method is responsible for comparing this MibObject with the passed Object to determine if they are equivalent.
 String getAlias()
          Returns the object's alias.
 String getMaxval()
          Returns the object's maximum value.
 String getMinval()
          Returns the object's minimum value.
 String getName()
          Returns the object's identifier.
 String getType()
          Returns the object's data type.
 void setAlias(String alias)
          This method is used to assign the object's alias.
 void setMaxval(String maxval)
          This method is used to assign the object's maximum value.
 void setMinval(String minval)
          This method is used to assign the object's minimum value.
 void setName(String oid)
          This method is used to assign the object's identifier.
 void setType(String type)
          This method is used to assign the object's expected data type.
 String toString()
          This method is responsible for returning a String object which represents the content of this MibObject.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attr

public Attr()
Constructor

Method Detail

setName

public void setName(String oid)
This method is used to assign the object's identifier.

Parameters:
oid - - object identifier in dotted decimal notation (e.g., ".1.3.6.1.2.1.1.1")

setAlias

public void setAlias(String alias)
This method is used to assign the object's alias.

Parameters:
alias - - object alias (e.g., "sysDescription")

setType

public void setType(String type)
This method is used to assign the object's expected data type.

Parameters:
type - - object's data type

setMaxval

public void setMaxval(String maxval)
This method is used to assign the object's maximum value.

Parameters:
maxval - object's maximum value

setMinval

public void setMinval(String minval)
This method is used to assign the object's minimum value.

Parameters:
minval - object's minimum value

getName

public String getName()
Returns the object's identifier.

Returns:
The object's identifier string.

getMaxval

public String getMaxval()
Returns the object's maximum value.

Returns:
The object's maxval.

getMinval

public String getMinval()
Returns the object's minimum value.

Returns:
The object's minval.

getAlias

public String getAlias()
Returns the object's alias.

Returns:
The object's alias.

getType

public String getType()
Returns the object's data type.

Returns:
The object's data type

equals

public boolean equals(Object object)
This method is responsible for comparing this MibObject with the passed Object to determine if they are equivalent. The objects are equivalent if the argument is a MibObject object with the same object identifier, instance, alias and type.

Overrides:
equals in class Object
Parameters:
object - - MibObject to be compared to this object.
Returns:
true if the objects are equal, false otherwise.

toString

public String toString()
This method is responsible for returning a String object which represents the content of this MibObject. Primarily used for debugging purposes.

Overrides:
toString in class Object
Returns:
String which represents the content of this MibObject


Copyright © 2009. All Rights Reserved.