|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.snmp4j.agent.mo.snmp.smi.ValueConstraintValidator
org.snmp4j.agent.mo.snmp.DisplayString.DisplayStringValidation
public static class DisplayString.DisplayStringValidation
The DisplayStringValidation can be used to validate the
contents of OctetString variables that follow the
DisplayString TC rules.
| Constructor Summary | |
|---|---|
DisplayString.DisplayStringValidation(Constraints valueConstraint)
|
|
DisplayString.DisplayStringValidation(int minSize,
int maxSize)
|
|
| Method Summary | |
|---|---|
void |
validate(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. |
| Methods inherited from class org.snmp4j.agent.mo.snmp.smi.ValueConstraintValidator |
|---|
getValueConstraint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DisplayString.DisplayStringValidation(Constraints valueConstraint)
public DisplayString.DisplayStringValidation(int minSize,
int maxSize)
| Method Detail |
|---|
public void validate(MOValueValidationEvent validationEvent)
ValueConstraintValidatorSnmpConstants.SNMP_ERROR_SUCCESS) if the validation was
successful. The validation is returned by calling the
MOValueValidationEvent.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
validate in interface MOValueValidationListenervalidate in class ValueConstraintValidatorvalidationEvent - the MOValueValidationEvent containing the value to
validate.
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||