Class RelatedAsset

    • Constructor Detail

      • RelatedAsset

        public RelatedAsset()
        Default constructor
      • RelatedAsset

        public RelatedAsset​(RelatedAsset template)
        Copy/clone constructor
        Parameters:
        template - object to copy
    • Method Detail

      • getTypeName

        public String getTypeName()
        Return the type of relationship to the asset.
        Returns:
        type name string
      • setTypeName

        public void setTypeName​(String typeName)
        Set up the type of relationship to the asset.
        Parameters:
        typeName - type name string
      • getAttributeName

        public String getAttributeName()
        Return the attribute name for the related asset.
        Returns:
        string name
      • setAttributeName

        public void setAttributeName​(String attributeName)
        Set up the attribute name for the related asset.
        Parameters:
        attributeName - string name
      • getRelatedAsset

        public Asset getRelatedAsset()
        Return the bean that described the related asset
        Returns:
        asset bean
      • setRelatedAsset

        public void setRelatedAsset​(Asset relatedAsset)
        Set up the bean that described the related asset
        Parameters:
        relatedAsset - asset bean
      • toString

        public String toString()
        Standard toString method.
        Overrides:
        toString in class Object
        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 PropertyBase
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison
      • hashCode

        public int hashCode()
        Return has code based on properties.
        Overrides:
        hashCode in class PropertyBase
        Returns:
        int