Package de.dlr.proseo.procmgr.rest.model
Klasse ConfiguredProcessorUtil
java.lang.Object
de.dlr.proseo.procmgr.rest.model.ConfiguredProcessorUtil
Utility methods for configured processors, e. g. for conversion between prosEO model and REST model
- Autor:
- Dr. Thomas Bassler
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ConfiguredProcessor
toModelConfiguredProcessor
(RestConfiguredProcessor restConfiguredProcessor) Convert a REST configured processor into a prosEO model configured processor (scalar and embedded attributes only, no object references)static RestConfiguredProcessor
toRestConfiguredProcessor
(ConfiguredProcessor modelConfiguredProcessor) Convert a prosEO model configured processor into a REST configured processor
-
Konstruktordetails
-
ConfiguredProcessorUtil
public ConfiguredProcessorUtil()
-
-
Methodendetails
-
toRestConfiguredProcessor
public static RestConfiguredProcessor toRestConfiguredProcessor(ConfiguredProcessor modelConfiguredProcessor) Convert a prosEO model configured processor into a REST configured processor- Parameter:
modelConfiguredProcessor
- the prosEO model configured processor- Gibt zurück:
- an equivalent REST configured processor or null, if no model configured processor was given
-
toModelConfiguredProcessor
public static ConfiguredProcessor toModelConfiguredProcessor(RestConfiguredProcessor restConfiguredProcessor) throws IllegalArgumentException Convert a REST configured processor into a prosEO model configured processor (scalar and embedded attributes only, no object references)- Parameter:
restConfiguredProcessor
- the REST configured processor- Gibt zurück:
- a (roughly) equivalent model configured processor or null, if no REST processor task was given
- Löst aus:
IllegalArgumentException
- if the REST configured processor violates syntax rules for date, enum or numeric values
-