-
- All Known Subinterfaces:
Constraints
- All Known Implementing Classes:
ConstraintsImpl,EnumerationConstraint
public interface ValueConstraintAValueConstraintinstance validates the value ranges of a SNMP value to match a certain constraint.- Version:
- 1.0
- Author:
- Frank Fock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intvalidate(org.snmp4j.smi.Variable variable)Indicates whether a SNMP value matches this value constraint.
-
-
-
Method Detail
-
validate
int validate(org.snmp4j.smi.Variable variable)
Indicates whether a SNMP value matches this value constraint.- Parameters:
variable- a SNMP value that has to match the type of SNMP value thisValueConstraintsupports. Otherwise a wrongType error should be returned instead of throwing aClassCastException.- Returns:
- a SNMP error status (e.g. wrongValue) if the value does not match the constraint, or zero if it matches.
-
-