java.lang.Object
org.snmp4j.agent.mo.snmp.smi.ValueConstraintValidator
- All Implemented Interfaces:
EventListener,MOValueValidationListener
- Direct Known Subclasses:
DisplayString.DisplayStringValidation
- Version:
- 1.0
- Author:
- Frank Fock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(MOValueValidationEvent validationEvent) Validates a value by returning a SNMP error code if validation fails or 0 (SnmpConstants.SNMP_ERROR_SUCCESS) if the validation was successful.
-
Constructor Details
-
ValueConstraintValidator
-
-
Method Details
-
validate
Validates a value by returning a SNMP error code if validation fails or 0 (SnmpConstants.SNMP_ERROR_SUCCESS) if the validation was successful. The validation is returned by calling theMOValueValidationEvent.setValidationStatus(int)method. If an error occured the returned status value should be one of the following values:SnmpConstants.SNMP_ERROR_WRONG_LENGTHSnmpConstants.SNMP_ERROR_WRONG_VALUESnmpConstants.SNMP_ERROR_WRONG_TYPESnmpConstants.SNMP_ERROR_WRONG_ENCODINGSnmpConstants.SNMP_ERROR_BAD_VALUE
- Specified by:
validatein interfaceMOValueValidationListener- Parameters:
validationEvent- theMOValueValidationEventcontaining the value to validate.
-
getValueConstraint
-