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

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

public class Boolean2IntegerType
extends TypedAttribute

See Also:
Serialized Form

Field Summary
static int TRUTH_VALUE_FOR_FALSE
           
static int TRUTH_VALUE_FOR_TRUE
           
 
Constructor Summary
Boolean2IntegerType(java.lang.String name)
           
Boolean2IntegerType(java.lang.String name, java.lang.Integer trueValue, java.lang.Integer falseValue)
           
 
Method Summary
 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
 

Field Detail

TRUTH_VALUE_FOR_TRUE

public static final int TRUTH_VALUE_FOR_TRUE
See Also:
Constant Field Values

TRUTH_VALUE_FOR_FALSE

public static final int TRUTH_VALUE_FOR_FALSE
See Also:
Constant Field Values
Constructor Detail

Boolean2IntegerType

public Boolean2IntegerType(java.lang.String name)

Boolean2IntegerType

public Boolean2IntegerType(java.lang.String name,
                           java.lang.Integer trueValue,
                           java.lang.Integer falseValue)
Method Detail

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)