public abstract class AscobaAbstractRule extends AbstractRule
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
elementName
The name of the application element.
|
protected HandledInstancesMap |
handledMap
Map with the handled instances.
|
protected java.util.logging.Logger |
messenger
The messenger
|
protected AoSession |
sourceSess
The ASAM ODS session of the source.
|
protected boolean |
useDestroy |
loggerName, postMethods, preMethods, sessionRefarguments, ctx, descriptor, NEW_LINE| Constructor and Description |
|---|
AscobaAbstractRule() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCopied(java.lang.String aeName,
T_LONGLONG ieId,
InstanceElement ieTarget)
Add the target instances from the source instance.
|
protected void |
addHandledId(java.lang.String aeName,
T_LONGLONG ieId)
Add the Id of the instances to the list with handled Id's.
|
protected boolean |
checkHandledId(java.lang.String aeName,
T_LONGLONG ieId)
Check the Id of the instances is already in the the list with handled Id's.
|
protected void |
destroy(InstanceElement ie)
Destroy the instance.
|
protected void |
destroy(InstanceElementIterator ieIter)
Destroy the instance iterator.
|
void |
execute()
The execute method, nothing to do.
|
protected InstanceElement |
getCopiedTarget(java.lang.String aeName,
T_LONGLONG ieId)
Get the target instances element when the instances is already copied from source instance.
|
protected T_LONGLONG[] |
getIds()
Get the List with the Id's of the handled instances of an element.
|
protected T_LONGLONG[] |
getIds(java.lang.String aeName)
Get the id of the handled instances from a given element.
|
protected T_LONGLONG |
getIdValue(TS_Value val)
Returns the Id value in the type T_LONGLONG independent of the datatype of the input value.
|
protected ApplicationRelation |
getTargetApplicationRelation(ApplicationRelation ar,
ApplicationRelation[] arTarList,
java.lang.String aeName)
Get the relation from the target corresponding the relation from the source
|
NameValueUnit[][] |
getValue()
AscobaAbstractRule, nothing to do at getValue()
|
void |
init(java.lang.String logger_name)
The initialization of the rule.
|
void |
setValue(NameValueUnit[][] nvu)
AscobaAbstractRule, , nothing to do at setValue()
|
void |
setValue(java.lang.String logger_name,
NameValueUnit[][] nvu)
Set the value.
|
protected java.lang.String |
stactTraceToString(java.lang.Exception e)
Generate the string of exception stack trace.
|
void |
terminate(java.lang.String logger_name)
The terminate method, reset the local variables.
|
execute, executePostMethods, executePreMethods, getAoSessionFromContextWithSessionRef, getId, getOdsCache, getPointTo, getSessionRef, getType, isPedantic, setGathermode, setId, setPointTo, setPostMethods, setPreMethods, setSessionRef, setType, terminate, toString, toString, toStringaddAttributesToNameValueUnitArray, 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, init, makeUpperCaseKeyword, removeAttributeFromNameValueUnitArray, removeAttributeFromNameValueUnitArray, setArguments, setContext, setDescriptorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContext, getDescriptor, init, setArguments, setContext, setDescriptorprotected AoSession sourceSess
protected java.lang.String elementName
protected boolean useDestroy
protected java.util.logging.Logger messenger
protected HandledInstancesMap handledMap
public NameValueUnit[][] getValue() throws RuleException
RuleExceptionRuleIF.getValue()public void setValue(NameValueUnit[][] nvu) throws RuleException
nvu - - the attribute values.RuleExceptionRuleIF.setValue(org.asam.ods.NameValueUnit[][])protected T_LONGLONG getIdValue(TS_Value val)
val - the input value.public void init(java.lang.String logger_name)
throws InitializationFailedException
InitializationFailedExceptionAbstractImplementation.init()public void execute()
throws ExecutableException
execute in interface ExecutableIFexecute in class AbstractRuleExecutableException - if execution fails.AbstractRule.execute()public void terminate(java.lang.String logger_name)
throws TerminationException
TerminationExceptionAbstractRule.terminate()protected ApplicationRelation getTargetApplicationRelation(ApplicationRelation ar, ApplicationRelation[] arTarList, java.lang.String aeName) throws AoException
ar - the relation from the source.arTarList - the list with relations from the targetaeName - the name of the application elementAoException - any ASAM ODS exceptionpublic void setValue(java.lang.String logger_name,
NameValueUnit[][] nvu)
throws RuleException
logger_name - the name of the loggernvu - - the attribute values of the instances of the element of the rule.RuleExceptionRuleIF.setValue(org.asam.ods.NameValueUnit[][])protected void addHandledId(java.lang.String aeName,
T_LONGLONG ieId)
aeName - the name of the application element.ieId - the Id of the instance.protected void addCopied(java.lang.String aeName,
T_LONGLONG ieId,
InstanceElement ieTarget)
aeName - the name of the application element.ieId - the Id of the instance.ieTarget - the target instanceprotected InstanceElement getCopiedTarget(java.lang.String aeName, T_LONGLONG ieId)
aeName - name of the element.ieId - Id of the source instanceprotected boolean checkHandledId(java.lang.String aeName,
T_LONGLONG ieId)
aeName - the name of the application element.ieId - the Id of the instance.protected T_LONGLONG[] getIds()
protected T_LONGLONG[] getIds(java.lang.String aeName)
aeName - the name of the element.protected java.lang.String stactTraceToString(java.lang.Exception e)
e - the exception.protected void destroy(InstanceElement ie) throws AoException
ie - the instanceAoException - any occurring ASAM ODS exception.protected void destroy(InstanceElementIterator ieIter) throws AoException
ie - the instance iterator.AoException - any occurring ASAM ODS exception.