Package org.ivoa.dm.executionbroker
Class StringValueOption
java.lang.Object
org.ivoa.dm.executionbroker.AbstractOption
org.ivoa.dm.executionbroker.StringValueOption
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="execbroker:StringValueOption",
role=objectType)
public class StringValueOption
extends AbstractOption
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A simple string value option. This option enables the client to set a string value pointed to by the path.
objectType: StringValueOption
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for StringValueOption, 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 StringA regular expression pattern restricting the value.Fields inherited from class org.ivoa.dm.executionbroker.AbstractOption
_id, kind, path -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new StringValueOptionStringValueOption(String pattern, String kind, String path) full parameter constructor.StringValueOption(AbstractOption superinstance, String pattern) Constructor from supertype instance.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static StringValueOptioncreate a StringValueOption in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns pattern Attribute.voidsetPattern(String pPattern) Set pattern Attribute.voidupdateUsing(StringValueOption other) Update this object with the content of the given object.withPattern(String pPattern) fluent setter for pattern 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
-
pattern
@VoDml(id="execbroker:StringValueOption.pattern", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String patternA regular expression pattern restricting the value. : Attribute pattern : multiplicity 1
-
-
Constructor Details
-
StringValueOption
public StringValueOption()Creates a new StringValueOption -
StringValueOption
full parameter constructor.- Parameters:
pattern- A regular expression pattern restricting the value.kind- The kind of option.path- The path this option applies to.
-
StringValueOption
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
StringValueOption
Constructor from supertype instance.- Parameters:
superinstance- The supertype.pattern- A regular expression pattern restricting the value.
-
-
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.
-
getPattern
Returns pattern Attribute.- Returns:
- pattern Attribute
-
setPattern
Set pattern Attribute.- Parameters:
pPattern- value to set
-
withPattern
fluent setter for pattern Attribute.- Parameters:
pPattern- value to set- Returns:
- StringValueOption
-
createStringValueOption
public static StringValueOption createStringValueOption(Consumer<StringValueOption.StringValueOptionBuilder> f) create a StringValueOption 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
-