Class Referenceable
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.analyticsmodeling.synchronization.beans.Referenceable
-
- Direct Known Subclasses:
Asset
,SchemaElement
public class Referenceable extends java.lang.Object
Many open metadata entities are referenceable. It means that they have a qualified name and additional properties.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.lang.String>
additionalProperties
protected java.lang.String
guid
GUID of the entity in repository used to create bean.protected java.lang.String
qualifiedName
-
Constructor Summary
Constructors Constructor Description Referenceable()
Default constructorReferenceable(Referenceable template)
Copy/clone constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.java.util.Map<java.lang.String,java.lang.String>
getAdditionalProperties()
Return a copy of the additional properties.java.lang.String
getGuid()
Returns the stored guid for the metadata entity.java.lang.String
getQualifiedName()
Returns the stored qualified name property for the metadata entity.int
hashCode()
Return hash code based on properties.void
setAdditionalProperties(java.util.Map<java.lang.String,java.lang.String> additionalProperties)
Set up additional properties.void
setGuid(java.lang.String guid)
Set up the guid.void
setQualifiedName(java.lang.String qualifiedName)
Set up the fully qualified name.java.lang.String
toString()
Standard toString method.
-
-
-
Constructor Detail
-
Referenceable
public Referenceable()
Default constructor
-
Referenceable
public Referenceable(Referenceable template)
Copy/clone constructor. Retrieves values from the supplied template- Parameters:
template
- element to copy
-
-
Method Detail
-
setQualifiedName
public void setQualifiedName(java.lang.String qualifiedName)
Set up the fully qualified name.- Parameters:
qualifiedName
- String name
-
getGuid
public java.lang.String getGuid()
Returns the stored guid for the metadata entity. If no guid is available then the null is returned.- Returns:
- guid
-
setGuid
public void setGuid(java.lang.String guid)
Set up the guid.- Parameters:
guid
- String name
-
getQualifiedName
public java.lang.String getQualifiedName()
Returns the stored qualified name property for the metadata entity. If no qualified name is available then the empty string is returned.- Returns:
- qualifiedName
-
setAdditionalProperties
public void setAdditionalProperties(java.util.Map<java.lang.String,java.lang.String> additionalProperties)
Set up additional properties.- Parameters:
additionalProperties
- Additional properties object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.String> getAdditionalProperties()
Return a copy of the additional properties. Null means no additional properties are available.- Returns:
- AdditionalProperties
-
toString
public java.lang.String toString()
Standard toString method.- Overrides:
toString
in classjava.lang.Object
- Returns:
- print out of variables in a JSON-style
-
equals
public boolean equals(java.lang.Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classjava.lang.Object
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison GUID is not used in equals(...) to compare beans from repository and request.
-
hashCode
public int hashCode()
Return hash code based on properties.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- int
-
-