|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.snmp4j.agent.mo.snmp.smi.EnumerationConstraint
public class EnumerationConstraint
The EnumerationConstraint class checks an Integer32
value to match a set of (enumerated) values or a OctetString
value to match a set of bit values for the BITS SMI type.
| Constructor Summary | |
|---|---|
EnumerationConstraint(int[] allowedValues)
Creates an EnumerationConstraint based on the specified array
of integer values. |
|
| Method Summary | |
|---|---|
int |
validate(org.snmp4j.smi.Variable variable)
Indicates whether a SNMP value matches this value constraint. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnumerationConstraint(int[] allowedValues)
EnumerationConstraint based on the specified array
of integer values.
allowedValues - an array of allowed values.| Method Detail |
|---|
public int validate(org.snmp4j.smi.Variable variable)
ValueConstraint
validate in interface ValueConstraintvariable - 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 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||