public class RenameFieldsAction extends PipelineAction
| Modifier and Type | Class and Description |
|---|---|
static class |
RenameFieldsAction.FieldMapping |
internalId, internalName, log, TIMESTAMP_FORMATSERIALIZED_CLASS_NAME, TYPEXML_SERIALIZED_CLASS_NAME| Constructor and Description |
|---|
RenameFieldsAction() |
| Modifier and Type | Method and Description |
|---|---|
RenameFieldsAction |
add(String source,
String target) |
DataReader |
apply(DataReader reader) |
RenameFieldsAction |
fromRecord(Record source)
Loads this instance's state from a record and returns
this (for fluid API call chaining). |
PipelineAction |
fromXmlElement(Element element) |
void |
generateJavaCode(JavaCodeBuilder code) |
List<RenameFieldsAction.FieldMapping> |
getMapping() |
boolean |
isParseFieldNamesAsFieldPath()
Indicates if each source field name in the mappings should be treated as a
FieldPath expression and parsed (when true, the default)
or as a literal and used as a name, exactly as-is without parsing (when false). |
RenameFieldsAction |
setMapping(List<RenameFieldsAction.FieldMapping> mapping) |
RenameFieldsAction |
setParseFieldNamesAsFieldPath(boolean parseFieldNamesAsFieldPath)
Indicates if each source field name in the mappings should be treated as a
FieldPath expression and parsed (when true, the default)
or as a literal and used as a name, exactly as-is without parsing (when false). |
PipelineAction |
setPipeline(Pipeline pipeline) |
Record |
toRecord() |
Element |
toXmlElement(Document document) |
escapeJavaString, getCode, getDescription, getDisplayText, getPipeline, setDescription, toStringaddExceptionProperties, assertValid, assertValid, clone, exception, exception, exception, getInternalId, getInternalName, resetInternalIdequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfromArrayValue, fromArrayValue, fromArrayValue, fromJson, fromJson, newInstanceFromRecord, newInstanceFromRecord, toArrayValue, toJson, toJson, toJson, toRecordnewInstanceFromJsonforEachGrandChildElement, fromXml, fromXml, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getChildElement, getChildElements, newInstanceFromXml, newInstanceFromXml, setAttribute, toXml, toXml, toXml, toXml, toXml, writeXml, writeXmladdExceptionProperties, contributeExceptionProperties, contributeExceptionPropertiespublic PipelineAction setPipeline(Pipeline pipeline)
setPipeline in class PipelineActionpublic List<RenameFieldsAction.FieldMapping> getMapping()
public RenameFieldsAction setMapping(List<RenameFieldsAction.FieldMapping> mapping)
public RenameFieldsAction add(String source, String target)
public boolean isParseFieldNamesAsFieldPath()
FieldPath expression and parsed (when true, the default)
or as a literal and used as a name, exactly as-is without parsing (when false). Setting this to false allows white spaces and
special characters to be used in the source field names without quoting and escaping internal quotes.public RenameFieldsAction setParseFieldNamesAsFieldPath(boolean parseFieldNamesAsFieldPath)
FieldPath expression and parsed (when true, the default)
or as a literal and used as a name, exactly as-is without parsing (when false). Setting this to false allows white spaces and
special characters to be used in the source field names without quoting and escaping internal quotes.public DataReader apply(DataReader reader)
public Record toRecord()
toRecord in interface RecordSerializabletoRecord in class PipelineActionpublic RenameFieldsAction fromRecord(Record source)
RecordSerializablethis (for fluid API call chaining).
For fluid API call chaining, the overridden method should change the declared return type to its class.fromRecord in interface RecordSerializablefromRecord in class PipelineActionpublic Element toXmlElement(Document document)
toXmlElement in interface XmlSerializabletoXmlElement in class PipelineActionpublic PipelineAction fromXmlElement(Element element)
fromXmlElement in interface XmlSerializablefromXmlElement in class PipelineActionpublic void generateJavaCode(JavaCodeBuilder code)
generateJavaCode in interface JavaCodeGeneratorgenerateJavaCode in class PipelineActionCopyright (c) 2006-2025 North Concepts Inc. All Rights Reserved.