Class TemplateRequestBody
java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.NewElementRequestBody
org.odpi.openmetadata.viewservices.collectionmanager.rest.TemplateRequestBody
TemplateRequestBody provides a structure for passing the properties for a new metadata element
that is to be created via a template.
-
Constructor Summary
ConstructorDescriptionDefault constructorTemplateRequestBody
(TemplateRequestBody template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.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).int
hashCode()
Return hash code for this objectvoid
setPlaceholderPropertyValues
(Map<String, String> placeholderPropertyValues) Set up the property values to replace placeholders in the template.void
setReplacementProperties
(ElementProperties replacementProperties) Set up the properties for the new metadata element.void
setTemplateGUID
(String templateGUID) Set up the unique identifier of the element to use as a template (optional).Methods inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.NewElementRequestBody
getAnchorGUID, getIsOwnAnchor, getParentAtEnd1, getParentGUID, getParentRelationshipProperties, getParentRelationshipTypeName, setAnchorGUID, setIsOwnAnchor, setParentAtEnd1, setParentGUID, setParentRelationshipProperties, setParentRelationshipTypeName, toString
-
Constructor Details
-
TemplateRequestBody
public TemplateRequestBody()Default constructor -
TemplateRequestBody
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
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
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equals
in classNewElementRequestBody
- Parameters:
objectToCompare
- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCode
in classNewElementRequestBody
- Returns:
- int hash code
-