org.snmp4j.agent.mo.jmx.types
Class EnumStringType

java.lang.Object
  extended by org.snmp4j.agent.mo.jmx.types.TypedAttribute
      extended by org.snmp4j.agent.mo.jmx.types.EnumStringType
All Implemented Interfaces:
java.io.Serializable, SMITransformType, TransformType

public class EnumStringType
extends TypedAttribute

See Also:
Serialized Form

Constructor Summary
EnumStringType(java.lang.String name, java.lang.Class enumClass, java.lang.Enum[] enumValues)
           
 
Method Summary
 java.lang.Enum[] getEnumValues()
           
 int getOffset()
           
 java.lang.Object transformFromNative(java.lang.Object nativeValue, javax.management.ObjectName objectName)
           
 java.lang.Object transformToNative(java.lang.Object transformedValue, java.lang.Object oldNativeValue, javax.management.ObjectName objectName)
           
 
Methods inherited from class org.snmp4j.agent.mo.jmx.types.TypedAttribute
getName, getType, isNativeValueAlwaysNeeded, transformObject2SMI, transformSMI2Object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumStringType

public EnumStringType(java.lang.String name,
                      java.lang.Class enumClass,
                      java.lang.Enum[] enumValues)
Method Detail

getEnumValues

public java.lang.Enum[] getEnumValues()

getOffset

public int getOffset()

transformFromNative

public java.lang.Object transformFromNative(java.lang.Object nativeValue,
                                            javax.management.ObjectName objectName)
Specified by:
transformFromNative in interface TransformType
Overrides:
transformFromNative in class TypedAttribute

transformToNative

public java.lang.Object transformToNative(java.lang.Object transformedValue,
                                          java.lang.Object oldNativeValue,
                                          javax.management.ObjectName objectName)
Specified by:
transformToNative in interface TransformType
Overrides:
transformToNative in class TypedAttribute

Copyright 2006-2007 Frank Fock (SNMP4J.org)