Class DataContractResponse
java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase
org.odpi.openmetadata.viewservices.productmanager.rest.DataContractResponse
- All Implemented Interfaces:
FFDCResponse,RequestIdService
DataContractResponse returns a Bitol Open Data Contract Standard (ODCS) data contract document generated from open metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorDataContractResponse(DataContractResponse template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn comparison result based on the content of the properties.Return the document.inthashCode()Return hash code for this objectvoidsetDataContract(DataContract dataContract) Set up the document.toString()JSON-style toStringMethods inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase
getActionDescription, getExceptionCausedBy, getExceptionClassName, getExceptionErrorMessage, getExceptionErrorMessageId, getExceptionErrorMessageParameters, getExceptionProperties, getExceptionSubclassName, getExceptionSystemAction, getExceptionURL, getExceptionUserAction, getRelatedHTTPCode, getRequestId, setActionDescription, setExceptionCausedBy, setExceptionClassName, setExceptionErrorMessage, setExceptionErrorMessageId, setExceptionErrorMessageParameters, setExceptionProperties, setExceptionSubclassName, setExceptionSystemAction, setExceptionURL, setExceptionUserAction, setRelatedHTTPCode, setRequestId
-
Constructor Details
-
DataContractResponse
public DataContractResponse()Default constructor -
DataContractResponse
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getDataContract
Return the document.- Returns:
- document
-
setDataContract
Set up the document.- Parameters:
dataContract- document
-
toString
JSON-style toString- Overrides:
toStringin classFFDCResponseBase- Returns:
- return string containing the property names and values
-
equals
Return comparison result based on the content of the properties.- Overrides:
equalsin classFFDCResponseBase- Parameters:
objectToCompare- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCodein classFFDCResponseBase- Returns:
- int hash code
-