Package org.trustdeck.dto
Class AlgorithmDTO
java.lang.Object
org.trustdeck.dto.AlgorithmDTO
- All Implemented Interfaces:
IObjectDTO<Algorithm,AlgorithmDTO>
@Scope("prototype")
public class AlgorithmDTO
extends Object
implements IObjectDTO<Algorithm,AlgorithmDTO>
Data transfer object for the exchange of algorithm data.
- Author:
- Armin Müller
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassignPojoValues(Algorithm pojo) Assigns values from the given POJO to the desired DTO.Helper method that transforms an algorithm DTO object back into a POJO.Checks if only the fields for the standard view are filled.Reduces an Object to its minimal view.Represents an object as a string.validate()Checks if mandatory fields are filled.
-
Constructor Details
-
AlgorithmDTO
public AlgorithmDTO()
-
-
Method Details
-
assignPojoValues
Description copied from interface:IObjectDTOAssigns values from the given POJO to the desired DTO.- Specified by:
assignPojoValuesin interfaceIObjectDTO<Algorithm,AlgorithmDTO>
-
convertToPOJO
Helper method that transforms an algorithm DTO object back into a POJO.- Returns:
- the POJO representation of this algorithm DTO
-
isValidStandardView
Description copied from interface:IObjectDTOChecks if only the fields for the standard view are filled.- Specified by:
isValidStandardViewin interfaceIObjectDTO<Algorithm,AlgorithmDTO>
-
toReducedStandardView
Description copied from interface:IObjectDTOReduces an Object to its minimal view.- Specified by:
toReducedStandardViewin interfaceIObjectDTO<Algorithm,AlgorithmDTO>
-
toRepresentationString
Description copied from interface:IObjectDTORepresents an object as a string.- Specified by:
toRepresentationStringin interfaceIObjectDTO<Algorithm,AlgorithmDTO>
-
validate
Description copied from interface:IObjectDTOChecks if mandatory fields are filled.- Specified by:
validatein interfaceIObjectDTO<Algorithm,AlgorithmDTO>
-