Class NewElementRequestBody
java.lang.Object
org.odpi.openmetadata.viewservices.collectionmanager.rest.NewElementRequestBody
- Direct Known Subclasses:
NewCollectionRequestBody,NewMetadataElementRequestBody,TemplateRequestBody
NewElementRequestBody provides a structure for the common properties when creating an element.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorNewElementRequestBody(NewElementRequestBody template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquals 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.booleanReturn whether this element should be classified as its own anchor or not.booleanReturn 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.org.odpi.openmetadata.frameworks.governanceaction.search.ElementPropertiesReturn 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.inthashCode()Return hash code for this objectvoidsetAnchorGUID(String anchorGUID) Set up the unique identifier of the element that should be the anchor for the new element.voidsetIsOwnAnchor(boolean ownAnchor) Set up whether this element should be classified as its own anchor or not.voidsetParentAtEnd1(boolean parentAtEnd1) Set up which end any parent entity sits on the relationship.voidsetParentGUID(String parentGUID) Set up the optional unique identifier for an element that should be connected to the newly created element.voidsetParentRelationshipProperties(org.odpi.openmetadata.frameworks.governanceaction.search.ElementProperties parentRelationshipProperties) Set up any properties that should be included in the parent relationship.voidsetParentRelationshipTypeName(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
public org.odpi.openmetadata.frameworks.governanceaction.search.ElementProperties getParentRelationshipProperties()Return any properties that should be included in the parent relationship.- Returns:
- element properties
-
setParentRelationshipProperties
public void setParentRelationshipProperties(org.odpi.openmetadata.frameworks.governanceaction.search.ElementProperties parentRelationshipProperties) 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
-