Package org.ivoa.dm.executionbroker
Class IntegerValueOption
java.lang.Object
org.ivoa.dm.executionbroker.AbstractOption
org.ivoa.dm.executionbroker.IntegerValueOption
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="execbroker:IntegerValueOption",
role=objectType)
public class IntegerValueOption
extends AbstractOption
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A simple integer value option. This option enables the client to set an integer value pointed to by the path.
objectType: IntegerValueOption
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for IntegerValueOption, mainly for use in the functional builder pattern.Nested classes/interfaces inherited from class org.ivoa.dm.executionbroker.AbstractOption
AbstractOption.AbstractOptionBuilder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IntegerThe maximum value that can be set.protected IntegerThe minimum value that can be set.protected StringThe units used for the maximum and minimum values and the default units used for the update.Fields inherited from class org.ivoa.dm.executionbroker.AbstractOption
_id, kind, path -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new IntegerValueOptionfull parameter constructor.IntegerValueOption(AbstractOption superinstance, Integer min, Integer max, String units) Constructor from supertype instance.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static IntegerValueOptioncreate a IntegerValueOption in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetMax()Returns max Attribute.getMin()Returns min Attribute.getUnits()Returns units Attribute.voidSet max Attribute.voidSet min Attribute.voidSet units Attribute.voidupdateUsing(IntegerValueOption other) Update this object with the content of the given object.fluent setter for max Attribute.fluent setter for min Attribute.fluent setter for units Attribute.Methods inherited from class org.ivoa.dm.executionbroker.AbstractOption
createAbstractOption, getId, getKind, getPath, setKind, setPath, updateUsing, withKind, withPathMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType
getId
-
Field Details
-
min
@VoDml(id="execbroker:IntegerValueOption.min", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer minThe minimum value that can be set. : Attribute min : multiplicity 1 -
max
@VoDml(id="execbroker:IntegerValueOption.max", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer maxThe maximum value that can be set. : Attribute max : multiplicity 1 -
units
@VoDml(id="execbroker:IntegerValueOption.units", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String unitsThe units used for the maximum and minimum values and the default units used for the update. The client may specify different units in the update if they need to. : Attribute units : multiplicity 1
-
-
Constructor Details
-
IntegerValueOption
public IntegerValueOption()Creates a new IntegerValueOption -
IntegerValueOption
full parameter constructor.- Parameters:
min- The minimum value that can be set.max- The maximum value that can be set.units- The units used for the maximum and minimum values and the default units used for the update. The client may specify different units in the update if they need to.kind- The kind of option.path- The path this option applies to.
-
IntegerValueOption
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
IntegerValueOption
Constructor from supertype instance.- Parameters:
superinstance- The supertype.min- The minimum value that can be set.max- The maximum value that can be set.units- The units used for the maximum and minimum values and the default units used for the update. The client may specify different units in the update if they need to.
-
-
Method Details
-
copyMe
make a clone of the object taking into account current polymorhic type.- Overrides:
copyMein classAbstractOption- Returns:
- the cloned object.
-
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.
-
getMin
Returns min Attribute.- Returns:
- min Attribute
-
setMin
Set min Attribute.- Parameters:
pMin- value to set
-
withMin
fluent setter for min Attribute.- Parameters:
pMin- value to set- Returns:
- IntegerValueOption
-
getMax
Returns max Attribute.- Returns:
- max Attribute
-
setMax
Set max Attribute.- Parameters:
pMax- value to set
-
withMax
fluent setter for max Attribute.- Parameters:
pMax- value to set- Returns:
- IntegerValueOption
-
getUnits
Returns units Attribute.- Returns:
- units Attribute
-
setUnits
Set units Attribute.- Parameters:
pUnits- value to set
-
withUnits
fluent setter for units Attribute.- Parameters:
pUnits- value to set- Returns:
- IntegerValueOption
-
createIntegerValueOption
public static IntegerValueOption createIntegerValueOption(Consumer<IntegerValueOption.IntegerValueOptionBuilder> f) create a IntegerValueOption 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- Overrides:
forceLoadin classAbstractOption
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Overrides:
deletein classAbstractOption
-