Class Transformer


  • public class Transformer
    extends java.lang.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 use TransformServiceRegistry.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 Detail

      • Transformer

        public Transformer()
      • Transformer

        public Transformer​(java.lang.String name,
                           java.lang.String version,
                           java.util.List<TransformOption> transformOptions,
                           java.util.List<SupportedSourceAndTarget> supportedSourceAndTargetList)
    • Method Detail

      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
      • getVersion

        public java.lang.String getVersion()
      • setVersion

        public void setVersion​(java.lang.String version)
      • getTransformOptions

        public java.util.List<TransformOption> getTransformOptions()
      • setTransformOptions

        public void setTransformOptions​(java.util.List<TransformOption> transformOptions)
      • setSupportedSourceAndTargetList

        public void setSupportedSourceAndTargetList​(java.util.List<SupportedSourceAndTarget> supportedSourceAndTargetList)