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
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • form

      @VoDml(id="TAPRegExt:LanguageFeature.form", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String 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. : Attribute form : multiplicity 1
    • description

      @VoDml(id="TAPRegExt:LanguageFeature.description", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String description
      Human-readable freeform documentation for the language feature. : Attribute description : multiplicity 0..1
  • Constructor Details

    • LanguageFeature

      public LanguageFeature()
      Creates a new LanguageFeature
    • LanguageFeature

      public LanguageFeature(String form, String description)
      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

      public LanguageFeature(LanguageFeature other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
      Returns:
      the id
    • updateUsing

      public void updateUsing(LanguageFeature other)
      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

      public String getForm()
      Returns form Attribute.
      Returns:
      form Attribute
    • setForm

      public void setForm(String pForm)
      Set form Attribute.
      Parameters:
      pForm - value to set
    • withForm

      public LanguageFeature withForm(String pForm)
      fluent setter for form Attribute.
      Parameters:
      pForm - value to set
      Returns:
      LanguageFeature
    • getDescription

      public String getDescription()
      Returns description Attribute.
      Returns:
      description Attribute
    • setDescription

      public void setDescription(String pDescription)
      Set description Attribute.
      Parameters:
      pDescription - value to set
    • withDescription

      public LanguageFeature withDescription(String pDescription)
      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:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
    • delete

      public void delete(jakarta.persistence.EntityManager em)
      Specified by:
      delete in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>