Class CollectionElement
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.AttributedMetadataElement
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.CollectionElement
- All Implemented Interfaces:
MetadataElement
- Direct Known Subclasses:
CollectionGraph
CollectionElement contains the properties and header for a collection retrieved from the metadata repository.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCollectionElement
(CollectionElement template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return comparison result based on the content of the properties.Return the properties of the collection.Return details of the relationship used to retrieve this element.int
hashCode()
Return hash code for this objectvoid
setProperties
(CollectionProperties properties) Set up the collection properties.void
setRelatedBy
(RelatedBy relatedBy) Set up details of the relationship used to retrieve this element.toString()
JSON-style toStringMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.AttributedMetadataElement
getElementHeader, getExternalReferences, getMermaidGraph, getOtherRelatedElements, setElementHeader, setExternalReferences, setMermaidGraph, setOtherRelatedElements
-
Constructor Details
-
CollectionElement
public CollectionElement()Default constructor -
CollectionElement
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getProperties
Return the properties of the collection.- Returns:
- properties
-
setProperties
Set up the collection properties.- Parameters:
properties
- properties
-
getRelatedBy
Return details of the relationship used to retrieve this element. Will be null if the element was retrieved directly rather than via a relationship.- Returns:
- list of element stubs
-
setRelatedBy
Set up details of the relationship used to retrieve this element. Will be null if the element was retrieved directly rather than via a relationship.- Parameters:
relatedBy
- relationship details
-
toString
JSON-style toString- Overrides:
toString
in classAttributedMetadataElement
- Returns:
- return string containing the property names and values
-
equals
Return comparison result based on the content of the properties.- Overrides:
equals
in classAttributedMetadataElement
- Parameters:
objectToCompare
- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCode
in classAttributedMetadataElement
- Returns:
- int hash code
-