Class DcatDocumentResponse
java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.FFDCResponseBase
org.odpi.openmetadata.viewservices.assetcatalog.rest.DcatDocumentResponse
- All Implemented Interfaces:
FFDCResponse,RequestIdService
DcatDocumentResponse is the response structure used on the Asset Catalog OMVS REST API calls that return the
description of an asset in the W3C Data Catalog Vocabulary (DCAT). The document property holds a complete
JSON-LD document, including its context, that can be extracted and passed to any tool that understands DCAT.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorDcatDocumentResponse(DcatDocumentResponse template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn comparison result based on the content of the properties.Return the DCAT description as a JSON-LD document.inthashCode()Return hash code for this objectvoidsetDocument(Map<String, Object> document) Set up the DCAT description as a JSON-LD 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
-
DcatDocumentResponse
public DcatDocumentResponse()Default constructor -
DcatDocumentResponse
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getDocument
Return the DCAT description as a JSON-LD document.- Returns:
- JSON-LD document
-
setDocument
Set up the DCAT description as a JSON-LD document.- Parameters:
document- JSON-LD 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
-