Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.convert.extension
Class ChainedConverter

java.lang.Object
  extended by org.nuxeo.ecm.core.convert.extension.ChainedConverter
All Implemented Interfaces:
Converter

public class ChainedConverter
extends Object
implements Converter

Specific Converter implementation that acts as a converters chain.

The chain can be:

This depends on the properties of the descriptor.

Author:
tiry

Constructor Summary
ChainedConverter()
           
ChainedConverter(List<String> subConverters)
           
 
Method Summary
 BlobHolder convert(BlobHolder blobHolder, Map<String,Serializable> parameters)
          Main method to handle the real Conversion Job.
 List<String> getSteps()
           
 void init(ConverterDescriptor descriptor)
          Initializes the Converter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainedConverter

public ChainedConverter()

ChainedConverter

public ChainedConverter(List<String> subConverters)
Method Detail

convert

public BlobHolder convert(BlobHolder blobHolder,
                          Map<String,Serializable> parameters)
                   throws ConversionException
Description copied from interface: Converter
Main method to handle the real Conversion Job.

Returned BlobHolder must implement CachableBlobHolder, otherwise result won't be cached.

Specified by:
convert in interface Converter
Throws:
ConversionException

init

public void init(ConverterDescriptor descriptor)
Description copied from interface: Converter
Initializes the Converter.

This can be used to retrieve some configuration information from the XMap Descriptor.

Specified by:
init in interface Converter

getSteps

public List<String> getSteps()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.