Klasse ProductUtil
java.lang.Object
de.dlr.proseo.ingestor.rest.model.ProductUtil
Utility methods for products, e. g. for conversion between prosEO model and
REST model
- Autor:
- Dr. Thomas Bassler
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic Product
toModelProduct
(RestProduct restProduct) Convert a REST product into a prosEO model product (scalar and embedded attributes only, no object references); does not create or update the download history.static RestProduct
toRestProduct
(Product modelProduct) Convert a prosEO model product into a REST product
-
Konstruktordetails
-
ProductUtil
public ProductUtil()
-
-
Methodendetails
-
toRestProduct
Convert a prosEO model product into a REST product- Parameter:
modelProduct
- the prosEO model product- Gibt zurück:
- an equivalent REST product or null, if no model product was given
-
toModelProduct
Convert a REST product into a prosEO model product (scalar and embedded attributes only, no object references); does not create or update the download history.- Parameter:
restProduct
- the REST product- Gibt zurück:
- a (roughly) equivalent model product or null, if no REST product was given
- Löst aus:
IllegalArgumentException
- if the REST product violates syntax rules for date, enum or numeric values
-