Class OpenMetadataTemplateRequestBody
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.frameworks.openmetadata.search.TemplateOptions
org.odpi.openmetadata.frameworkservices.omf.rest.OpenMetadataTemplateRequestBody
TemplateRequestBody provides a structure for passing the properties for a new metadata element
that is to be created via a template.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCopy/clone constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquals method that returns true if containing properties are the same.Return any properties that should be included in the parent relationship.Return the property values to replace placeholders in the template.Return the properties for the new metadata element.Returns the unique identifier of the element to use as a template (optional).Return the open metadata type name for the new metadata element.inthashCode()Return hash code for this objectvoidsetParentRelationshipProperties(NewElementProperties parentRelationshipProperties) Set up any properties that should be included in the parent relationship.voidsetPlaceholderPropertyValues(Map<String, String> placeholderPropertyValues) Set up the property values to replace placeholders in the template.voidsetReplacementProperties(ElementProperties replacementProperties) Set up the properties for the new metadata element.voidsetTemplateGUID(String templateGUID) Set up the unique identifier of the element to use as a template (optional).voidsetTypeName(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.TemplateOptions
getAllowRetrieve, getDeepCopy, getEffectiveFrom, getEffectiveTo, getIsTemplateSubstitute, getMetadataElementSubtypeName, setAllowRetrieve, setDeepCopy, setEffectiveFrom, setEffectiveTo, setIsTemplateSubstitute, setMetadataElementSubtypeNameMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.NewElementOptions
getInitialStatus, setInitialStatusMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.NewLinkedElementOptions
getParentAtEnd1, getParentGUID, getParentRelationshipTypeName, setParentAtEnd1, setParentGUID, setParentRelationshipTypeNameMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.AnchorOptions
getAnchorGUID, getAnchorScopeGUID, getIsOwnAnchor, setAnchorGUID, setAnchorScopeGUID, setIsOwnAnchorMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.MetadataSourceOptions
getExternalSourceGUID, getExternalSourceName, setExternalSourceGUID, setExternalSourceNameMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.BasicOptions
getEffectiveTime, getForDuplicateProcessing, getForLineage, getGovernanceZoneFilter, setEffectiveTime, setForDuplicateProcessing, setForLineage, setGovernanceZoneFilter
-
Constructor Details
-
OpenMetadataTemplateRequestBody
public OpenMetadataTemplateRequestBody()Default constructor -
OpenMetadataTemplateRequestBody
Copy/clone constructor- Parameters:
template- object to copy
-
OpenMetadataTemplateRequestBody
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
-
getReplacementProperties
Return the properties for the new metadata element.- Returns:
- list of properties
-
setReplacementProperties
Set up the properties for the new metadata element.- Parameters:
replacementProperties- list of properties
-
setTemplateGUID
Set up the unique identifier of the element to use as a template (optional).- Parameters:
templateGUID- String guid
-
getTemplateGUID
Returns the unique identifier of the element to use as a template (optional).- Returns:
- string guid
-
getPlaceholderPropertyValues
Return the property values to replace placeholders in the template.- Returns:
- map of property name to property value
-
setPlaceholderPropertyValues
Set up the property values to replace placeholders in the template.- Parameters:
placeholderPropertyValues- map of property name to property value
-
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:
toStringin classTemplateOptions- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equalsin classTemplateOptions- Parameters:
objectToCompare- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCodein classTemplateOptions- Returns:
- int hash code
-