Class Transformer
- java.lang.Object
-
- org.alfresco.transform.client.model.config.Transformer
-
public class Transformer extends Object
Represents a set of transformations supported by the Transform Service that share the same transform options. Each may be an actual transformer or the amalgamation of multiple transformers. It is possible that more than one transformer may able to perform a transformation from one mimetype to another. The actual selection of transformer is up to the Transform Service to decide. Clients may useTransformServiceRegistry.isSupported(java.lang.String, long, java.lang.String, java.util.Map<java.lang.String, java.lang.String>, java.lang.String)to decide if they should send a request to the Transform Service. As a result clients have a simple generic view of transformations which allows new transformations to be added without the need change client data structures other than to define new name value pairs. For this to work the Transform Service defines unique names for each option.- name - is unique. The client should infer nothing from the name as it is simply a label.
- version - of the transformer. The client should infer nothing from the value and should only use it in messages. There should only be one version supplied to the client for each name.
- transformOptions - a grouping of individual transformer transformOptions. The group may be optional and may contain nested transformOptions.
-
-
Constructor Summary
Constructors Constructor Description Transformer()Transformer(String name, String version, List<TransformOption> transformOptions, List<SupportedSourceAndTarget> supportedSourceAndTargetList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()List<SupportedSourceAndTarget>getSupportedSourceAndTargetList()List<TransformOption>getTransformOptions()StringgetVersion()voidsetName(String name)voidsetSupportedSourceAndTargetList(List<SupportedSourceAndTarget> supportedSourceAndTargetList)voidsetTransformOptions(List<TransformOption> transformOptions)voidsetVersion(String version)
-
-
-
Constructor Detail
-
Transformer
public Transformer()
-
Transformer
public Transformer(String name, String version, List<TransformOption> transformOptions, List<SupportedSourceAndTarget> supportedSourceAndTargetList)
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
getVersion
public String getVersion()
-
setVersion
public void setVersion(String version)
-
getTransformOptions
public List<TransformOption> getTransformOptions()
-
setTransformOptions
public void setTransformOptions(List<TransformOption> transformOptions)
-
getSupportedSourceAndTargetList
public List<SupportedSourceAndTarget> getSupportedSourceAndTargetList()
-
setSupportedSourceAndTargetList
public void setSupportedSourceAndTargetList(List<SupportedSourceAndTarget> supportedSourceAndTargetList)
-
-