Class BitolDocument
java.lang.Object
org.odpi.openmetadata.frameworks.integration.bitol.common.BitolDocument
- Direct Known Subclasses:
DataContract,DataProduct
BitolDocument is the abstract root of the documents defined by the Bitol standards: the Open Data Contract
Standard (ODCS) DataContract and the Open Data Product Standard (ODPS) DataProduct. It holds the fundamentals
that the two standards share. The "kind" property identifies which type of document this is and is used by
Jackson to select the subclass when a document is parsed through this class. The Bitol documents are typically
encoded in YAML although JSON is also valid.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionDefault constructorprotectedBitolDocument(String kind, String apiVersion) Constructor used by the subclasses to set the kind and the default apiVersion. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the version of the Bitol standard that this document conforms to (for example v3.1.0 for ODCS or v1.0.0 for ODPS).Return the list of links to sources that provide more details about this element.Return the AI and semantic context block for the document (instructions, verified statements and constraints).Return the list of custom (key/value) properties attached to this element.Return the high level description of the document (purpose, limitations, usage).Return the name of the logical data (business) domain.getId()Return the unique identifier of the document, typically a UUID.getKind()Return the kind of document: either DataContract or DataProduct.getName()Return the name of the data contract or data product.Return the current status of the data contract or data product.getTags()Return the list of tags attached to this element.Return the organization (tenant) that the data is primarily associated with.Return the version of the data contract or data product (typically semantic versioning).inthashCode()Return hash code based on properties.abstract booleanReturn whether the apiVersion of this document is one that Egeria's beans are able to represent.voidsetApiVersion(String apiVersion) Set up the version of the Bitol standard that this document conforms to (for example v3.1.0 for ODCS or v1.0.0 for ODPS).voidsetAuthoritativeDefinitions(List<BitolAuthoritativeDefinition> authoritativeDefinitions) Set up the list of links to sources that provide more details about this element.voidsetContext(BitolContext context) Set up the AI and semantic context block for the document (instructions, verified statements and constraints).voidsetCustomProperties(List<BitolCustomProperty> customProperties) Set up the list of custom (key/value) properties attached to this element.voidsetDescription(BitolDescription description) Set up the high level description of the document (purpose, limitations, usage).voidSet up the name of the logical data (business) domain.voidSet up the unique identifier of the document, typically a UUID.voidSet up the kind of document: either DataContract or DataProduct.voidSet up the name of the data contract or data product.voidSet up the current status of the data contract or data product.voidSet up the list of tags attached to this element.voidSet up the organization (tenant) that the data is primarily associated with.voidsetVersion(String version) Set up the version of the data contract or data product (typically semantic versioning).toString()Standard toString method.
-
Field Details
-
DATA_CONTRACT_KIND
The value of the kind property for an Open Data Contract Standard (ODCS) document.- See Also:
-
DATA_PRODUCT_KIND
The value of the kind property for an Open Data Product Standard (ODPS) document.- See Also:
-
-
Constructor Details
-
BitolDocument
public BitolDocument()Default constructor -
BitolDocument
Constructor used by the subclasses to set the kind and the default apiVersion.- Parameters:
kind- kind of documentapiVersion- default version of the standard
-
-
Method Details
-
getApiVersion
Return the version of the Bitol standard that this document conforms to (for example v3.1.0 for ODCS or v1.0.0 for ODPS).- Returns:
- string version
-
setApiVersion
Set up the version of the Bitol standard that this document conforms to (for example v3.1.0 for ODCS or v1.0.0 for ODPS).- Parameters:
apiVersion- string version
-
getKind
Return the kind of document: either DataContract or DataProduct.- Returns:
- string kind
-
setKind
Set up the kind of document: either DataContract or DataProduct.- Parameters:
kind- string kind
-
getId
Return the unique identifier of the document, typically a UUID. It is stable across versions of the document.- Returns:
- string identifier
-
setId
Set up the unique identifier of the document, typically a UUID. It is stable across versions of the document.- Parameters:
id- string identifier
-
getName
Return the name of the data contract or data product.- Returns:
- string name
-
setName
Set up the name of the data contract or data product.- Parameters:
name- string name
-
getVersion
Return the version of the data contract or data product (typically semantic versioning).- Returns:
- string version
-
setVersion
Set up the version of the data contract or data product (typically semantic versioning).- Parameters:
version- string version
-
getStatus
Return the current status of the data contract or data product. Standard values are defined in BitolStatus.- Returns:
- string status
-
setStatus
Set up the current status of the data contract or data product. Standard values are defined in BitolStatus.- Parameters:
status- string status
-
getDomain
Return the name of the logical data (business) domain.- Returns:
- string domain name
-
setDomain
Set up the name of the logical data (business) domain.- Parameters:
domain- string domain name
-
getTenant
Return the organization (tenant) that the data is primarily associated with.- Returns:
- string tenant name
-
setTenant
Set up the organization (tenant) that the data is primarily associated with.- Parameters:
tenant- string tenant name
-
getDescription
Return the high level description of the document (purpose, limitations, usage).- Returns:
- description structure
-
setDescription
Set up the high level description of the document (purpose, limitations, usage).- Parameters:
description- description structure
-
getTags
Return the list of tags attached to this element.- Returns:
- list of tag strings
-
setTags
Set up the list of tags attached to this element.- Parameters:
tags- list of tag strings
-
getCustomProperties
Return the list of custom (key/value) properties attached to this element.- Returns:
- list of custom properties
-
setCustomProperties
Set up the list of custom (key/value) properties attached to this element.- Parameters:
customProperties- list of custom properties
-
getAuthoritativeDefinitions
Return the list of links to sources that provide more details about this element.- Returns:
- list of authoritative definitions
-
setAuthoritativeDefinitions
public void setAuthoritativeDefinitions(List<BitolAuthoritativeDefinition> authoritativeDefinitions) Set up the list of links to sources that provide more details about this element.- Parameters:
authoritativeDefinitions- list of authoritative definitions
-
hasSupportedApiVersion
public abstract boolean hasSupportedApiVersion()Return whether the apiVersion of this document is one that Egeria's beans are able to represent.- Returns:
- boolean flag
-
getContext
Return the AI and semantic context block for the document (instructions, verified statements and constraints).- Returns:
- BitolContext
-
setContext
Set up the AI and semantic context block for the document (instructions, verified statements and constraints).- Parameters:
context- BitolContext
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Return hash code based on properties.
-