Class NewElementRequestBody
java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.NewElementRequestBody
- Direct Known Subclasses:
NewCollectionRequestBody
,NewMetadataElementRequestBody
,NewProjectRequestBody
,TemplateRequestBody
,TemplateRequestBody
NewElementRequestBody provides a structure for the common properties when creating an element.
-
Constructor Summary
ConstructorDescriptionDefault constructorNewElementRequestBody
(NewElementRequestBody template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.Return the unique identifier of the element that should be the anchor for the new element.boolean
Return whether this element should be classified as its own anchor or not.boolean
Return which end any parent entity sits on the relationship.Return the optional unique identifier for an element that should be connected to the newly created element.Return any properties that should be included in the parent relationship.Return the name of the relationship, if any, that should be established between the new element and the parent element.int
hashCode()
Return hash code for this objectvoid
setAnchorGUID
(String anchorGUID) Set up the unique identifier of the element that should be the anchor for the new element.void
setIsOwnAnchor
(boolean ownAnchor) Set up whether this element should be classified as its own anchor or not.void
setParentAtEnd1
(boolean parentAtEnd1) Set up which end any parent entity sits on the relationship.void
setParentGUID
(String parentGUID) Set up the optional unique identifier for an element that should be connected to the newly created element.void
setParentRelationshipProperties
(ElementProperties parentRelationshipProperties) Set up any properties that should be included in the parent relationship.void
setParentRelationshipTypeName
(String parentRelationshipTypeName) Set up the name of the optional relationship from the newly created element to a parent element.toString()
JSON-style toString.
-
Constructor Details
-
NewElementRequestBody
public NewElementRequestBody()Default constructor -
NewElementRequestBody
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getAnchorGUID
Return the unique identifier of the element that should be the anchor for the new element. It is set to null if no anchor, or the Anchors classification is included in the initial classifications.- Returns:
- string guid
-
setAnchorGUID
Set up the unique identifier of the element that should be the anchor for the new element. Set to null if no anchor, or the new collection should be its own anchor.- Parameters:
anchorGUID
- string guid
-
getIsOwnAnchor
public boolean getIsOwnAnchor()Return whether this element should be classified as its own anchor or not. The default is false.- Returns:
- boolean
-
setIsOwnAnchor
public void setIsOwnAnchor(boolean ownAnchor) Set up whether this element should be classified as its own anchor or not. The default is false.- Parameters:
ownAnchor
- boolean
-
getParentGUID
Return the optional unique identifier for an element that should be connected to the newly created element. If this property is specified, parentRelationshipTypeName must also be specified.- Returns:
- string guid
-
setParentGUID
Set up the optional unique identifier for an element that should be connected to the newly created element. If this property is specified, parentRelationshipTypeName must also be specified.- Parameters:
parentGUID
- string guid
-
getParentRelationshipTypeName
Return the name of the relationship, if any, that should be established between the new element and the parent element.- Returns:
- string type name
-
setParentRelationshipTypeName
Set up the name of the optional relationship from the newly created element to a parent element.- Parameters:
parentRelationshipTypeName
- string type name
-
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
-
getParentAtEnd1
public boolean getParentAtEnd1()Return which end any parent entity sits on the relationship.- Returns:
- boolean
-
setParentAtEnd1
public void setParentAtEnd1(boolean parentAtEnd1) Set up which end any parent entity sits on the relationship.- Parameters:
parentAtEnd1
- boolean
-
toString
JSON-style toString. -
equals
Equals method that returns true if containing properties are the same. -
hashCode
public int hashCode()Return hash code for this object
-