|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Precondition
A simple precondition of an InputPort. In an early design phase, preconditions
used to be special MDTransformationRules rules, but having them separately
attached to the input ports has advantages for GUI design and auto-wiring processes.
| Method Summary | |
|---|---|
void |
assumeSatisfied()
Assume that the precondition is satisfied, i.e., artificially generate compatible meta data at the input port. |
void |
check(MetaData metaData)
Checks whether the precondition is satisfied, registering a MetaDataError with the input port if not. |
java.lang.String |
getDescription()
Returns a human readable description. |
MetaData |
getExpectedMetaData()
Returns the meta data required by this precondition. |
boolean |
isCompatible(MetaData input,
CompatibilityLevel level)
Returns true if the given object is compatible with this precondition. |
| Method Detail |
|---|
void check(MetaData metaData)
MetaDataError with the input port if not.
metaData - the delivered meta data. Note that this may differ from the meta data currently assigned to the
input port for which this Precondition was created, e.g. for a ClooectionPrecondition.java.lang.String getDescription()
boolean isCompatible(MetaData input,
CompatibilityLevel level)
void assumeSatisfied()
MetaData getExpectedMetaData()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||