Package org.ivoa.dm.executionbroker
Class EnumValueOption
java.lang.Object
org.ivoa.dm.executionbroker.AbstractOption
org.ivoa.dm.executionbroker.EnumValueOption
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="execbroker:EnumValueOption",
role=objectType)
public class EnumValueOption
extends AbstractOption
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A simple enum value option. This option enables the client to set an enum value pointed to by the path.
objectType: EnumValueOption
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for EnumValueOption, mainly for use in the functional builder pattern.Nested classes/interfaces inherited from class org.ivoa.dm.executionbroker.AbstractOption
AbstractOption.AbstractOptionBuilder -
Field Summary
FieldsFields inherited from class org.ivoa.dm.executionbroker.AbstractOption
_id, kind, path -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new EnumValueOptionEnumValueOption(List<String> values, String kind, String path) full parameter constructor.EnumValueOption(AbstractOption superinstance, List<String> values) Constructor from supertype instance.EnumValueOption(EnumValueOption other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static EnumValueOptioncreate a EnumValueOption in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns values Attribute.voidSet values Attribute.voidupdateUsing(EnumValueOption other) Update this object with the content of the given object.withValues(List<String> pValues) fluent setter for values 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
-
Constructor Details
-
EnumValueOption
public EnumValueOption()Creates a new EnumValueOption -
EnumValueOption
full parameter constructor.- Parameters:
values- The list of available options.kind- The kind of option.path- The path this option applies to.
-
EnumValueOption
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
EnumValueOption
Constructor from supertype instance.- Parameters:
superinstance- The supertype.values- The list of available options.
-
-
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.
-
getValues
Returns values Attribute.- Returns:
- values Attribute
-
setValues
Set values Attribute.- Parameters:
pValues- value to set
-
withValues
fluent setter for values Attribute.- Parameters:
pValues- value to set- Returns:
- EnumValueOption
-
createEnumValueOption
public static EnumValueOption createEnumValueOption(Consumer<EnumValueOption.EnumValueOptionBuilder> f) create a EnumValueOption 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
-