|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectExtendedWadlServerResource
fr.cnes.sitools.common.resource.AbstractSitoolsResource
fr.cnes.sitools.common.SitoolsResource
fr.cnes.sitools.common.AbstractPluginResource
fr.cnes.sitools.dataset.converter.AbstractConverterResource
public abstract class AbstractConverterResource
Abstract Resource class for Forms management
Field Summary |
---|
Fields inherited from class fr.cnes.sitools.common.SitoolsResource |
---|
DEFAULT_MEDIATYPE |
Constructor Summary | |
---|---|
AbstractConverterResource()
|
Method Summary | |
---|---|
void |
addCurrentClassDescriptions(ConverterChainedModelDTO convChModel)
Add the current class descriptions of the converters in the chained model |
java.util.Set<ConstraintViolation> |
checkValidity(ConverterModel input)
Check the validaty of the given ConverterModel |
void |
configure(com.thoughtworks.xstream.XStream xstream,
Response response)
Configure the XStream |
void |
doInit()
Initiate the resource |
ConverterModel |
getConverterModel(ConverterChainedModel convChainedModel,
java.lang.String id)
Get a converterModel from a converterChainedModel |
ConverterModelDTO |
getConverterModelDTO(ConverterModel converter)
Get a ConverterModelDTO from a ConverterModel |
java.lang.String |
getDatasetId()
Get the identifier of the dataset |
org.restlet.representation.Representation |
getRepresentation(Response response,
org.restlet.data.MediaType media)
Gets representation according to the specified MediaType. |
void |
registerObserver(ConverterChainedModel input)
Register as observer |
void |
unregisterObserver(ConverterChainedModel input)
Unregister as Observer |
Methods inherited from class fr.cnes.sitools.common.AbstractPluginResource |
---|
checkValidity, fromListToMap |
Methods inherited from class fr.cnes.sitools.common.resource.AbstractSitoolsResource |
---|
getMediaType, sitoolsDescribe |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractConverterResource()
Method Detail |
---|
public void doInit()
SitoolsResource
public final org.restlet.representation.Representation getRepresentation(Response response, org.restlet.data.MediaType media)
getRepresentation
in class SitoolsResource
response
- : The response to get the representation frommedia
- : The MediaType asked
public final void registerObserver(ConverterChainedModel input)
input
- The ConverterChainedModelpublic final void unregisterObserver(ConverterChainedModel input)
input
- ConverterChainedModel Objetpublic final void addCurrentClassDescriptions(ConverterChainedModelDTO convChModel)
convChModel
- the chained modelpublic final ConverterModel getConverterModel(ConverterChainedModel convChainedModel, java.lang.String id)
convChainedModel
- the converterChainedModelid
- the id of the converter
public final java.lang.String getDatasetId()
public final java.util.Set<ConstraintViolation> checkValidity(ConverterModel input)
input
- the ConverterModel to validate
public final void configure(com.thoughtworks.xstream.XStream xstream, Response response)
configure
in class AbstractPluginResource
xstream
- the XStream to treatresponse
- the response usedpublic ConverterModelDTO getConverterModelDTO(ConverterModel converter)
converter
- the ConverterModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |