| org.snmp4j.agent.mo.snmp.smi.ValueConstraint
All known Subclasses: org.snmp4j.agent.mo.snmp.smi.EnumerationConstraint,
ValueConstraint | public interface ValueConstraint (Code) | | A ValueConstraint instance validates the value ranges of a
SNMP value to match a certain constraint.
author: Frank Fock version: 1.0 |
Method Summary | |
int | validate(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 thisValueConstraint supports. |
validate | int validate(Variable variable)(Code) | | Indicates whether a SNMP value matches this value constraint.
Parameters: variable - a SNMP value that has to match the type of SNMP value thisValueConstraint supports. Otherwise a wrongType errorshould be returned instead of throwing aClassCastException .a SNMP error status (e.g. wrongValue) if the value does not matchthe constraint, or zero if it matches. |
|
|