Package org.ivoa.dm.registry.tap
Class LanguageFeature
java.lang.Object
org.ivoa.dm.registry.tap.LanguageFeature
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="TAPRegExt:LanguageFeature",
role=objectType)
public class LanguageFeature
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A non-standard or non-mandatory feature implemented
by the language..
objectType: LanguageFeature
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for LanguageFeature, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new LanguageFeatureLanguageFeature(String form, String description) full parameter constructor.LanguageFeature(LanguageFeature other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic LanguageFeaturecreate a LanguageFeature in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns description Attribute.getForm()Returns form Attribute.getId()voidsetDescription(String pDescription) Set description Attribute.voidSet form Attribute.voidupdateUsing(LanguageFeature other) Update this object with the content of the given object.withDescription(String pDescription) fluent setter for description Attribute.fluent setter for form Attribute.
-
Field Details
-
_id
inserted database key -
form
@VoDml(id="TAPRegExt:LanguageFeature.form", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String formFormal notation for the language feature. The syntax for the content of this element is defined by the type attribute of its parent language list. : Attribute form : multiplicity 1 -
description
@VoDml(id="TAPRegExt:LanguageFeature.description", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String descriptionHuman-readable freeform documentation for the language feature. : Attribute description : multiplicity 0..1
-
-
Constructor Details
-
LanguageFeature
public LanguageFeature()Creates a new LanguageFeature -
LanguageFeature
full parameter constructor.- Parameters:
form- Formal notation for the language feature. The syntax for the content of this element is defined by the type attribute of its parent language list.description- Human-readable freeform documentation for the language feature.
-
LanguageFeature
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Returns:
- the id
-
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.
-
getForm
Returns form Attribute.- Returns:
- form Attribute
-
setForm
Set form Attribute.- Parameters:
pForm- value to set
-
withForm
fluent setter for form Attribute.- Parameters:
pForm- value to set- Returns:
- LanguageFeature
-
getDescription
Returns description Attribute.- Returns:
- description Attribute
-
setDescription
Set description Attribute.- Parameters:
pDescription- value to set
-
withDescription
fluent setter for description Attribute.- Parameters:
pDescription- value to set- Returns:
- LanguageFeature
-
createLanguageFeature
public static LanguageFeature createLanguageFeature(Consumer<LanguageFeature.LanguageFeatureBuilder> f) create a LanguageFeature 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
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-