Package org.ivoa.dm.executionbroker
Class ScheduleStartDurationInterval
java.lang.Object
org.ivoa.dm.executionbroker.ScheduleStartDurationInterval
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
@Embeddable
@VoDml(id="execbroker:ScheduleStartDurationInterval",
role=dataType)
public class ScheduleStartDurationInterval
extends Object
implements org.ivoa.vodml.jpa.JPAManipulations
A schedule interval and duration.
dataType: ScheduleStartDurationInterval
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for ScheduleStartDurationInterval, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ScheduleStartDurationIntervalScheduleStartDurationInterval(ISO8601Interval start, ISO8601Duration duration) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncreateScheduleStartDurationInterval(Consumer<ScheduleStartDurationInterval.ScheduleStartDurationIntervalBuilder> f) create a ScheduleStartDurationInterval in functional builder style.voidReturns duration Attribute.getStart()Returns start Attribute.voidsetDuration(ISO8601Duration pDuration) Set duration Attribute.voidsetStart(ISO8601Interval pStart) Set start Attribute.voidUpdate this object with the content of the given object.withDuration(ISO8601Duration pDuration) fluent setter for duration Attribute.withStart(ISO8601Interval pStart) fluent setter for start Attribute.
-
Field Details
-
start
@VoDml(id="execbroker:ScheduleStartDurationInterval.start", role=attribute, type="execbroker:ISO8601Interval", typeRole=primitiveType) protected ISO8601Interval start. : Attribute start : multiplicity 1 -
duration
@VoDml(id="execbroker:ScheduleStartDurationInterval.duration", role=attribute, type="execbroker:ISO8601Duration", typeRole=primitiveType) protected ISO8601Duration duration. : Attribute duration : multiplicity 1
-
-
Constructor Details
-
ScheduleStartDurationInterval
public ScheduleStartDurationInterval()Creates a new ScheduleStartDurationInterval -
ScheduleStartDurationInterval
full parameter constructor.- Parameters:
start- .duration- .
-
ScheduleStartDurationInterval
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
updateUsing
Update this object with the content of the given object. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
getStart
Returns start Attribute.- Returns:
- start Attribute
-
setStart
Set start Attribute.- Parameters:
pStart- value to set
-
withStart
fluent setter for start Attribute.- Parameters:
pStart- value to set- Returns:
- ScheduleStartDurationInterval
-
getDuration
Returns duration Attribute.- Returns:
- duration Attribute
-
setDuration
Set duration Attribute.- Parameters:
pDuration- value to set
-
withDuration
fluent setter for duration Attribute.- Parameters:
pDuration- value to set- Returns:
- ScheduleStartDurationInterval
-
createScheduleStartDurationInterval
public static ScheduleStartDurationInterval createScheduleStartDurationInterval(Consumer<ScheduleStartDurationInterval.ScheduleStartDurationIntervalBuilder> f) create a ScheduleStartDurationInterval in functional builder style.- Parameters:
f- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad()- Specified by:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-