public class CombinedTypedAttribute extends TypedAttribute
| Modifier and Type | Field and Description |
|---|---|
protected TypedAttribute[] |
combinedAttributes |
| Constructor and Description |
|---|
CombinedTypedAttribute(String name,
Class<Integer> type,
TypedAttribute[] combinedAttributes) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
Object |
transformFromNative(Object nativeValue,
ObjectName objectName) |
Object |
transformToNative(Object transformedValue,
Object oldNativeValue,
ObjectName objectName) |
getName, getType, transformObject2SMI, transformSMI2Objectprotected TypedAttribute[] combinedAttributes
public CombinedTypedAttribute(String name, Class<Integer> type, TypedAttribute[] combinedAttributes)
public TypedAttribute[] getAttributes()
public Object transformFromNative(Object nativeValue, ObjectName objectName)
transformFromNative in interface TransformTypetransformFromNative in class TypedAttributepublic Object transformToNative(Object transformedValue, Object oldNativeValue, ObjectName objectName)
transformToNative in interface TransformTypetransformToNative in class TypedAttributepublic boolean isNativeValueAlwaysNeeded()
TransformTypenull to save CPU cycles.isNativeValueAlwaysNeeded in interface TransformTypeisNativeValueAlwaysNeeded in class TypedAttributetrue if the caller must always provide a none
null value for the nativeValue parameter of
the transformation methods.Copyright © 2014 SNMP4J.org. All Rights Reserved.