Class AnchorOptions
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.search.BasicOptions
org.odpi.openmetadata.frameworks.openmetadata.search.MetadataSourceOptions
org.odpi.openmetadata.frameworks.openmetadata.search.AnchorOptions
- Direct Known Subclasses:
ActionRequestBody
,NewLinkedElementOptions
AnchorOptions provides a structure for the anchor properties when creating an element.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorAnchorOptions
(AnchorOptions template) Copy/clone constructorAnchorOptions
(MetadataSourceOptions 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.Return the unique identifier of the anchor's scope.boolean
Return whether this element should be classified as its own anchor or not.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
setAnchorScopeGUID
(String anchorScopeGUID) Set up the unique identifier of the anchor's scope.void
setIsOwnAnchor
(boolean ownAnchor) Set up whether this element should be classified as its own anchor or not.toString()
JSON-style toString.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
-
AnchorOptions
public AnchorOptions()Default constructor -
AnchorOptions
Copy/clone constructor- Parameters:
template
- object to copy
-
AnchorOptions
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
-
getAnchorScopeGUID
Return the unique identifier of the anchor's scope. If this is not supplied, the value set in the anchor entity's Anchors classification is used.- Returns:
- string guid
-
setAnchorScopeGUID
Set up the unique identifier of the anchor's scope. If this is not supplied, the value set in the anchor entity's Anchors classification is used.- Parameters:
anchorScopeGUID
- string guid
-
toString
JSON-style toString.- Overrides:
toString
in classMetadataSourceOptions
- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equals
in classMetadataSourceOptions
- Parameters:
objectToCompare
- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCode
in classMetadataSourceOptions
- Returns:
- int hash code
-