Class AssetEvent
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.assetconsumer.events.AssetConsumerEvent
-
- org.odpi.openmetadata.accessservices.assetconsumer.events.AssetEvent
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NewAssetEvent,UpdatedAssetEvent
public class AssetEvent extends AssetConsumerEvent
AssetEvent describes the structure of the events emitted by the Asset Consumer OMAS that are about assets.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AssetEvent()Default constructorAssetEvent(AssetEvent 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.AssetgetAsset()Return the asset description.inthashCode()Return hash code for this objectvoidsetAsset(Asset asset)Set up the asset description.StringtoString()JSON-style toString-
Methods inherited from class org.odpi.openmetadata.accessservices.assetconsumer.events.AssetConsumerEvent
getEventType, getEventVersionId, setEventType, setEventVersionId
-
-
-
-
Constructor Detail
-
AssetEvent
public AssetEvent()
Default constructor
-
AssetEvent
public AssetEvent(AssetEvent template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getAsset
public Asset getAsset()
Return the asset description.- Returns:
- properties about the asset
-
setAsset
public void setAsset(Asset asset)
Set up the asset description.- Parameters:
asset- - properties about the asset.
-
toString
public String toString()
JSON-style toString- Overrides:
toStringin classAssetConsumerEvent- 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 classAssetConsumerEvent- Parameters:
objectToCompare- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()
Return hash code for this object- Overrides:
hashCodein classAssetConsumerEvent- Returns:
- int hash code
-
-