Class Location
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
org.odpi.openmetadata.frameworks.connectors.properties.beans.Location
Location describes where the asset is located. The model allows a very flexible definition of location
that can be set up at different levels of granularity.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
additionalProperties, qualifiedName
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
extendedProperties
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Returns the stored description property for the location.Return the stored display name property for the location.Return the unique identifier of the location.int
hashCode()
Hash of propertiesvoid
setDescription
(String description) Set up the stored description property for the location.void
setDisplayName
(String displayName) Set up the stored display name property for the location.void
setIdentifier
(String identifier) Set up the unique identifier of the location.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
getAdditionalProperties, getQualifiedName, setAdditionalProperties, setQualifiedName
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
getExtendedProperties, setExtendedProperties
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader
getClassifications, getGUID, setClassifications, setGUID
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
getHeaderVersion, getOrigin, getStatus, getType, getVersions, setHeaderVersion, setOrigin, setStatus, setType, setVersions
-
Field Details
-
identifier
-
displayName
-
description
-
-
Constructor Details
-
Location
public Location()Default constructor -
Location
Copy/clone constructor- Parameters:
templateLocation
- template object to copy.
-
-
Method Details
-
getIdentifier
Return the unique identifier of the location.- Returns:
- string
-
setIdentifier
Set up the unique identifier of the location.- Parameters:
identifier
- string
-
getDisplayName
Return the stored display name property for the location. If no display name is available then null is returned.- Returns:
- String location name
-
setDisplayName
Set up the stored display name property for the location.- Parameters:
displayName
- String location name
-
getDescription
Returns the stored description property for the location. If no description is provided then null is returned.- Returns:
- location description
-
setDescription
Set up the stored description property for the location.- Parameters:
description
- location description
-
toString
Standard toString method.- Overrides:
toString
in classReferenceable
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classReferenceable
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Hash of properties- Overrides:
hashCode
in classReferenceable
- Returns:
- int
-