Class AssetProperties
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.securitymanager.properties.ReferenceableProperties
-
- org.odpi.openmetadata.accessservices.securitymanager.properties.AssetProperties
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DataSetProperties,DataStoreProperties
public class AssetProperties extends ReferenceableProperties
AssetProperties is a java bean used to create assets associated with the security manager.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AssetProperties()Default constructorAssetProperties(AssetProperties 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.StringgetDescription()Returns the stored description property for the asset.StringgetDisplayName()Returns the stored display name property for the asset.inthashCode()Return has code based on properties.voidsetDescription(String description)Set up the stored description property associated with the asset.voidsetDisplayName(String displayName)Set up the stored display name property for the asset.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.accessservices.securitymanager.properties.ReferenceableProperties
getAdditionalProperties, getExtendedProperties, getQualifiedName, getTypeName, getVendorProperties, setAdditionalProperties, setExtendedProperties, setQualifiedName, setTypeName, setVendorProperties
-
-
-
-
Constructor Detail
-
AssetProperties
public AssetProperties()
Default constructor
-
AssetProperties
public AssetProperties(AssetProperties template)
Copy/clone constructor. Note, this is a deep copy- Parameters:
template- object to copy
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
Returns the stored display name property for the asset. If no display name is available then null is returned.- Returns:
- String name
-
setDisplayName
public void setDisplayName(String displayName)
Set up the stored display name property for the asset.- Parameters:
displayName- String name
-
getDescription
public String getDescription()
Returns the stored description property for the asset. If no description is provided then null is returned.- Returns:
- description String text
-
setDescription
public void setDescription(String description)
Set up the stored description property associated with the asset.- Parameters:
description- String text
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classReferenceableProperties- 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 classReferenceableProperties- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Return has code based on properties.- Overrides:
hashCodein classReferenceableProperties- Returns:
- int
-
-