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, localNVU
loggerName, postMethods, preMethods, sessionRef
arguments, 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.
|
getValue
execute, executePostMethods, executePreMethods, getAoSessionFromContextWithSessionRef, getId, getOdsCache, getPointTo, getSessionRef, getType, isPedantic, setGathermode, setId, setPointTo, setPostMethods, setPreMethods, setSessionRef, setType, toString, toString, toString
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, wait, wait, wait
getContext, getDescriptor, setArguments, setContext, setDescriptor
protected 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
AbstractImplementation
init
in interface ImplementationIF
init
in class AbstractSequencerRule
InitializationFailedException
- if the initialization fails.public void setValue(NameValueUnit[][] nvu) throws RuleException
RuleIF
nvu
- The name value of the rule.RuleException
public void execute() throws ExecutableException
AbstractSequencerRule
execute
in interface ExecutableIF
execute
in class AbstractSequencerRule
ExecutableException
- if execution fails.AbstractRule.execute()
public void terminate() throws TerminationException
AbstractSequencerRule
terminate
in interface ExecutableIF
terminate
in class AbstractSequencerRule
TerminationException
- 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