Package de.hsh.graja.transform
Class TransformBetweenProformaResponseAndGraja
java.lang.Object
de.hsh.graja.transform.TransformBetweenProformaResponseAndGraja
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GrajaResultTOstatic GrajaResultTOconvertToGrajaResult(proforma.xml21.ResponseType in) static ProformaResponseResultTOconvertToProformaResponse(GrajaResultTO gsr, LocalDateTime timestamp, ResultSpecTO resultSpec) static proforma.xml21.OverallResultTypecreateOverallResult(Double score, Boolean isInternalError) static proforma.xml21.ResponseTypecreateProformaErrorResponse(LocalDateTime timestamp, String msg) static ProformaResponseResultTOcreateProformaResponseResultFromProformaResponse(proforma.xml21.ResponseType response, String format) static proforma.xml21.ResultTypecreateResult(Double score) static byte[]createSerializedProformaErrorResponse(LocalDateTime timestamp, String msg, String format) static proforma.xml21.ResponseTypedeserializeResponse(byte[] content) static byte[]serializeResponse(proforma.xml21.ResponseType response, String format)
-
Constructor Details
-
TransformBetweenProformaResponseAndGraja
public TransformBetweenProformaResponseAndGraja()
-
-
Method Details
-
createOverallResult
-
createResult
-
convertToProformaResponse
public static ProformaResponseResultTO convertToProformaResponse(GrajaResultTO gsr, LocalDateTime timestamp, ResultSpecTO resultSpec) throws javax.xml.bind.JAXBException, IOException - Throws:
javax.xml.bind.JAXBExceptionIOException
-
createProformaResponseResultFromProformaResponse
public static ProformaResponseResultTO createProformaResponseResultFromProformaResponse(proforma.xml21.ResponseType response, String format) throws javax.xml.bind.JAXBException, IOException - Throws:
javax.xml.bind.JAXBExceptionIOException
-
convertToGrajaResult
public static GrajaResultTO convertToGrajaResult(ProformaResponseResultTO in) throws javax.xml.bind.JAXBException, IOException - Throws:
javax.xml.bind.JAXBExceptionIOException
-
convertToGrajaResult
public static GrajaResultTO convertToGrajaResult(proforma.xml21.ResponseType in) throws javax.xml.bind.JAXBException, IOException - Throws:
javax.xml.bind.JAXBExceptionIOException
-
serializeResponse
public static byte[] serializeResponse(proforma.xml21.ResponseType response, String format) throws javax.xml.bind.JAXBException, IOException - Parameters:
response-format- xml or zip (as result-spec/format in the ProFormA submission format)- Returns:
- Throws:
javax.xml.bind.JAXBExceptionIOException
-
deserializeResponse
public static proforma.xml21.ResponseType deserializeResponse(byte[] content) throws javax.xml.bind.JAXBException, IOException - Throws:
javax.xml.bind.JAXBExceptionIOException
-
createProformaErrorResponse
public static proforma.xml21.ResponseType createProformaErrorResponse(LocalDateTime timestamp, String msg) -
createSerializedProformaErrorResponse
public static byte[] createSerializedProformaErrorResponse(LocalDateTime timestamp, String msg, String format) throws javax.xml.bind.JAXBException, IOException - Throws:
javax.xml.bind.JAXBExceptionIOException
-