|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.engine.Helper
fr.cnes.sitools.common.model.ExtensionModel<E>
fr.cnes.sitools.common.business.AbstractExtension<ConverterParameter>
fr.cnes.sitools.dataset.converter.business.AbstractConverter
public abstract class AbstractConverter
Abstract class from which all converters must inherit.
Constructor Summary | |
---|---|
AbstractConverter()
Default constructor |
|
AbstractConverter(org.restlet.Context ctx)
Constructor with Context parameter |
Method Summary | |
---|---|
void |
addParam(ConverterParameter param)
Add a parameter to the Map of parameters The key to this parameter is its name |
abstract Record |
getConversionOf(Record rec)
Method to process conversion, Must be overridden |
AttributeValue |
getInOutParam(java.lang.String name,
Record rec)
Gets the AttributeValue from the following Record corresponding to the following
name |
AttributeValue |
getInParam(java.lang.String name,
Record rec)
Gets the AttributeValue from the following Record corresponding to the following
name |
ConverterParameter |
getInternParam(java.lang.String name)
Gets the ConverterParameter of type CONVERTER_PARAMETER_INTERN corresponding to the following
name |
AttributeValue |
getOutParam(java.lang.String name,
Record rec)
Gets the AttributeValue from the following Record corresponding to the following
name |
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 |
Methods inherited from interface fr.cnes.sitools.common.validator.Validable |
---|
getValidator |
Constructor Detail |
---|
public AbstractConverter()
public AbstractConverter(org.restlet.Context ctx)
ctx
- The Context to instantiate the Converter with, contains the DataSetMethod Detail |
---|
public abstract Record getConversionOf(Record rec) throws java.lang.Exception
rec
- the record to be processed
java.lang.Exception
- when conversion failspublic final void addParam(ConverterParameter param)
param
- the parameter to addpublic final ConverterParameter getInternParam(java.lang.String name)
ConverterParameter
of type CONVERTER_PARAMETER_INTERN corresponding to the following
name
name
- The name of the ConverterParameter
ConverterParameter
of type CONVERTER_PARAMETER_INTERN corresponding to the following
name
or null if the ConverterParameter
is not foundpublic final AttributeValue getInParam(java.lang.String name, Record rec)
AttributeValue
from the following Record
corresponding to the following
name
name
- The name of the ConverterParameter
rec
- The record
AttributeValue
corresponding to the following name
and Record
or
null if the AttributeValue
is not foundpublic final AttributeValue getOutParam(java.lang.String name, Record rec)
AttributeValue
from the following Record
corresponding to the following
name
name
- The name of the ConverterParameter
rec
- The record
AttributeValue
corresponding to the following name
and Record
or
null if the AttributeValue
is not foundpublic final AttributeValue getInOutParam(java.lang.String name, Record rec)
AttributeValue
from the following Record
corresponding to the following
name
name
- The name of the ConverterParameter
rec
- The record
AttributeValue
corresponding to the following name
and Record
or
null if the AttributeValue
is not found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |