Package org.ivoa.dm.executionbroker
Class LifecycleStartDurationInterval
java.lang.Object
org.ivoa.dm.executionbroker.LifecycleStartDurationInterval
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
@Embeddable
@VoDml(id="execbroker:LifecycleStartDurationInterval",
role=dataType)
public class LifecycleStartDurationInterval
extends Object
implements org.ivoa.vodml.jpa.JPAManipulations
A lifecycle interval and duration.
dataType: LifecycleStartDurationInterval
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for LifecycleStartDurationInterval, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new LifecycleStartDurationIntervalLifecycleStartDurationInterval(ISO8601Interval start, ISO8601Duration duration) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncreateLifecycleStartDurationInterval(Consumer<LifecycleStartDurationInterval.LifecycleStartDurationIntervalBuilder> f) create a LifecycleStartDurationInterval 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:LifecycleStartDurationInterval.start", role=attribute, type="execbroker:ISO8601Interval", typeRole=primitiveType) protected ISO8601Interval start. : Attribute start : multiplicity 1 -
duration
@VoDml(id="execbroker:LifecycleStartDurationInterval.duration", role=attribute, type="execbroker:ISO8601Duration", typeRole=primitiveType) protected ISO8601Duration duration. : Attribute duration : multiplicity 1
-
-
Constructor Details
-
LifecycleStartDurationInterval
public LifecycleStartDurationInterval()Creates a new LifecycleStartDurationInterval -
LifecycleStartDurationInterval
full parameter constructor.- Parameters:
start- .duration- .
-
LifecycleStartDurationInterval
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:
- LifecycleStartDurationInterval
-
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:
- LifecycleStartDurationInterval
-
createLifecycleStartDurationInterval
public static LifecycleStartDurationInterval createLifecycleStartDurationInterval(Consumer<LifecycleStartDurationInterval.LifecycleStartDurationIntervalBuilder> f) create a LifecycleStartDurationInterval 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
-