Package com.atlan.model.relations
Class Reference
java.lang.Object
com.atlan.model.core.AtlanObject
com.atlan.model.relations.Reference
- All Implemented Interfaces:
AuditDetail
,Serializable
,Comparable<Reference>
- Direct Known Subclasses:
Asset
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Reference.ReferenceBuilder<C extends Reference,
B extends Reference.ReferenceBuilder<C, B>> static enum
Nested classes/interfaces inherited from class com.atlan.model.core.AtlanObject
AtlanObject.AtlanObjectBuilder<C extends AtlanObject,
B extends AtlanObject.AtlanObjectBuilder<C, B>> -
Field Summary
Fields inherited from class com.atlan.model.core.AtlanObject
rawJsonObject
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Reference.ReferenceBuilder<?,
?> builder()
static Reference
Quickly create a new reference to another asset, by its qualifiedName.protected boolean
int
boolean
boolean
Internal tracking of whether this represents a complete view of an object, or not.Attribute(s) that handle custom information direct from source systems.Human-readable name of the entity.Status of the entity (if this is a related entity).getGuid()
Globally-unique identifier for the entity.Arbitrary textual labels for the asset.Attributes specific to the relationship.Unique identifier of the relationship (when this is a related entity).Status of the relationship (when this is a related entity).Type of the relationship (if this is a related entity).Semantic for how this relationship should be saved, if used in an asset request on which .save() is called.Name of the type that defines the entity.Attribute(s) that uniquely identify the entity (when this is a related entity).int
hashCode()
boolean
When true, indicates that this object represents a complete view of the entity.boolean
Indicates whether this object can be used as a reference (relationship).boolean
Indicates whether this object can be used as a valid reference by GUID.boolean
Indicates whether this object can be used as a valid reference by qualifiedName.protected void
Sets the internal tracking of this object to indicate it is a complete representation of an entity.static Reference
Quickly create a new reference to another asset, by its GUID.toString()
protected static void
validateRelationship
(String typeName, Map<String, String> parameters) Validate that the required parameters are present to set up a relationship.protected static void
validateRequired
(String typeName, Map<String, String> parameters) Validate that the required parameters are present to carry out an operation.Methods inherited from class com.atlan.model.core.AtlanObject
getRawJsonObject, setRawJsonObject, toJson
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlan.model.search.AuditDetail
getRawJsonObject, setRawJsonObject
-
Constructor Details
-
Reference
-
-
Method Details
-
to
Quickly create a new reference to another asset, by its GUID.- Parameters:
typeName
- type of the asset to referenceguid
- GUID of the asset to reference- Returns:
- a reference to another asset
-
by
Quickly create a new reference to another asset, by its qualifiedName.- Parameters:
typeName
- type of the asset to referencequalifiedName
- of the asset to reference- Returns:
- a reference to another asset
-
validateRequired
protected static void validateRequired(String typeName, Map<String, String> parameters) throws InvalidRequestExceptionValidate that the required parameters are present to carry out an operation.- Parameters:
typeName
- type of asset being validatedparameters
- mapping of required parameters, keyed by parameter name with the value of that parameter- Throws:
InvalidRequestException
- if any of the parameters have a null or empty value
-
validateRelationship
protected static void validateRelationship(String typeName, Map<String, String> parameters) throws InvalidRequestExceptionValidate that the required parameters are present to set up a relationship.- Parameters:
typeName
- type of asset to which the relationship is being createdparameters
- mapping of required parameters, keyed by parameter name with the value of that parameter- Throws:
InvalidRequestException
- if any of the parameters have a null or empty value
-
isComplete
public boolean isComplete()When true, indicates that this object represents a complete view of the entity. When false, this object is only a reference or some partial view of the entity. -
setCompleteObject
protected void setCompleteObject()Sets the internal tracking of this object to indicate it is a complete representation of an entity. -
isValidReferenceByGuid
public boolean isValidReferenceByGuid()Indicates whether this object can be used as a valid reference by GUID.- Returns:
- true if it is a valid GUID reference, false otherwise
-
isValidReferenceByQualifiedName
public boolean isValidReferenceByQualifiedName()Indicates whether this object can be used as a valid reference by qualifiedName.- Returns:
- true if it is a valid qualifiedName reference, false otherwise
-
isValidReference
public boolean isValidReference()Indicates whether this object can be used as a reference (relationship).- Returns:
- true if it is a valid reference, false otherwise
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Reference>
-
builder
-
toBuilder
-
getSemantic
Semantic for how this relationship should be saved, if used in an asset request on which .save() is called. -
getCompleteObject
public boolean getCompleteObject()Internal tracking of whether this represents a complete view of an object, or not. -
getTypeName
Name of the type that defines the entity.- Specified by:
getTypeName
in interfaceAuditDetail
-
getGuid
Globally-unique identifier for the entity. -
getDisplayText
Human-readable name of the entity. -
getEntityStatus
Status of the entity (if this is a related entity). -
getRelationshipType
Type of the relationship (if this is a related entity). -
getRelationshipGuid
Unique identifier of the relationship (when this is a related entity). -
getRelationshipStatus
Status of the relationship (when this is a related entity). -
getRelationshipAttributes
Attributes specific to the relationship. -
getUniqueAttributes
Attribute(s) that uniquely identify the entity (when this is a related entity). If the guid is not provided, these must be provided. -
getLabels
Arbitrary textual labels for the asset. -
getCustomAttributes
Attribute(s) that handle custom information direct from source systems. Not to be confused with custom metadata attributes, which are user-defined and user-managed, and are instead found incustomMetadataSets
. -
equals
- Overrides:
equals
in classAtlanObject
-
canEqual
- Overrides:
canEqual
in classAtlanObject
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAtlanObject
-
toString
Description copied from class:AtlanObject
- Overrides:
toString
in classAtlanObject
-