Class Attribute<T>
- java.lang.Object
-
- org.opennms.netmgt.collection.support.builder.Attribute<T>
-
- Direct Known Subclasses:
NumericAttribute
,StringAttribute
public abstract class Attribute<T> extends Object
Used to represent an abstract attribute that was collected from some agent. Includes methods common to both numeric and string attributes.- Author:
- jwhite
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getGroup()
String
getIdentifier()
String
getName()
abstract Number
getNumericValue()
abstract String
getStringValue()
AttributeType
getType()
T
getValue()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
Attribute
public Attribute(String group, String name, T value, AttributeType type, String identifier)
-
-
Method Detail
-
getNumericValue
public abstract Number getNumericValue()
-
getStringValue
public abstract String getStringValue()
-
getGroup
public String getGroup()
-
getName
public String getName()
-
getValue
public T getValue()
-
getType
public AttributeType getType()
-
getIdentifier
public String getIdentifier()
-
-