Class AssetProperties
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.communityprofile.properties.ReferenceableProperties
-
- org.odpi.openmetadata.accessservices.communityprofile.properties.AssetProperties
-
- All Implemented Interfaces:
Serializable
public class AssetProperties extends ReferenceableProperties
AssetProperties describes an asset.- 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)Return comparison result based on the content of the properties.DategetDateAssetCreated()Return the date that the asset was created.DategetDateAssetLastUpdated()Return the date that the asset was last updated.StringgetDescription()Return the description of the asset.StringgetName()Return the name of the asset.inthashCode()Return hash code for this objectvoidsetDateAssetCreated(Date dateAssetCreated)Set up the date that the asset was created.voidsetDateAssetLastUpdated(Date dateAssetLastUpdated)Set up the date that the asset was last updated.voidsetDescription(String description)Set up the description of the asset.voidsetName(String name)Set up the name of the asset.StringtoString()JSON-style toString-
Methods inherited from class org.odpi.openmetadata.accessservices.communityprofile.properties.ReferenceableProperties
getAdditionalProperties, getEffectiveFrom, getEffectiveTo, getExtendedProperties, getQualifiedName, getTypeName, getVendorProperties, setAdditionalProperties, setEffectiveFrom, setEffectiveTo, setExtendedProperties, setQualifiedName, setTypeName, setVendorProperties
-
-
-
-
Constructor Detail
-
AssetProperties
public AssetProperties()
Default constructor
-
AssetProperties
public AssetProperties(AssetProperties template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getName
public String getName()
Return the name of the asset.- Returns:
- string name
-
setName
public void setName(String name)
Set up the name of the asset.- Parameters:
name- string name
-
getDescription
public String getDescription()
Return the description of the asset.- Returns:
- text
-
setDescription
public void setDescription(String description)
Set up the description of the asset.- Parameters:
description- text
-
getDateAssetCreated
public Date getDateAssetCreated()
Return the date that the asset was created.- Returns:
- date
-
setDateAssetCreated
public void setDateAssetCreated(Date dateAssetCreated)
Set up the date that the asset was created.- Parameters:
dateAssetCreated- date
-
getDateAssetLastUpdated
public Date getDateAssetLastUpdated()
Return the date that the asset was last updated.- Returns:
- date
-
setDateAssetLastUpdated
public void setDateAssetLastUpdated(Date dateAssetLastUpdated)
Set up the date that the asset was last updated.- Parameters:
dateAssetLastUpdated- date
-
toString
public String toString()
JSON-style toString- Overrides:
toStringin classReferenceableProperties- Returns:
- return string containing the property names and values
-
equals
public boolean equals(Object objectToCompare)
Return comparison result based on the content of the properties.- Overrides:
equalsin classReferenceableProperties- Parameters:
objectToCompare- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()
Return hash code for this object- Overrides:
hashCodein classReferenceableProperties- Returns:
- int hash code
-
-