java.lang.Object
org.snmp4j.agent.mo.MOColumn<org.snmp4j.smi.OctetString>
org.snmp4j.agent.mo.MOMutableColumn<org.snmp4j.smi.OctetString>
org.snmp4j.agent.mo.snmp.SnmpTagValue
- All Implemented Interfaces:
Comparable<MOColumn<org.snmp4j.smi.OctetString>>
-
Constructor Summary
ConstructorsConstructorDescriptionSnmpTagValue(int columnID, MOAccess access, org.snmp4j.smi.OctetString defaultValue) SnmpTagValue(int columnID, MOAccess access, org.snmp4j.smi.OctetString defaultValue, boolean mutableInService) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisDelimiter(byte b) static intisValidTagValue(org.snmp4j.smi.Variable newValue) intvalidate(org.snmp4j.smi.OctetString newValue, org.snmp4j.smi.OctetString oldValue, org.snmp4j.smi.OID instanceOID) Validate the new value for a mutable column based on old value and (new in v3.7.0) the instance OID.Methods inherited from class org.snmp4j.agent.mo.MOMutableColumn
addMOValueValidationListener, cleanup, commit, getDefaultValue, isMandatory, isMutableInService, prepare, removeMOValueValidationListener, setDefaultValue, setMandatory, setMutableInService, toString, undo, validate, validateSetRequestMethods inherited from class org.snmp4j.agent.mo.MOColumn
compareTo, get, getAccess, getColumnID, getRestoreValue, getStoreValue, getSyntax, getTable, getValue, isVolatile, setAccess, setColumnID, setSyntax, setTable
-
Constructor Details
-
SnmpTagValue
-
SnmpTagValue
public SnmpTagValue(int columnID, MOAccess access, org.snmp4j.smi.OctetString defaultValue, boolean mutableInService)
-
-
Method Details
-
isDelimiter
public static boolean isDelimiter(byte b) -
validate
public int validate(org.snmp4j.smi.OctetString newValue, org.snmp4j.smi.OctetString oldValue, org.snmp4j.smi.OID instanceOID) Description copied from class:MOMutableColumnValidate the new value for a mutable column based on old value and (new in v3.7.0) the instance OID.- Overrides:
validatein classMOMutableColumn<org.snmp4j.smi.OctetString>- Parameters:
newValue- the new value to be set.oldValue- the existing value.instanceOID- the instance OID of the table cell to be modified.- Returns:
SnmpConstants.SNMP_ERROR_SUCCESSif the change is OK, otherwise a SNMP error status.
-
isValidTagValue
public static int isValidTagValue(org.snmp4j.smi.Variable newValue)
-