Class 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 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 asset
        locationBean - 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:
        toString in class AssetReferenceable
        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:
        equals in class AssetReferenceable
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison