public class CompareModel 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 |
---|
CompareModel() |
Modifier and Type | Method and Description |
---|---|
protected void |
compareAttribute(ApplicationElement ae,
ApplicationElement aeTarget,
ApplicationAttribute aa)
Compare the attributes from the ASAM ODS services.
|
protected void |
compareElement(ApplicationElement ae,
ApplicationStructure target,
AoSession targetSession)
Compare the application element from the source with the element in the target.
|
protected void |
compareEnumeration(EnumerationDefinition ed,
EnumerationDefinition edTarget,
java.lang.String aeName,
java.lang.String aaName)
Compare the enumeration definitions from two ODS services.
|
protected void |
compareRelation(ApplicationElement ae,
ApplicationElement aeTarget,
ApplicationRelation ar)
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
|
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, setDescriptor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContext, getDescriptor, setArguments, setContext, setDescriptor
protected AoSession sourceSess
protected AoSession targetSess
public void execute() throws ExecutableException
execute
in interface ExecutableIF
ExecutableException
- if execution fails.ExecutableIF.execute()
public void terminate() throws TerminationException
terminate
in interface ExecutableIF
TerminationException
- if termination fails.ExecutableIF.terminate()
public void init() throws InitializationFailedException
init
in interface ImplementationIF
init
in class AbstractImplementation
InitializationFailedException
- - When one of the required arguments not exist.com.highqsoft.xsd.ImplentationIF#init()
protected void compareEnumeration(EnumerationDefinition ed, EnumerationDefinition edTarget, java.lang.String aeName, java.lang.String aaName) throws AoException
ed
- enumeration definition from the source.edTarget
- enumerationdefinition from the targetaeName
- name of the application element where the attribute belongs to.aaName
- name of the attribute where the definition is defined.AoException
- any occurring ASAM ODS exceptionprotected void compareAttribute(ApplicationElement ae, ApplicationElement aeTarget, ApplicationAttribute aa) throws AoException
ae
- element from the source services.aeTarget
- element from the target services.aa
- the application attribute from the source services.AoException
- any occurring ASAM ODS exception.protected void compareElement(ApplicationElement ae, ApplicationStructure target, AoSession targetSession) throws AoException
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 void compareRelation(ApplicationElement ae, ApplicationElement aeTarget, ApplicationRelation ar) throws AoException
ae
- the application element from the source.aeTarget
- the application element from the target.ar
- the relation from the source.AoException
- any occurring ASAM ODS exception.