Package org.ivoa.dm.executionbroker
Class ScheduleStartDurationInstant
java.lang.Object
org.ivoa.dm.executionbroker.ScheduleStartDurationInstant
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
@Embeddable
@VoDml(id="execbroker:ScheduleStartDurationInstant",
role=dataType)
public class ScheduleStartDurationInstant
extends Object
implements org.ivoa.vodml.jpa.JPAManipulations
A schedule instant and duration.
dataType: ScheduleStartDurationInstant
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for ScheduleStartDurationInstant, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ScheduleStartDurationInstantScheduleStartDurationInstant(ISO8601Instant start, ISO8601Duration duration) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScheduleStartDurationInstantcreateScheduleStartDurationInstant(Consumer<ScheduleStartDurationInstant.ScheduleStartDurationInstantBuilder> f) create a ScheduleStartDurationInstant in functional builder style.voidReturns duration Attribute.getStart()Returns start Attribute.voidsetDuration(ISO8601Duration pDuration) Set duration Attribute.voidsetStart(ISO8601Instant pStart) Set start Attribute.voidUpdate this object with the content of the given object.withDuration(ISO8601Duration pDuration) fluent setter for duration Attribute.withStart(ISO8601Instant pStart) fluent setter for start Attribute.
-
Field Details
-
start
@VoDml(id="execbroker:ScheduleStartDurationInstant.start", role=attribute, type="execbroker:ISO8601Instant", typeRole=primitiveType) protected ISO8601Instant start. : Attribute start : multiplicity 1 -
duration
@VoDml(id="execbroker:ScheduleStartDurationInstant.duration", role=attribute, type="execbroker:ISO8601Duration", typeRole=primitiveType) protected ISO8601Duration duration. : Attribute duration : multiplicity 1
-
-
Constructor Details
-
ScheduleStartDurationInstant
public ScheduleStartDurationInstant()Creates a new ScheduleStartDurationInstant -
ScheduleStartDurationInstant
full parameter constructor.- Parameters:
start- .duration- .
-
ScheduleStartDurationInstant
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:
- ScheduleStartDurationInstant
-
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:
- ScheduleStartDurationInstant
-
createScheduleStartDurationInstant
public static ScheduleStartDurationInstant createScheduleStartDurationInstant(Consumer<ScheduleStartDurationInstant.ScheduleStartDurationInstantBuilder> f) create a ScheduleStartDurationInstant 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
-