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 booleanequals(Object obj)StringgetGroup()StringgetIdentifier()StringgetName()abstract NumbergetNumericValue()abstract StringgetStringValue()AttributeTypegetType()TgetValue()inthashCode()StringtoString()
-
-
-
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()
-
-