public class LegacyFlowImpl extends java.lang.Object implements LegacyFlow
Constructor and Description |
---|
LegacyFlowImpl() |
Modifier and Type | Method and Description |
---|---|
static LegacyFlow |
fromXml(org.w3c.dom.Node xml) |
CodeFormat |
getCodeFormat()
Returns the CodeFormat enum of the flow
|
LegacyCollector |
getCollector()
Gets the collector to be used for the flow
|
DataFormat |
getDataFormat()
Returns the DataForm enum of the flow
|
java.lang.String |
getEntityName()
Returns the name of the entity that's been set for the flow in strong form
|
java.lang.String |
getFlowDbPath()
Gets the DbPath (uri) for the flow in string form
|
MainPlugin |
getMain()
Gets the main plugin module that the flow is set to use
|
java.lang.String |
getMappingName()
Gets the mapping name used for the flow
|
java.lang.String |
getName()
Gets the name of the flow
|
FlowType |
getType()
Gets the FlowType enum for the flow
|
static LegacyFlow |
loadFromFile(java.io.File file) |
java.lang.String |
serialize()
Serializes the flow into an xml string
|
void |
setCodeFormat(CodeFormat codeFormat)
Sets the CodeFormat enum of the flow
|
void |
setCollector(LegacyCollector collector)
Sets the legacyCollector to be used for the flow
|
void |
setDataFormat(DataFormat dataFormat)
Sets the DataFormat for the flow
|
void |
setEntityName(java.lang.String entityName)
Sets the entity name for the flow
|
void |
setMain(MainPlugin main)
Sets the main plugin module for the flow
|
void |
setMappingName(java.lang.String mappingName)
Sets the mapping name used to generate the flow
|
void |
setName(java.lang.String name)
Sets the name of the flow
|
void |
setType(FlowType type)
Sets the type of the flow
|
java.util.Properties |
toProperties()
Creates a properties object representing the flow
|
public void setEntityName(java.lang.String entityName)
LegacyFlow
setEntityName
in interface LegacyFlow
entityName
- the string name of the entity to use in the flowpublic java.lang.String getEntityName()
LegacyFlow
getEntityName
in interface LegacyFlow
public void setName(java.lang.String name)
LegacyFlow
setName
in interface LegacyFlow
name
- - string representing the name of the flowpublic java.lang.String getName()
LegacyFlow
getName
in interface LegacyFlow
public void setMappingName(java.lang.String mappingName)
LegacyFlow
setMappingName
in interface LegacyFlow
mappingName
- - string representing the mapping name for the flowpublic java.lang.String getMappingName()
LegacyFlow
getMappingName
in interface LegacyFlow
public void setType(FlowType type)
LegacyFlow
setType
in interface LegacyFlow
type
- - FlowType enum for harmonize or inputpublic FlowType getType()
LegacyFlow
getType
in interface LegacyFlow
public void setDataFormat(DataFormat dataFormat)
LegacyFlow
setDataFormat
in interface LegacyFlow
dataFormat
- - DataFormat enum of json or xmlpublic DataFormat getDataFormat()
LegacyFlow
getDataFormat
in interface LegacyFlow
public void setCodeFormat(CodeFormat codeFormat)
LegacyFlow
setCodeFormat
in interface LegacyFlow
codeFormat
- enum of sjs or xqypublic CodeFormat getCodeFormat()
LegacyFlow
getCodeFormat
in interface LegacyFlow
public LegacyCollector getCollector()
LegacyFlow
getCollector
in interface LegacyFlow
public void setCollector(LegacyCollector collector)
LegacyFlow
setCollector
in interface LegacyFlow
collector
- the legacyCollector to be used for the flowpublic MainPlugin getMain()
LegacyFlow
getMain
in interface LegacyFlow
public void setMain(MainPlugin main)
LegacyFlow
setMain
in interface LegacyFlow
main
- - a MainPlugin object that defines the main plugin to be usedpublic java.lang.String serialize()
LegacyFlow
serialize
in interface LegacyFlow
public java.util.Properties toProperties()
LegacyFlow
toProperties
in interface LegacyFlow
public static LegacyFlow loadFromFile(java.io.File file)
public static LegacyFlow fromXml(org.w3c.dom.Node xml)
public java.lang.String getFlowDbPath()
LegacyFlow
getFlowDbPath
in interface LegacyFlow