Class ContextEventProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.SupplementaryProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.contextevents.ContextEventProperties
ContextEventProperties holds properties that are used for displaying details of
context event.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.SupplementaryProperties
displayDescription, displayName
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorContextEventProperties
(ContextEventProperties template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return the actual date that the event ended.long
Return the actual duration of the event in milliseconds.Return the actual start date for the event.Return the type of the event.This override defaults the display description to the event description if it is null;Return the business oriented display name.Returns the stored description property extracted from the event.Set up the effect of the event.getName()
Return the short name of the event that is used when displaying the event in tables etc.Return the expected completion date for this event.long
Return the number of milliseconds that the event is due to run for.Return the planned start date for the event.Return the date to use as an effective from value in elements tied to the context event.Return the date to use as an effective to value in elements tied to the context event.long
Return the number of milliseconds between repeated occurrences of the event.int
hashCode()
Return hash code based on properties.void
setActualCompletionDate
(Date actualCompletionDate) Set up the actual date that the event ended.void
setActualDuration
(long actualDuration) Set up the actual duration of the event in milliseconds.void
setActualStartDate
(Date actualStartDate) Set up the actual start date for the event.void
setContextEventType
(String contextEventType) Set up the type of the event .void
setEventDescription
(String eventDescription) Set up the stored description property extracted from the event.void
setEventEffect
(String eventEffect) Set up the effect of the event.void
Set up the short name of the event that is used in tables etc.void
setPlannedCompletionDate
(Date plannedCompletionDate) Set up the expected completion date for this event.void
setPlannedDuration
(long plannedDuration) Set up the number of milliseconds that the event is due to run for.void
setPlannedStartDate
(Date plannedStartDate) Set up the planned start date for the event.void
setReferenceEffectiveFrom
(Date referenceEffectiveFrom) set up the date to use as an effective from value in elements tied to the context event.void
setReferenceEffectiveTo
(Date referenceEffectiveTo) Set up the date to use as an effective to value in elements tied to the context event.void
setRepeatInterval
(long repeatInterval) Set up the number of milliseconds between repeated occurrences of the event.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.SupplementaryProperties
getAbbreviation, getDisplaySummary, getUsage, setAbbreviation, setDisplayDescription, setDisplayName, setDisplaySummary, setUsage
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
getAdditionalProperties, getQualifiedName, getVendorProperties, setAdditionalProperties, setQualifiedName, setVendorProperties
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
getEffectiveFrom, getEffectiveTo, getExtendedProperties, getTypeName, setEffectiveFrom, setEffectiveTo, setExtendedProperties, setTypeName
-
Constructor Details
-
ContextEventProperties
public ContextEventProperties()Default constructor -
ContextEventProperties
Copy/clone constructor. Note, this is a deep copy- Parameters:
template
- object to copy
-
-
Method Details
-
getName
Return the short name of the event that is used when displaying the event in tables etc.- Returns:
- string
-
setName
Set up the short name of the event that is used in tables etc.- Parameters:
name
- string event name
-
getContextEventType
Return the type of the event.- Returns:
- string
-
setContextEventType
Set up the type of the event .- Parameters:
contextEventType
- string
-
getDisplayName
Return the business oriented display name.- Overrides:
getDisplayName
in classSupplementaryProperties
- Returns:
- display name
-
getEventEffect
Set up the effect of the event.- Returns:
- string version name
-
setEventEffect
Set up the effect of the event.- Parameters:
eventEffect
- string version name
-
getEventDescription
Returns the stored description property extracted from the event. If no description is provided then null is returned.- Returns:
- description String text
-
setEventDescription
Set up the stored description property extracted from the event.- Parameters:
eventDescription
- String text
-
getDisplayDescription
This override defaults the display description to the event description if it is null;- Overrides:
getDisplayDescription
in classSupplementaryProperties
- Returns:
- description
-
getPlannedStartDate
Return the planned start date for the event.- Returns:
- date
-
setPlannedStartDate
Set up the planned start date for the event.- Parameters:
plannedStartDate
- date
-
getActualStartDate
Return the actual start date for the event.- Returns:
- date
-
setActualStartDate
Set up the actual start date for the event.- Parameters:
actualStartDate
- date
-
getPlannedDuration
public long getPlannedDuration()Return the number of milliseconds that the event is due to run for.- Returns:
- long
-
setPlannedDuration
public void setPlannedDuration(long plannedDuration) Set up the number of milliseconds that the event is due to run for.- Parameters:
plannedDuration
- long
-
getActualDuration
public long getActualDuration()Return the actual duration of the event in milliseconds.- Returns:
- long
-
setActualDuration
public void setActualDuration(long actualDuration) Set up the actual duration of the event in milliseconds.- Parameters:
actualDuration
- long
-
getRepeatInterval
public long getRepeatInterval()Return the number of milliseconds between repeated occurrences of the event.- Returns:
- long
-
setRepeatInterval
public void setRepeatInterval(long repeatInterval) Set up the number of milliseconds between repeated occurrences of the event.- Parameters:
repeatInterval
- long
-
getPlannedCompletionDate
Return the expected completion date for this event.- Returns:
- date
-
setPlannedCompletionDate
Set up the expected completion date for this event.- Parameters:
plannedCompletionDate
- date
-
getActualCompletionDate
Return the actual date that the event ended.- Returns:
- date
-
setActualCompletionDate
Set up the actual date that the event ended.- Parameters:
actualCompletionDate
- date
-
getReferenceEffectiveFrom
Return the date to use as an effective from value in elements tied to the context event.- Returns:
- date
-
setReferenceEffectiveFrom
set up the date to use as an effective from value in elements tied to the context event.- Parameters:
referenceEffectiveFrom
- date
-
getReferenceEffectiveTo
Return the date to use as an effective to value in elements tied to the context event.- Returns:
- date
-
setReferenceEffectiveTo
Set up the date to use as an effective to value in elements tied to the context event.- Parameters:
referenceEffectiveTo
- date
-
toString
Standard toString method.- Overrides:
toString
in classSupplementaryProperties
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classSupplementaryProperties
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCode
in classSupplementaryProperties
- Returns:
- int
-