Class AssetRelatedAsset

  • All Implemented Interfaces:
    Serializable

    public class AssetRelatedAsset
    extends AssetReferenceable
    AssetRelatedAsset describes assets that are related to this asset. For example, if the asset is a data store, the related assets could be its supported data sets.
    See Also:
    Serialized Form
    • Field Detail

      • assetBean

        protected Asset assetBean
      • relationshipTypeName

        protected String relationshipTypeName
      • relationshipAttributeName

        protected String relationshipAttributeName
    • Constructor Detail

      • AssetRelatedAsset

        public AssetRelatedAsset​(Asset assetBean,
                                 String relationshipTypeName,
                                 String relationshipAttributeName,
                                 RelatedAssetProperties relatedAssetProperties)
        Bean constructor
        Parameters:
        assetBean - bean containing basic properties
        relationshipTypeName - name of the relationship between the anchor asset and the related asset
        relationshipAttributeName - name of the end of the relationship between the anchor asset and the related asset
        relatedAssetProperties - client for retrieving properties from the server
      • AssetRelatedAsset

        public AssetRelatedAsset​(AssetDescriptor parentAsset,
                                 Asset assetBean,
                                 String relationshipTypeName,
                                 String relationshipAttributeName,
                                 RelatedAssetProperties relatedAssetProperties)
        Bean constructor with parent asset
        Parameters:
        parentAsset - descriptor for parent asset
        assetBean - bean containing basic properties
        relationshipTypeName - name of the relationship between the anchor asset and th related asset
        relationshipAttributeName - name of the end of the relationship between the anchor asset and the related asset
        relatedAssetProperties - client for retrieving properties from the server
      • AssetRelatedAsset

        public AssetRelatedAsset​(AssetDescriptor parentAsset,
                                 AssetRelatedAsset templateRelatedAsset)
        Copy/clone constructor
        Parameters:
        parentAsset - description of the asset that this related asset is attached to.
        templateRelatedAsset - template object to copy.
    • Method Detail

      • getAssetBean

        protected Asset getAssetBean()
        Return the bean with basic information about the asset.
        Returns:
        assetBean
      • getDisplayName

        public String getDisplayName()
        Returns the stored display name property for the related asset. If no display name is available then null is returned.
        Returns:
        displayName
      • getShortDescription

        public String getShortDescription()
        Returns the summary description property for the related asset. If no description is provided then null is returned.
        Returns:
        summary description
      • getDescription

        public String getDescription()
        Returns the stored description property for the related asset. If no description is provided then null is returned.
        Returns:
        description
      • getOwner

        public String getOwner()
        Returns the details of the owner for this related asset.
        Returns:
        String owner
      • getRelationshipTypeName

        public String getRelationshipTypeName()
        Return the name of the relationship between the anchor asset and th related asset
        Returns:
        relationship type name
      • getRelationshipAttributeName

        public String getRelationshipAttributeName()
        Return the attribute name for the related asset.
        Returns:
        string name
      • 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