public class CompoundConstraint extends java.lang.Object implements Constraint
| Constructor and Description |
|---|
CompoundConstraint(Constraint first,
Constraint second)
Creates a new compound constraint.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<Constraint> |
getConstraintList()
Returns a list of the constraints in this compound.
|
void |
initialize(MibType type,
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.
|
public CompoundConstraint(Constraint first, Constraint second)
first - the first constraintsecond - the second constraintpublic void initialize(MibType type, MibLoaderLog log) throws MibException
initialize in interface Constrainttype - the type to constrainlog - the MIB loader logMibException - if an error was encountered during the
initializationpublic boolean isCompatible(MibType type)
isCompatible in interface Constrainttype - the type to checkpublic boolean isCompatible(MibValue value)
isCompatible in interface Constraintvalue - the value to checkpublic java.util.ArrayList<Constraint> getConstraintList()
public java.lang.String toString()
toString in class java.lang.Object