Class LocationProperties
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.digitalarchitecture.properties.ReferenceableProperties
-
- org.odpi.openmetadata.accessservices.digitalarchitecture.properties.LocationProperties
-
- All Implemented Interfaces:
Serializable
public class LocationProperties extends ReferenceableProperties
LocationProperties is a class for representing a generic location.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LocationProperties()Default constructorLocationProperties(LocationProperties template)Copy/clone constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.StringgetDescription()Return the description of the location.StringgetDisplayName()Return a human memorable name for the location.inthashCode()Return has code based on properties.voidsetDescription(String description)Set up the description of the location.voidsetDisplayName(String displayName)Set up a human memorable name for the location.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.accessservices.digitalarchitecture.properties.ReferenceableProperties
getAdditionalProperties, getClassifications, getExtendedProperties, getQualifiedName, getTypeName, setAdditionalProperties, setClassifications, setExtendedProperties, setQualifiedName, setTypeName
-
-
-
-
Constructor Detail
-
LocationProperties
public LocationProperties()
Default constructor
-
LocationProperties
public LocationProperties(LocationProperties template)
Copy/clone constructor.- Parameters:
template- object to copy
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
Return a human memorable name for the location.- Returns:
- string name
-
setDisplayName
public void setDisplayName(String displayName)
Set up a human memorable name for the location.- Parameters:
displayName- string name
-
getDescription
public String getDescription()
Return the description of the location.- Returns:
- string text
-
setDescription
public void setDescription(String description)
Set up the description of the location.- Parameters:
description- string text
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classReferenceableProperties- Returns:
- print out of variables in a JSON-style
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classReferenceableProperties- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Return has code based on properties.- Overrides:
hashCodein classReferenceableProperties- Returns:
- int
-
-