Class AssetLocation
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyElementBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetElementHeader
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetReferenceable
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetLocation
-
- All Implemented Interfaces:
Serializable
public class AssetLocation extends AssetReferenceable
AssetLocation 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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected LocationlocationBean-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetReferenceable
referenceableBean
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
parentAsset
-
-
Constructor Summary
Constructors Constructor Description AssetLocation(AssetDescriptor parentAsset, AssetLocation templateLocation)Copy/clone constructorAssetLocation(AssetDescriptor parentAsset, Location locationBean)Bean constructor and parent assetAssetLocation(Location locationBean)Bean 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()Returns the stored description property for the location.StringgetDisplayName()Returns the stored display name property for the location.protected LocationgetLocationBean()Return the bean with all of the properties in it.inthashCode()Hash of propertiesStringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetReferenceable
getAdditionalProperties, getMeanings, getQualifiedName, getReferenceableBean, getSecurityTags, setBean
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetElementHeader
getAssetClassifications, getElementHeaderBean, getExtendedProperties, getGUID, getType, getURL, setBean
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
getParentAsset, getParentAssetName, getParentAssetTypeName
-
-
-
-
Field Detail
-
locationBean
protected Location locationBean
-
-
Constructor Detail
-
AssetLocation
public AssetLocation(Location locationBean)
Bean constructor- Parameters:
locationBean- bean containing all of the properties
-
AssetLocation
public AssetLocation(AssetDescriptor parentAsset, Location locationBean)
Bean constructor and parent asset- Parameters:
parentAsset- descriptor for parent assetlocationBean- bean containing all of the properties
-
AssetLocation
public AssetLocation(AssetDescriptor parentAsset, AssetLocation templateLocation)
Copy/clone constructor- Parameters:
parentAsset- description of the asset that this location is attached to.templateLocation- template object to copy.
-
-
Method Detail
-
getLocationBean
protected Location getLocationBean()
Return the bean with all of the properties in it.- Returns:
- location bean
-
getDisplayName
public String getDisplayName()
Returns the stored display name property for the location. If no display name is available then null is returned.- Returns:
- displayName
-
getDescription
public String getDescription()
Returns the stored description property for the location. If no description is provided then null is returned.- Returns:
- description
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classAssetReferenceable- 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 classAssetReferenceable- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Hash of properties- Overrides:
hashCodein classAssetReferenceable- Returns:
- int
-
-