Constraints
ConstraintsImpl
, EnumerationConstraint
public interface ValueConstraint
ValueConstraint
instance validates the value ranges of a
SNMP value to match a certain constraint.Modifier and Type | Method | Description |
---|---|---|
int |
validate(org.snmp4j.smi.Variable variable) |
Indicates whether a SNMP value matches this value constraint.
|
int validate(org.snmp4j.smi.Variable variable)
variable
- a SNMP value that has to match the type of SNMP value this
ValueConstraint
supports. Otherwise a wrongType error
should be returned instead of throwing a
ClassCastException
.Copyright © 2018 SNMP4J.org. All rights reserved.