Class ContextEventProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.EntityProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
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.OpenMetadataRootProperties
typeName -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorContextEventProperties(ContextEventProperties template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the actual date that the event ended.longReturn the actual duration of the event in milliseconds.Return the actual start date for the event.Set up the effect of the event.Return the expected completion date for this event.longReturn 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.longReturn the number of milliseconds between repeated occurrences of the event.inthashCode()Return hash code based on properties.voidsetActualCompletionDate(Date actualCompletionDate) Set up the actual date that the event ended.voidsetActualDuration(long actualDuration) Set up the actual duration of the event in milliseconds.voidsetActualStartDate(Date actualStartDate) Set up the actual start date for the event.voidsetEventEffect(String eventEffect) Set up the effect of the event.voidsetPlannedCompletionDate(Date plannedCompletionDate) Set up the expected completion date for this event.voidsetPlannedDuration(long plannedDuration) Set up the number of milliseconds that the event is due to run for.voidsetPlannedStartDate(Date plannedStartDate) Set up the planned start date for the event.voidsetReferenceEffectiveFrom(Date referenceEffectiveFrom) set up the date to use as an effective from value in elements tied to the context event.voidsetReferenceEffectiveTo(Date referenceEffectiveTo) Set up the date to use as an effective to value in elements tied to the context event.voidsetRepeatInterval(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.ReferenceableProperties
getAdditionalProperties, getCategory, getDescription, getDisplayName, getIdentifier, getQualifiedName, getURL, getVersionIdentifier, setAdditionalProperties, setCategory, setDescription, setDisplayName, setIdentifier, setQualifiedName, setURL, setVersionIdentifierMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
getExtendedProperties, getTypeName, setExtendedProperties, setTypeNameMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.EntityProperties
getEffectiveFrom, getEffectiveTo, setEffectiveFrom, setEffectiveTo
-
Constructor Details
-
ContextEventProperties
public ContextEventProperties()Default constructor -
ContextEventProperties
Copy/clone constructor. Note, this is a deep copy- Parameters:
template- object to copy
-
-
Method Details
-
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
-
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:
toStringin classReferenceableProperties- 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:
equalsin classReferenceableProperties- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCodein classReferenceableProperties- Returns:
- int
-