fr.cnes.sitools.dataset.converter.business
Class ConverterChained

java.lang.Object
  extended by org.restlet.engine.Helper
      extended by fr.cnes.sitools.common.model.ExtensionModel<E>
          extended by fr.cnes.sitools.common.business.AbstractExtension<ConverterParameter>
              extended by fr.cnes.sitools.dataset.converter.business.AbstractConverter
                  extended by fr.cnes.sitools.dataset.converter.business.ConverterChained
All Implemented Interfaces:
IResource, Validable

public class ConverterChained
extends AbstractConverter

A chain of converters

Author:
AKKA

Constructor Summary
ConverterChained()
          Constructor
ConverterChained(java.lang.String n, java.lang.String d)
          Constructor.
 
Method Summary
 void addConverter(AbstractConverter ac)
          Add a converter in the model.
 Record getConversionOf(Record rec)
          Apply the model to a record.
 java.util.List<AbstractConverter> getConverters()
          Returns the list of converters.
 java.lang.String getModelName()
          Get the model name.
 Validator<AbstractConverter> getValidator()
          Get the Validator on a Object
 
Methods inherited from class fr.cnes.sitools.dataset.converter.business.AbstractConverter
addParam, getInOutParam, getInParam, getInternParam, getOutParam
 
Methods inherited from class fr.cnes.sitools.common.business.AbstractExtension
getContext, setContext
 
Methods inherited from class fr.cnes.sitools.common.model.ExtensionModel
getClassAuthor, getClassName, getClassOwner, getClassVersion, getDescription, getDescriptionAction, getId, getName, getParametersMap, setClassAuthor, setClassName, setClassOwner, setClassVersion, setDescription, setDescriptionAction, setId, setName, setParametersMap
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConverterChained

public ConverterChained(java.lang.String n,
                        java.lang.String d)
Constructor.

Parameters:
n - the name of the model
d - the description of the model

ConverterChained

public ConverterChained()
Constructor

Method Detail

getModelName

public final java.lang.String getModelName()
Get the model name.

Returns:
the model name

getConverters

public final java.util.List<AbstractConverter> getConverters()
Returns the list of converters.

Returns:
the list of converters

addConverter

public final void addConverter(AbstractConverter ac)
Add a converter in the model.

Parameters:
ac - the converter to add

getConversionOf

public final Record getConversionOf(Record rec)
Apply the model to a record.

Specified by:
getConversionOf in class AbstractConverter
Parameters:
rec - initial record
Returns:
converted record

getValidator

public Validator<AbstractConverter> getValidator()
Description copied from interface: Validable
Get the Validator on a Object

Returns:
the validator on a object


Copyright © 2010-2013 CNES. All Rights Reserved.