Class NewOpenMetadataElementRequestBody
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.search.BasicOptions
org.odpi.openmetadata.frameworks.openmetadata.search.MetadataSourceOptions
org.odpi.openmetadata.frameworks.openmetadata.search.AnchorOptions
org.odpi.openmetadata.frameworks.openmetadata.search.NewLinkedElementOptions
org.odpi.openmetadata.frameworks.openmetadata.search.NewElementOptions
org.odpi.openmetadata.frameworkservices.omf.rest.NewOpenMetadataElementRequestBody
NewOpenMetadataElementRequestBody provides a structure for passing the properties for a new metadata element.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCopy/clone constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.Return the map of classification name to properties describing the initial classification for the new metadata element.Return any properties that should be included in the parent relationship.Return the properties for the new metadata element.Return the open metadata type name for the new metadata element.int
hashCode()
Return hash code for this objectvoid
setInitialClassifications
(Map<String, NewElementProperties> initialClassifications) Set up the map of classification name to properties describing the initial classification for the new metadata element.void
setParentRelationshipProperties
(NewElementProperties parentRelationshipProperties) Set up any properties that should be included in the parent relationship.void
setProperties
(NewElementProperties properties) Set up the properties for the new metadata element.void
setTypeName
(String typeName) Set up the open metadata type name for the new metadata element.toString()
JSON-style toString.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.NewElementOptions
getInitialStatus, setInitialStatus
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.NewLinkedElementOptions
getParentAtEnd1, getParentGUID, getParentRelationshipTypeName, setParentAtEnd1, setParentGUID, setParentRelationshipTypeName
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.AnchorOptions
getAnchorGUID, getAnchorScopeGUID, getIsOwnAnchor, setAnchorGUID, setAnchorScopeGUID, setIsOwnAnchor
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.MetadataSourceOptions
getExternalSourceGUID, getExternalSourceName, setExternalSourceGUID, setExternalSourceName
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.BasicOptions
getEffectiveTime, getForDuplicateProcessing, getForLineage, getGovernanceZoneFilter, setEffectiveTime, setForDuplicateProcessing, setForLineage, setGovernanceZoneFilter
-
Constructor Details
-
NewOpenMetadataElementRequestBody
public NewOpenMetadataElementRequestBody()Default constructor -
NewOpenMetadataElementRequestBody
Copy/clone constructor- Parameters:
template
- object to copy
-
NewOpenMetadataElementRequestBody
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getTypeName
Return the open metadata type name for the new metadata element.- Returns:
- string name
-
setTypeName
Set up the open metadata type name for the new metadata element.- Parameters:
typeName
- string name
-
getInitialClassifications
Return the map of classification name to properties describing the initial classification for the new metadata element.- Returns:
- map of classification name to classification properties (or null for none)
-
setInitialClassifications
Set up the map of classification name to properties describing the initial classification for the new metadata element.- Parameters:
initialClassifications
- map of classification name to classification properties (or null for none)
-
getProperties
Return the properties for the new metadata element.- Returns:
- list of properties
-
setProperties
Set up the properties for the new metadata element.- Parameters:
properties
- list of properties
-
getParentRelationshipProperties
Return any properties that should be included in the parent relationship.- Returns:
- element properties
-
setParentRelationshipProperties
Set up any properties that should be included in the parent relationship.- Parameters:
parentRelationshipProperties
- element properties
-
toString
JSON-style toString.- Overrides:
toString
in classNewElementOptions
- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equals
in classNewElementOptions
- Parameters:
objectToCompare
- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCode
in classNewElementOptions
- Returns:
- int hash code
-