public class MappingCache extends AbstractSequencerRule
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
acceptMissingAlias |
protected java.lang.String |
aliasName |
protected AoSession |
aoSession |
protected java.util.HashMap<java.lang.String,ElementMap> |
elementMap |
protected java.util.HashMap<java.lang.String,UserFieldMap> |
userFieldMap |
cleanAfterGet, localNVUloggerName, postMethods, preMethods, sessionRefarguments, ctx, descriptor, NEW_LINE| Constructor and Description |
|---|
MappingCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
The execute method, nothing to do.
|
java.lang.String |
getAlias(java.lang.String elementName)
Get the mapping of an element
|
java.lang.String |
getAliasAttribute(java.lang.String elementName,
java.lang.String mapName)
Get the name of an attribute of the given element with the
|
java.lang.String |
getAttributeAlias(java.lang.String elementName,
java.lang.String attrName)
Get the mapping of an attribute of the given element.
|
java.util.HashMap<java.lang.String,ElementMap> |
getElementMap() |
int |
getElementSize() |
java.util.HashMap<java.lang.String,UserFieldMap> |
getUserFieldMap() |
int |
getUserFieldSize() |
void |
init()
Initialize the work.
|
boolean |
isDefinedUserField(java.lang.String userFieldName)
Check if the user field is defined in the mapping.
|
java.lang.String[] |
listElements() |
java.lang.String[] |
listUserFields() |
void |
setElementMap(java.util.HashMap<java.lang.String,ElementMap> elementMap) |
void |
setUserFieldMap(java.util.HashMap<java.lang.String,UserFieldMap> userFieldMap) |
void |
setValue(NameValueUnit[][] nvu)
Set the named values to rule.
|
void |
terminate()
The terminate method reset the class variables.
|
getValueexecute, executePostMethods, executePreMethods, getAoSessionFromContextWithSessionRef, getId, getOdsCache, getPointTo, getSessionRef, getType, isPedantic, setGathermode, setId, setPointTo, setPostMethods, setPreMethods, setSessionRef, setType, 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, makeUpperCaseKeyword, removeAttributeFromNameValueUnitArray, removeAttributeFromNameValueUnitArray, setArguments, setContext, setDescriptorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContext, getDescriptor, setArguments, setContext, setDescriptorprotected AoSession aoSession
protected java.lang.String aliasName
protected java.util.HashMap<java.lang.String,ElementMap> elementMap
protected java.util.HashMap<java.lang.String,UserFieldMap> userFieldMap
protected boolean acceptMissingAlias
public void init()
throws InitializationFailedException
AbstractImplementationinit in interface ImplementationIFinit in class AbstractSequencerRuleInitializationFailedException - if the initialization fails.public void setValue(NameValueUnit[][] nvu) throws RuleException
RuleIFnvu - The name value of the rule.RuleExceptionpublic void execute()
throws ExecutableException
AbstractSequencerRuleexecute in interface ExecutableIFexecute in class AbstractSequencerRuleExecutableException - if execution fails.AbstractRule.execute()public void terminate()
throws TerminationException
AbstractSequencerRuleterminate in interface ExecutableIFterminate in class AbstractSequencerRuleTerminationException - if termination fails.AbstractRule.terminate()public java.lang.String[] listElements()
public java.lang.String[] listUserFields()
public java.lang.String getAlias(java.lang.String elementName)
elementName - the name of the element.public java.lang.String getAttributeAlias(java.lang.String elementName,
java.lang.String attrName)
elementName - the name of the element.attrName - the name of the attribute.public java.lang.String getAliasAttribute(java.lang.String elementName,
java.lang.String mapName)
elementName - the name of the element.attrName - the name of the attribute.public boolean isDefinedUserField(java.lang.String userFieldName)
userFieldName - name of the user field.public int getElementSize()
public int getUserFieldSize()
public java.util.HashMap<java.lang.String,ElementMap> getElementMap()
public void setElementMap(java.util.HashMap<java.lang.String,ElementMap> elementMap)
elementMap - the elementMap to setpublic java.util.HashMap<java.lang.String,UserFieldMap> getUserFieldMap()
public void setUserFieldMap(java.util.HashMap<java.lang.String,UserFieldMap> userFieldMap)
userFieldMap - the userFieldMap to set