Class AssetOwnerEvent
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.assetowner.events.AssetOwnerEventHeader
-
- org.odpi.openmetadata.accessservices.assetowner.events.AssetOwnerEvent
-
- All Implemented Interfaces:
Serializable
public class AssetOwnerEvent extends AssetOwnerEventHeader
AssetOwnerEvent describes the structure of the events emitted by the Asset Owner OMAS.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AssetOwnerEvent()Default constructorAssetOwnerEvent(AssetOwnerEvent 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.AssetOwnerEventTypegetEventType()Return the type of event.AssetgetOriginalAsset()Return the original asset description.inthashCode()Return hash code for this objectvoidsetAsset(Asset asset)Set up the asset description.voidsetEventType(AssetOwnerEventType eventType)Set up the type of event.voidsetOriginalAsset(Asset originalAsset)Set up the original asset description.StringtoString()JSON-style toString-
Methods inherited from class org.odpi.openmetadata.accessservices.assetowner.events.AssetOwnerEventHeader
getEventVersionId, setEventVersionId
-
-
-
-
Constructor Detail
-
AssetOwnerEvent
public AssetOwnerEvent()
Default constructor
-
AssetOwnerEvent
public AssetOwnerEvent(AssetOwnerEvent template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getEventType
public AssetOwnerEventType getEventType()
Return the type of event.- Returns:
- event type enum
-
setEventType
public void setEventType(AssetOwnerEventType eventType)
Set up the type of event.- Parameters:
eventType- - event type enum
-
getOriginalAsset
public Asset getOriginalAsset()
Return the original asset description.- Returns:
- properties about the asset
-
setOriginalAsset
public void setOriginalAsset(Asset originalAsset)
Set up the original asset description.- Parameters:
originalAsset- - properties about the asset.
-
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 classAssetOwnerEventHeader- 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 classAssetOwnerEventHeader- Parameters:
objectToCompare- test object- Returns:
- result of comparison
-
hashCode
public int hashCode()
Return hash code for this object- Overrides:
hashCodein classAssetOwnerEventHeader- Returns:
- int hash code
-
-