|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Constraints
The Constraints interface describes a collection of SNMP value
range constraints.
| Method Summary | |
|---|---|
void |
add(Constraint constraint)
Adds a range constraint to the constraints collection. |
Constraint[] |
getConstraints()
Gets an array with the constraints in this collection ordered by insertion time. |
boolean |
isValidSize(long size)
Interpretes the value range constraints contained in this collection as size restrictions for OCTET STRING values and checks whether the given size matches these criteria. |
void |
remove(Constraint constraint)
Removes a constraint. |
| Methods inherited from interface org.snmp4j.agent.mo.snmp.smi.ValueConstraint |
|---|
validate |
| Method Detail |
|---|
void add(Constraint constraint)
constraint - a SNMP integer/long value range constraint.void remove(Constraint constraint)
constraint - a SNMP integer/long value range constraint.Constraint[] getConstraints()
Constraint instances.boolean isValidSize(long size)
size - a long value representing an OCTET STRING size.
true if the size is valid.
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||