Class RelatedAsset
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.RelatedAsset
-
- All Implemented Interfaces:
Serializable
public class RelatedAsset extends PropertyBase
RelatedAsset describes the relationship to other assets.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
-
Constructor Summary
Constructors Constructor Description RelatedAsset()Default constructorRelatedAsset(RelatedAsset 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.StringgetAttributeName()Return the attribute name for the related asset.AssetgetRelatedAsset()Return the bean that described the related assetStringgetTypeName()Return the type of relationship to the asset.inthashCode()Return has code based on properties.voidsetAttributeName(String attributeName)Set up the attribute name for the related asset.voidsetRelatedAsset(Asset relatedAsset)Set up the bean that described the related assetvoidsetTypeName(String typeName)Set up the type of relationship to the asset.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
getHeaderVersion, setHeaderVersion
-
-
-
-
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.
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classPropertyBase- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Return has code based on properties.- Overrides:
hashCodein classPropertyBase- Returns:
- int
-
-