Package org.ivoa.dm.registry.tap
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
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for LanguageFeatureList, mainly for use in the functional builder pattern. - 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionCreates a new LanguageFeatureListLanguageFeatureList(List<LanguageFeature> feature, String type) full parameter constructor.Copy Constructor. - 
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a org.ivoa.dm.registry.tap.LanguageFeature to the composition.static LanguageFeatureListcreate a LanguageFeatureList in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns feature composition as an immutable list.getId()getType()Returns type Attribute.voidRemove a org.ivoa.dm.registry.tap.LanguageFeature from the composition.voidupdate a org.ivoa.dm.registry.tap.LanguageFeature in the composition.voidsetFeature(List<LanguageFeature> pFeature) Defines whole feature composition.voidSet type Attribute.voidupdateUsing(LanguageFeatureList other) Update this object with the content of the given object.fluent setter for type Attribute. 
- 
Field Details
- 
_id
inserted database key - 
feature
@VoDml(id="TAPRegExt:LanguageFeatureList.feature", role=composition, type="TAPRegExt:LanguageFeature", typeRole=objectType) protected List<LanguageFeature> featureA 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 typeThe 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
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
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.
 - 
getFeature
Returns feature composition as an immutable list.- Returns:
 - feature composition.
 
 - 
setFeature
Defines whole feature composition.- Parameters:
 pFeature- composition to set.
 - 
addToFeature
Add a org.ivoa.dm.registry.tap.LanguageFeature to the composition.- Parameters:
 p- org.ivoa.dm.registry.tap.LanguageFeature to add
 - 
removeFromFeature
Remove a org.ivoa.dm.registry.tap.LanguageFeature from the composition.- Parameters:
 p- org.ivoa.dm.registry.tap.LanguageFeature to remove
 - 
replaceInFeature
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
Returns type Attribute.- Returns:
 - type Attribute
 
 - 
setType
Set type Attribute.- Parameters:
 pType- value to set
 - 
withType
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:
 forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
 - 
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
 deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
 
 -