|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.percederberg.mibble.type.CompoundConstraint
A compound MIB type constraint. This class holds two constraints, either one that must be compatible for this constraint to return true. Effectively this class represents an OR composition of the two constraints.
| Constructor Summary | |
CompoundConstraint(Constraint first,
Constraint second)
Creates a new compound constraint. |
|
| Method Summary | |
java.util.ArrayList |
getConstraintList()
Returns a list of the constraints in this compound. |
void |
initialize(MibLoaderLog log)
Initializes the constraint. |
boolean |
isCompatible(MibType type)
Checks if the specified type is compatible with this constraint. |
boolean |
isCompatible(MibValue value)
Checks if the specified value is compatible with this constraint set. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CompoundConstraint(Constraint first,
Constraint second)
first - the first constraintsecond - the second constraint| Method Detail |
public void initialize(MibLoaderLog log)
throws MibException
initialize in interface Constraintlog - the MIB loader log
MibException - if an error was encountered during the
initializationpublic boolean isCompatible(MibType type)
isCompatible in interface Constrainttype - the type to check
public boolean isCompatible(MibValue value)
isCompatible in interface Constraintvalue - the value to check
public java.util.ArrayList getConstraintList()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||