fmeobjects.FMEFactoryPipeline.addFactory¶
-
FMEFactoryPipeline.
addFactory
(factoryDef, delimiter)¶ This method is used to add a new factory to the end of the factory pipeline. If ‘factoryDef’ is a list of strings the factory to be added is specified as a set of tokens; one token for every whitespace-delimited string in the factory definition. Each token is represented as one entry in the ‘factoryDef’ parameter. For example, the PolygonFactory show below is be specified using 20 tokens:
FACTORY_DEF
* PolygonFactoryFACTORY_NAME
SamplePolygonINPUT FEATURE_TYPE
*GROUP_BY
someAttrVERTEX_NODED
REMOVE_CORRIDORS
OUTPUT POLYGON FEATURE_TYPE
polyOUTPUT LINE FEATURE_TYPE
line
If ‘factoryDef’ is a string, it specifies the factory to be added as an ASCII character string. The ‘delimiter’ parameter specifies the string to be used as delimiter when parsing the ‘factoryDef’ string for tokens.
Parameters: Return type: Raises: FMEException – An FMEException is raised if there was an error.