Class LanguageFeatureList

java.lang.Object
org.ivoa.dm.registry.tap.LanguageFeatureList
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="TAPRegExt:LanguageFeatureList", role=objectType) public class LanguageFeatureList extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
An enumeration of non-standard or non-mandatory features of a specific type implemented by the language. A feature type is a language-dependent concept like 'user defined function', 'geometry support', or possibly 'units supported'. A featureList gives all features of a given type applicable for the service. Multiple featureLists are possible. All feature in a given list are of the same type. This type is declared using the mandatory type attribute, the value of which will typically be an IVORN. To see values defined in TAPRegExt, retrieve the ivo://ivoa.net/std/TAPRegExt resource record and look for keys starting with 'features-'. objectType: LanguageFeatureList
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • feature

      @VoDml(id="TAPRegExt:LanguageFeatureList.feature", role=composition, type="TAPRegExt:LanguageFeature", typeRole=objectType) protected List<LanguageFeature> feature
      A language feature of the type given by this element's type attribute. composition feature : ( Multiplicity : 0..* )
    • type

      @VoDml(id="TAPRegExt:LanguageFeatureList.type", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String type
      The type of the features given here. This is in general an IVORN. TAPRegExt itself gives IVORNs for defining user defined functions and geometry support. : Attribute type : multiplicity 1
  • Constructor Details

    • LanguageFeatureList

      public LanguageFeatureList()
      Creates a new LanguageFeatureList
    • LanguageFeatureList

      public LanguageFeatureList(List<LanguageFeature> feature, String type)
      full parameter constructor.
      Parameters:
      feature - A language feature of the type given by this element's type attribute.
      type - The type of the features given here. This is in general an IVORN. TAPRegExt itself gives IVORNs for defining user defined functions and geometry support.
    • LanguageFeatureList

      public LanguageFeatureList(LanguageFeatureList 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(LanguageFeatureList 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.
    • getFeature

      public List<LanguageFeature> getFeature()
      Returns feature composition as an immutable list.
      Returns:
      feature composition.
    • setFeature

      public void setFeature(List<LanguageFeature> pFeature)
      Defines whole feature composition.
      Parameters:
      pFeature - composition to set.
    • addToFeature

      public void addToFeature(LanguageFeature p)
      Add a org.ivoa.dm.registry.tap.LanguageFeature to the composition.
      Parameters:
      p - org.ivoa.dm.registry.tap.LanguageFeature to add
    • removeFromFeature

      public void removeFromFeature(LanguageFeature p)
      Remove a org.ivoa.dm.registry.tap.LanguageFeature from the composition.
      Parameters:
      p - org.ivoa.dm.registry.tap.LanguageFeature to remove
    • replaceInFeature

      public void replaceInFeature(LanguageFeature _p)
      update a org.ivoa.dm.registry.tap.LanguageFeature in the composition.
      Parameters:
      _p - org.ivoa.dm.registry.tap.LanguageFeature to update the match is done via the database key
    • getType

      public String getType()
      Returns type Attribute.
      Returns:
      type Attribute
    • setType

      public void setType(String pType)
      Set type Attribute.
      Parameters:
      pType - value to set
    • withType

      public LanguageFeatureList withType(String pType)
      fluent setter for type Attribute.
      Parameters:
      pType - value to set
      Returns:
      LanguageFeatureList
    • createLanguageFeatureList

      public static LanguageFeatureList createLanguageFeatureList(Consumer<LanguageFeatureList.LanguageFeatureListBuilder> f)
      create a LanguageFeatureList 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>