org.apache.qpid.management.domain.model
Class QpidAttribute

java.lang.Object
  extended by org.apache.qpid.management.domain.model.QpidFeature
      extended by org.apache.qpid.management.domain.model.QpidAttribute
Direct Known Subclasses:
QpidProperty, QpidStatistic

 class QpidAttribute
extends QpidFeature

Layer supertype for qpid properties and statistics.


Field Summary
protected  Type _type
          feature type
protected  String _unit
          feature unit
 
Fields inherited from class org.apache.qpid.management.domain.model.QpidFeature
_description, _name
 
Constructor Summary
QpidAttribute()
           
 
Method Summary
(package private)  Object decodeValue(org.apache.qpid.transport.codec.Decoder decoder)
          Gets the value of this feature according to its type definition.
(package private)  Class<?> getJavaType()
          Returns the java type (class) of this feature.
(package private)  String getUnit()
          Returns the units used for numeric values (i.e.
(package private)  void setType(Type type)
          Sets the type of this feature.
(package private)  void setUnit(String unit)
          Sets the unit for this property.
 String toString()
          Returns the name of the feature.
 
Methods inherited from class org.apache.qpid.management.domain.model.QpidFeature
getDescription, getName, setDescription, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_type

protected Type _type
feature type


_unit

protected String _unit
feature unit

Constructor Detail

QpidAttribute

QpidAttribute()
Method Detail

getUnit

String getUnit()
Returns the units used for numeric values (i.e. seconds, bytes, etc.)

Returns:
the units used for numeric values (i.e. seconds, bytes, etc.)

setUnit

void setUnit(String unit)
Sets the unit for this property.

Parameters:
unit - the unit of this property.

getJavaType

Class<?> getJavaType()
Returns the java type (class) of this feature.

Returns:
the java type (class) of this feature.

setType

void setType(Type type)
Sets the type of this feature.

Parameters:
type - the type of this feature.

decodeValue

Object decodeValue(org.apache.qpid.transport.codec.Decoder decoder)
Gets the value of this feature according to its type definition.

Parameters:
decoder - the decoder used to extract the value.
Returns:
the value of this feature according to its type definition

toString

public String toString()
Description copied from class: QpidFeature
Returns the name of the feature.

Overrides:
toString in class QpidFeature
Returns:
the name of the feature.


Licensed to the Apache Software Foundation