public class MapValue extends TransformationUtility<MapValue>
Map
object stored in the TransformationContext
,
and store its value as a new attribute in the transformation context. The name of the transformation
context attribute that holds the map object, and the key used to get the map entry, have to be specified.
TransformationUtility.setContextAttributeName(String)
is called, as usual, nothing new here.UTILITY_NAME_SYNTAX
Constructor and Description |
---|
MapValue()
This utility obtains a specific entry from a
Map object stored in the transformation context,
and store its value as a new attribute in the transformation context. |
MapValue(java.lang.String mapName,
java.lang.Object key)
This utility obtains a specific entry from a
Map object stored in the transformation context,
and store its value as a new attribute in the transformation context. |
Modifier and Type | Method and Description |
---|---|
protected ExecutionResult |
execution(java.io.File transformedAppFolder,
TransformationContext transformationContext)
The implementation execution of this transformation utility.
|
java.lang.String |
getDescription()
Returns a short one line, but SPECIFIC, description about the transformation
utility, including mentioning the files and/or folders
to be manipulated.
|
java.lang.Object |
getKey()
Returns he key used to get the map entry
|
java.lang.String |
getMapName()
Return the name of the transformation context attribute that holds the map object
|
MapValue |
setKey(java.lang.Object key)
Set the key used to get the map entry
|
MapValue |
setMapName(java.lang.String mapName)
Set the name of the transformation context attribute that holds the map object
|
abortOnFailure, abortOnFailure, absolute, absolute, applyPropertiesFromContext, checkDependencies, checkForBlankString, checkForEmptyString, checkForNull, clone, copy, dependsOn, equals, executeIf, executeIf, executeUnless, getAbortionMessage, getAbsoluteFile, getContextAttributeName, getDependencies, getIfConditionAttributeName, getName, getOrder, getParent, getRelativePath, getRelativePath, getSimpleClassName, getTransformationTemplate, getUnlessConditionAttributeName, hasBeenPerformed, hashCode, hashCode, isAbortOnFailure, isFileSet, isSaveResult, normalizeRelativePathSeparator, perform, relative, set, setContextAttributeName, setName, setParent, setSaveResult, toString, wasFileExplicitlySet
public MapValue()
Map
object stored in the transformation context,
and store its value as a new attribute in the transformation context. The name of the transformation
context attribute that holds the map object, and the key used to get the map entry, have to be specified.
TransformationUtility.setContextAttributeName(String)
is called, as usual, nothing new here.public MapValue(java.lang.String mapName, java.lang.Object key)
Map
object stored in the transformation context,
and store its value as a new attribute in the transformation context. The name of the transformation
context attribute that holds the map object, and the key used to get the map entry, have to be specified.
TransformationUtility.setContextAttributeName(String)
is called, as usual, nothing new here.mapName
- the name of the transformation context attribute that holds the map objectkey
- the key used to get the map entrypublic MapValue setMapName(java.lang.String mapName)
mapName
- the name of the transformation context attribute that holds the map objectpublic MapValue setKey(java.lang.Object key)
key
- the key used to get the map entrypublic java.lang.String getMapName()
public java.lang.Object getKey()
public java.lang.String getDescription()
TransformationUtility
getDescription
in class TransformationUtility<MapValue>
protected ExecutionResult execution(java.io.File transformedAppFolder, TransformationContext transformationContext)
TransformationUtility
TransformationUtility.isSaveResult()
returns false.
ExecutionResult
error object.execution
in class TransformationUtility<MapValue>
transformedAppFolder
- the folder where the transformed application code istransformationContext
- the transformation context object