public class CompareModelDoxygen extends AbstractImplementation implements ExecutableIF
| Modifier and Type | Field and Description |
|---|---|
protected AoSession |
sourceSess
The ASAM ODS session of the source.
|
protected AoSession |
targetSess
The ASAM ODS session of the target.
|
arguments, ctx, descriptor, NEW_LINE| Constructor and Description |
|---|
CompareModelDoxygen() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
compareAttribute(java.io.PrintWriter pw,
ApplicationElement ae,
ApplicationElement aeTarget,
ApplicationAttribute aa,
java.lang.String source,
java.lang.String target,
boolean targetCompare)
Compare the attributes from the ASAM ODS services.
|
protected void |
compareElement(java.io.PrintWriter pw,
ApplicationElement ae,
ApplicationStructure target,
AoSession targetSession)
Compare the application element from the source with the element in the target.
|
protected void |
compareEnumeration(java.io.PrintWriter pw,
EnumerationDefinition ed,
EnumerationDefinition edTarget,
java.lang.String source,
java.lang.String target)
Compare the enumeration definitions from two ODS services.
|
protected boolean |
compareRelation(java.io.PrintWriter pw,
ApplicationElement ae,
ApplicationElement aeTarget,
ApplicationRelation ar,
java.lang.String source,
java.lang.String target,
boolean targetCompare)
Compare the relation of an element with the relation from the target element.
|
void |
execute()
The execute method, copy the model from the source session into the target session.
|
protected ApplicationRelation |
getRelationByName(ApplicationElement ae,
java.lang.String arName)
Get the application relation defined by the relation name.
|
void |
init()
Initialize the copy of the model
|
protected void |
printBaseAttribute(java.io.PrintWriter pw,
InstanceElement ie,
java.lang.String baName)
Print a value of the instance element
|
protected void |
printSession(java.io.PrintWriter pw,
AoSession session)
Print the information of the session for the model description.
|
void |
terminate()
The terminate method, nothing to do.
|
addAttributesToNameValueUnitArray, addAttributeToNameValueUnitArray, addStringValueToNameValueUnitArray, checkDirectoy, checkDirectoy, checkDirectoy, checkFile, checkFile, checkFile, checkIntValue, checkStringValue, compressNvuArray, createMessageFromPropertyFile, createMessageFromPropertyFile, createMessageFromPropertyFile, createTsUnionFromObject, deleteRowWithAttributes, getArguments, getContext, getDescriptor, getListFromProperty, getMandatoryProperty, getMandatoryProperty, getMandatoryPropertyAsInt, getMandatoryPropertyAsList, getMandatoryPropertyWithRuleException, getNvuArrayFromMap, getNvuArrayFromMap, getNvuObjectWithName, getNvuObjectWithName, getNvuObjectWithName, getOdsCacheFromProperty, getOptioanlPropertyAsInt, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsList, makeUpperCaseKeyword, removeAttributeFromNameValueUnitArray, removeAttributeFromNameValueUnitArray, setArguments, setContext, setDescriptorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContext, getDescriptor, setArguments, setContext, setDescriptorprotected AoSession sourceSess
protected AoSession targetSess
protected void printBaseAttribute(java.io.PrintWriter pw,
InstanceElement ie,
java.lang.String baName)
pw - the writerie - the instance elementbaName - the base attribute name of the value to print.protected void printSession(java.io.PrintWriter pw,
AoSession session)
pw - the writersession - the session.public void execute()
throws ExecutableException
execute in interface ExecutableIFExecutableException - if execution fails.ExecutableIF.execute()public void terminate()
throws TerminationException
terminate in interface ExecutableIFTerminationException - if termination fails.ExecutableIF.terminate()public void init()
throws InitializationFailedException
init in interface ImplementationIFinit in class AbstractImplementationInitializationFailedException - - When one of the required arguments not exist.com.highqsoft.xsd.ImplentationIF#init()protected void compareEnumeration(java.io.PrintWriter pw,
EnumerationDefinition ed,
EnumerationDefinition edTarget,
java.lang.String source,
java.lang.String target)
throws AoException
pw - the writered - enumeration definition from the source.edTarget - enumeration definition from the targetsource - the name of the sourcetarget - the name of the targetAoException - any occurring ASAM ODS Exceptionprotected boolean compareAttribute(java.io.PrintWriter pw,
ApplicationElement ae,
ApplicationElement aeTarget,
ApplicationAttribute aa,
java.lang.String source,
java.lang.String target,
boolean targetCompare)
throws AoException
pw - the writerae - element from the source services.aeTarget - element from the target services.aa - the application attribute from the source services.source - the name of the source.target - the name of the targettargetCompare - compare the attribute of the target.AoException - any occurring ASAM ODS exception.protected void compareElement(java.io.PrintWriter pw,
ApplicationElement ae,
ApplicationStructure target,
AoSession targetSession)
throws AoException
pw - the writer.ae - the application element to copy.target - the target application structuretargetSession - the target sessionAoException - any occurring exception.protected ApplicationRelation getRelationByName(ApplicationElement ae, java.lang.String arName) throws AoException
ae - the application element.arName - the relation nameAoException - any occurring ASAM ODS Exception.protected boolean compareRelation(java.io.PrintWriter pw,
ApplicationElement ae,
ApplicationElement aeTarget,
ApplicationRelation ar,
java.lang.String source,
java.lang.String target,
boolean targetCompare)
throws AoException
pw - the writerae - the application element from the source.aeTarget - the application element from the target.ar - the relation from the source.source - the name of the sourcetarget - the name of the targettargetCompare - is the compare on a target relationAoException - any occurring ASAM ODS exception.