org.snmp4j.agent.mo.jmx.types
Class CombinedTypedAttribute
java.lang.Object
org.snmp4j.agent.mo.jmx.types.TypedAttribute
org.snmp4j.agent.mo.jmx.types.CombinedTypedAttribute
- All Implemented Interfaces:
- java.io.Serializable, SMITransformType, TransformType
public class CombinedTypedAttribute
- extends TypedAttribute
- See Also:
- Serialized Form
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
combinedAttributes
protected TypedAttribute[] combinedAttributes
CombinedTypedAttribute
public CombinedTypedAttribute(java.lang.String name,
java.lang.Class type,
TypedAttribute[] combinedAttributes)
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.