Package org.ivoa.dm.registry.slap
Class SimpleLineAccess
java.lang.Object
org.ivoa.dm.registry.voresource.Capability
org.ivoa.dm.registry.slap.SimpleLineAccess
- All Implemented Interfaces:
 org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="SLAP:SimpleLineAccess",
       role=objectType)
public class SimpleLineAccess
extends Capability
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
The capabilities of an SLAP service implementation.  
 objectType:  SimpleLineAccess
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for SimpleLineAccess, mainly for use in the functional builder pattern.Nested classes/interfaces inherited from class org.ivoa.dm.registry.voresource.Capability
Capability.CapabilityBuilder - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ComplianceLevelThe category indicating the level to which this service instance complies with the SLAP standard.protected DataSourceThe category specifying where the data accessed by the service originally came from.protected IntegerThe hard limit on the largest number of records that the query operation will return in a single response.protected QueryA set of queryData parameters that is expected to produce at least one matched record which can be used to test the service.Fields inherited from class org.ivoa.dm.registry.voresource.Capability
_id, description, interface_, standardID, validationLevel - 
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SimpleLineAccessSimpleLineAccess(ComplianceLevel complianceLevel, DataSource dataSource, Integer maxRecords, Query testQuery, List<Validation> validationLevel, String description, List<Interface> interface_, String standardID) full parameter constructor.SimpleLineAccess(SimpleLineAccess other) Copy Constructor.SimpleLineAccess(Capability superinstance, ComplianceLevel complianceLevel, DataSource dataSource, Integer maxRecords, Query testQuery) Constructor from supertype instance. - 
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static SimpleLineAccesscreate a SimpleLineAccess in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns complianceLevel Attribute.Returns dataSource Attribute.Returns maxRecords Attribute.Returns testQuery Attribute.voidsetComplianceLevel(ComplianceLevel pComplianceLevel) Set complianceLevel Attribute.voidsetDataSource(DataSource pDataSource) Set dataSource Attribute.voidsetMaxRecords(Integer pMaxRecords) Set maxRecords Attribute.voidsetTestQuery(Query pTestQuery) Set testQuery Attribute.voidupdateUsing(SimpleLineAccess other) Update this object with the content of the given object.withComplianceLevel(ComplianceLevel pComplianceLevel) fluent setter for complianceLevel Attribute.withDataSource(DataSource pDataSource) fluent setter for dataSource Attribute.withMaxRecords(Integer pMaxRecords) fluent setter for maxRecords Attribute.withTestQuery(Query pTestQuery) fluent setter for testQuery Attribute.Methods inherited from class org.ivoa.dm.registry.voresource.Capability
addToInterface, createCapability, getDescription, getId, getInterface, getStandardID, getValidationLevel, removeFromInterface, replaceInInterface, setDescription, setInterface, setStandardID, setValidationLevel, updateUsing, withDescription, withStandardID, withValidationLevelMethods 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
- 
complianceLevel
@VoDml(id="SLAP:SimpleLineAccess.complianceLevel", role=attribute, type="SLAP:ComplianceLevel", typeRole=enumeration) protected ComplianceLevel complianceLevelThe category indicating the level to which this service instance complies with the SLAP standard. Allowed values are 'minimal' and 'full'. See definitions of allowed values for details. : Attribute complianceLevel : multiplicity 1 - 
dataSource
@VoDml(id="SLAP:SimpleLineAccess.dataSource", role=attribute, type="SLAP:DataSource", typeRole=enumeration) protected DataSource dataSourceThe category specifying where the data accessed by the service originally came from. Allowed values are 'observational/astrophysical', 'observational/laboratory', 'theoretical'. : Attribute dataSource : multiplicity 1 - 
maxRecords
@VoDml(id="SLAP:SimpleLineAccess.maxRecords", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer maxRecordsThe hard limit on the largest number of records that the query operation will return in a single response. Not providing this value means that there is no effective limit. This does not refer to the total number of spectra in the archive but rather maximum number of records the service is capable of returning. A limit that is greater than the number of spectra available in the archive is equivalent to their being no effective limit. (See RM, Hanisch 2007.). : Attribute maxRecords : multiplicity 0..1 - 
testQuery
@VoDml(id="SLAP:SimpleLineAccess.testQuery", role=composition, type="SLAP:Query", typeRole=objectType) protected Query testQueryA set of queryData parameters that is expected to produce at least one matched record which can be used to test the service. The value should include all parameters required for the test query but should exclude the baseURL and the REQUEST parameter. composition testQuery : ( Multiplicity : 0..1 ) 
 - 
 - 
Constructor Details
- 
SimpleLineAccess
public SimpleLineAccess()Creates a new SimpleLineAccess - 
SimpleLineAccess
public SimpleLineAccess(ComplianceLevel complianceLevel, DataSource dataSource, Integer maxRecords, Query testQuery, List<Validation> validationLevel, String description, List<Interface> interface_, String standardID) full parameter constructor.- Parameters:
 complianceLevel- The category indicating the level to which this service instance complies with the SLAP standard. Allowed values are 'minimal' and 'full'. See definitions of allowed values for details.dataSource- The category specifying where the data accessed by the service originally came from. Allowed values are 'observational/astrophysical', 'observational/laboratory', 'theoretical'.maxRecords- The hard limit on the largest number of records that the query operation will return in a single response. Not providing this value means that there is no effective limit. This does not refer to the total number of spectra in the archive but rather maximum number of records the service is capable of returning. A limit that is greater than the number of spectra available in the archive is equivalent to their being no effective limit. (See RM, Hanisch 2007.).testQuery- A set of queryData parameters that is expected to produce at least one matched record which can be used to test the service. The value should include all parameters required for the test query but should exclude the baseURL and the REQUEST parameter.validationLevel- A numeric grade describing the quality of the capability description and interface, when applicable, to be used to indicate the confidence an end-user can put in the resource as part of a VO application or research study. See VOResource:ValidationLevel for an explanation of the allowed levels.description- A human-readable description of what this capability provides as part of the over-all service Use of this optional element is especially encouraged when this capability is non-standard and is one of several capabilities listed.interface_- a description of how to call the service to access this capability Since the Interface type is abstract, one must describe the interface using a subclass of Interface, denoting it via xsi:type. Multiple occurences can describe different interfaces to the logically same capability, i.e. data or functionality. That is, the inputs accepted and the output provides should be logically the same. For example, a WebBrowser interface given in addition to a WebService interface would simply provide an interactive, human-targeted interface to the underlying WebService interface.standardID- A URI identifier for a standard service. This provides a unique way to refer to a service specification standard, such as a Simple Image Access service. The use of an IVOA identifier here implies that a VOResource description of the standard is registered and accessible.
 - 
SimpleLineAccess
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
 other- the object to be copied.
 - 
SimpleLineAccess
public SimpleLineAccess(Capability superinstance, ComplianceLevel complianceLevel, DataSource dataSource, Integer maxRecords, Query testQuery) Constructor from supertype instance.- Parameters:
 superinstance- The supertype.complianceLevel- The category indicating the level to which this service instance complies with the SLAP standard. Allowed values are 'minimal' and 'full'. See definitions of allowed values for details.dataSource- The category specifying where the data accessed by the service originally came from. Allowed values are 'observational/astrophysical', 'observational/laboratory', 'theoretical'.maxRecords- The hard limit on the largest number of records that the query operation will return in a single response. Not providing this value means that there is no effective limit. This does not refer to the total number of spectra in the archive but rather maximum number of records the service is capable of returning. A limit that is greater than the number of spectra available in the archive is equivalent to their being no effective limit. (See RM, Hanisch 2007.).testQuery- A set of queryData parameters that is expected to produce at least one matched record which can be used to test the service. The value should include all parameters required for the test query but should exclude the baseURL and the REQUEST parameter.
 
 - 
 - 
Method Details
- 
copyMe
make a clone of the object taking into account current polymorhic type.- Overrides:
 copyMein classCapability- 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.
 - 
getComplianceLevel
Returns complianceLevel Attribute.- Returns:
 - complianceLevel Attribute
 
 - 
setComplianceLevel
Set complianceLevel Attribute.- Parameters:
 pComplianceLevel- value to set
 - 
withComplianceLevel
fluent setter for complianceLevel Attribute.- Parameters:
 pComplianceLevel- value to set- Returns:
 - SimpleLineAccess
 
 - 
getDataSource
Returns dataSource Attribute.- Returns:
 - dataSource Attribute
 
 - 
setDataSource
Set dataSource Attribute.- Parameters:
 pDataSource- value to set
 - 
withDataSource
fluent setter for dataSource Attribute.- Parameters:
 pDataSource- value to set- Returns:
 - SimpleLineAccess
 
 - 
getMaxRecords
Returns maxRecords Attribute.- Returns:
 - maxRecords Attribute
 
 - 
setMaxRecords
Set maxRecords Attribute.- Parameters:
 pMaxRecords- value to set
 - 
withMaxRecords
fluent setter for maxRecords Attribute.- Parameters:
 pMaxRecords- value to set- Returns:
 - SimpleLineAccess
 
 - 
getTestQuery
Returns testQuery Attribute.- Returns:
 - testQuery Attribute
 
 - 
setTestQuery
Set testQuery Attribute.- Parameters:
 pTestQuery- value to set
 - 
withTestQuery
fluent setter for testQuery Attribute.- Parameters:
 pTestQuery- value to set- Returns:
 - SimpleLineAccess
 
 - 
createSimpleLineAccess
public static SimpleLineAccess createSimpleLineAccess(Consumer<SimpleLineAccess.SimpleLineAccessBuilder> f) create a SimpleLineAccess 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 classCapability
 - 
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
 deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Overrides:
 deletein classCapability
 
 -