|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Constraint
Basic Constraint interface which allows traversal and evaluation of a constraint tree.
| Field Summary | |
|---|---|
static String |
TYPE_ACCEPT
|
static String |
TYPE_ALLOCATION
|
static String |
TYPE_CONTINUE
|
static String |
TYPE_DEFAULT
|
static String |
TYPE_HEALTH
|
static String |
TYPE_PROVISION
|
static String |
TYPE_REPOSITORY
|
static String |
TYPE_RESET
|
static String |
TYPE_RESOURCE
|
static String |
TYPE_START
|
static String |
TYPE_TRIGGER
|
static String |
TYPE_VMHOST
|
static String[] |
TYPES
|
| Method Summary | |
|---|---|
String |
getReason()
Retrieve reason string that contains human readable explanation that can be displayed as an error when a constraint evaluates to false. |
void |
setReason(String reason)
Sets the reason string that contains human readable explanation that can be displayed as an error when a constraint evaluates to false. |
String |
toString()
Form complete formatted XML (policy syntax) document. |
String |
toXmlDocument(int indent)
Form complete formatted XML (policy syntax) document with requested indent. |
void |
validate()
Validate this constraint for completeness. |
| Field Detail |
|---|
static final String TYPE_ACCEPT
static final String TYPE_START
static final String TYPE_CONTINUE
static final String TYPE_PROVISION
static final String TYPE_ALLOCATION
static final String TYPE_RESOURCE
static final String TYPE_VMHOST
static final String TYPE_REPOSITORY
static final String TYPE_HEALTH
static final String TYPE_TRIGGER
static final String TYPE_RESET
static final String TYPE_DEFAULT
static final String[] TYPES
| Method Detail |
|---|
String getReason()
void setReason(String reason)
reason - containing reason to display
void validate()
throws ConstraintException
ConstraintException - if constraint is not completeString toString()
toString in class ObjectString toXmlDocument(int indent)
indent - the indent to use for generated XML document.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||