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

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

public class CombinedTypedAttribute
extends TypedAttribute

See Also:
Serialized Form

Field Summary
protected  TypedAttribute[] combinedAttributes
           
 
Constructor Summary
CombinedTypedAttribute(java.lang.String name, java.lang.Class type, TypedAttribute[] combinedAttributes)
           
 
Method Summary
 TypedAttribute[] getAttributes()
           
 boolean isNativeValueAlwaysNeeded()
          Indicates whether a caller of a "toNative" transformation needs to provide the old native value in order to get a successful transformation.
 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, transformObject2SMI, transformSMI2Object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

combinedAttributes

protected TypedAttribute[] combinedAttributes
Constructor Detail

CombinedTypedAttribute

public CombinedTypedAttribute(java.lang.String name,
                              java.lang.Class type,
                              TypedAttribute[] combinedAttributes)
Method Detail

getAttributes

public TypedAttribute[] getAttributes()

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

isNativeValueAlwaysNeeded

public boolean isNativeValueAlwaysNeeded()
Description copied from interface: TransformType
Indicates whether a caller of a "toNative" transformation needs to provide the old native value in order to get a successful transformation. Otherwise the caller may provide a null to save CPU cycles.

Specified by:
isNativeValueAlwaysNeeded in interface TransformType
Overrides:
isNativeValueAlwaysNeeded in class TypedAttribute
Returns:
true if the caller must always provide a none null value for the nativeValue parameter of the transformation methods.

Copyright 2006-2007 Frank Fock (SNMP4J.org)