|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.scribble.protocol.conformance.LoggingConformanceHandler
public class LoggingConformanceHandler
This implementation records conformance related information to the logging journal. WARNING: This component is still in the EXPERIMENTAL stage, so its API could change.
Field Summary | |
---|---|
static String |
CONFORMANCE_MODEL_OBJECT
Conformance model object. |
static String |
CONFORMANCE_REFERENCE_INDEX
Conformance model object. |
static String |
CONFORMANCE_REFERENCE_OBJECT
Conformance model object. |
static String |
CONFORMANCE_REFERENCE_PARENT
Conformance model object. |
Constructor Summary | |
---|---|
LoggingConformanceHandler(org.scribble.common.logging.Journal logger)
This constructor initialises the conformance handler with the journal. |
Method Summary | |
---|---|
void |
added(ModelObject modelObject,
ModelObject refParent,
int index)
This method indicates that a new model object has been detected in the model. |
void |
removed(ModelObject refObject)
This method indicates that a model object within the reference model does not exist in the model being conformance checked. |
void |
updated(ModelObject modelObject,
ModelObject refObject)
This method indicates that a change has been detected between equivalent model objects found in the primary and reference models. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONFORMANCE_MODEL_OBJECT
public static final String CONFORMANCE_REFERENCE_PARENT
public static final String CONFORMANCE_REFERENCE_INDEX
public static final String CONFORMANCE_REFERENCE_OBJECT
Constructor Detail |
---|
public LoggingConformanceHandler(org.scribble.common.logging.Journal logger)
logger
- The journalMethod Detail |
---|
public void added(ModelObject modelObject, ModelObject refParent, int index)
added
in interface ConformanceHandler
modelObject
- The new model object, from the model being checkedrefParent
- The 'parent' model object, from the reference model,
that would contain the new objectindex
- The child index, in the reference model, where the new
model object would be positionedpublic void updated(ModelObject modelObject, ModelObject refObject)
updated
in interface ConformanceHandler
modelObject
- The model object, from the model being checkedrefObject
- The model object, from the reference modelpublic void removed(ModelObject refObject)
removed
in interface ConformanceHandler
refObject
- The model object, not found in the primary model,
as defined in the reference model
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |