Package org.ivoa.dm.registry.ssa
Class SimpleSpectralAccess
java.lang.Object
org.ivoa.dm.registry.voresource.Capability
org.ivoa.dm.registry.ssa.SimpleSpectralAccess
- All Implemented Interfaces:
 org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="SSA:SimpleSpectralAccess",
       role=objectType)
public class SimpleSpectralAccess
extends Capability
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
The capabilities of an SSA service implementation.  
 objectType:  SimpleSpectralAccess
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for SimpleSpectralAccess, 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 instance complies with the SSA standard.protected List<CreationType>The category that describes the process used to produce the dataset.protected List<DataSource>The category specifying where the data originally came from.protected IntegerThe largest number of records that the service will return when the MAXREC parameter not specified in the query input.protected DoubleThe largest aperture that can be supported upon request via the APERTURE input parameter by a service that supports the spectral extraction creation method.protected IntegerThe maximum spectrum file size in bytes that will be returned.protected IntegerThe hard limit on the largest number of records that the query operation will return in a single response.protected DoubleThe largest search radius, in degrees, that will be accepted by the service without returning an error condition.Identifiers of spatial reference frames that can be used in the POS parameter.protected Querya set of query 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 SimpleSpectralAccessSimpleSpectralAccess(ComplianceLevel complianceLevel, List<DataSource> dataSource, List<CreationType> creationType, List<String> supportedFrame, Double maxSearchRadius, Integer maxRecords, Integer defaultMaxRecords, Double maxAperture, Integer maxFileSize, Query testQuery, List<Validation> validationLevel, String description, List<Interface> interface_, String standardID) full parameter constructor.Copy Constructor.SimpleSpectralAccess(Capability superinstance, ComplianceLevel complianceLevel, List<DataSource> dataSource, List<CreationType> creationType, List<String> supportedFrame, Double maxSearchRadius, Integer maxRecords, Integer defaultMaxRecords, Double maxAperture, Integer maxFileSize, Query testQuery) Constructor from supertype instance. - 
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static SimpleSpectralAccesscreate a SimpleSpectralAccess in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns complianceLevel Attribute.Returns creationType Attribute.Returns dataSource Attribute.Returns defaultMaxRecords Attribute.Returns maxAperture Attribute.Returns maxFileSize Attribute.Returns maxRecords Attribute.Returns maxSearchRadius Attribute.Returns supportedFrame Attribute.Returns testQuery Attribute.voidsetComplianceLevel(ComplianceLevel pComplianceLevel) Set complianceLevel Attribute.voidsetCreationType(List<CreationType> pCreationType) Set creationType Attribute.voidsetDataSource(List<DataSource> pDataSource) Set dataSource Attribute.voidsetDefaultMaxRecords(Integer pDefaultMaxRecords) Set defaultMaxRecords Attribute.voidsetMaxAperture(Double pMaxAperture) Set maxAperture Attribute.voidsetMaxFileSize(Integer pMaxFileSize) Set maxFileSize Attribute.voidsetMaxRecords(Integer pMaxRecords) Set maxRecords Attribute.voidsetMaxSearchRadius(Double pMaxSearchRadius) Set maxSearchRadius Attribute.voidsetSupportedFrame(List<String> pSupportedFrame) Set supportedFrame Attribute.voidsetTestQuery(Query pTestQuery) Set testQuery Attribute.voidupdateUsing(SimpleSpectralAccess other) Update this object with the content of the given object.withComplianceLevel(ComplianceLevel pComplianceLevel) fluent setter for complianceLevel Attribute.withCreationType(List<CreationType> pCreationType) fluent setter for creationType Attribute.withDataSource(List<DataSource> pDataSource) fluent setter for dataSource Attribute.withDefaultMaxRecords(Integer pDefaultMaxRecords) fluent setter for defaultMaxRecords Attribute.withMaxAperture(Double pMaxAperture) fluent setter for maxAperture Attribute.withMaxFileSize(Integer pMaxFileSize) fluent setter for maxFileSize Attribute.withMaxRecords(Integer pMaxRecords) fluent setter for maxRecords Attribute.withMaxSearchRadius(Double pMaxSearchRadius) fluent setter for maxSearchRadius Attribute.withSupportedFrame(List<String> pSupportedFrame) fluent setter for supportedFrame 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="SSA:SimpleSpectralAccess.complianceLevel", role=attribute, type="SSA:ComplianceLevel", typeRole=enumeration) protected ComplianceLevel complianceLevelThe category indicating the level to which this instance complies with the SSA standard. Allowed values are 'query', 'minimal', and 'full'. See definitions of allowed values for details. : Attribute complianceLevel : multiplicity 1 - 
dataSource
@VoDml(id="SSA:SimpleSpectralAccess.dataSource", role=attribute, type="SSA:DataSource", typeRole=enumeration) protected List<DataSource> dataSourceThe category specifying where the data originally came from. Allowed values are 'survey', 'pointed', 'custom', 'theory', 'artificial'. : Attribute dataSource : multiplicity 1..* - 
creationType
@VoDml(id="SSA:SimpleSpectralAccess.creationType", role=attribute, type="SSA:CreationType", typeRole=enumeration) protected List<CreationType> creationTypeThe category that describes the process used to produce the dataset. Typically this describes only the processing performed by the data service, but it could describe some additional earlier processing as well, e.g., if data is partially precomputed. Allowed values are 'archival', 'cutout', 'filtered', 'mosaic', 'projection', 'spectralExtraction', 'catalogExtraction'. : Attribute creationType : multiplicity 1..* - 
supportedFrame
@VoDml(id="SSA:SimpleSpectralAccess.supportedFrame", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> supportedFrameIdentifiers of spatial reference frames that can be used in the POS parameter. The identifiers must be taken from the vocabulary http://www.ivoa.net/rdf/refframe. At least one recognized value must be listed when the service supports POS. With SSA v1.1, ICRS must be supported in that case; thus, this list must include at least this value. : Attribute supportedFrame : multiplicity 1..* - 
maxSearchRadius
@VoDml(id="SSA:SimpleSpectralAccess.maxSearchRadius", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double maxSearchRadiusThe largest search radius, in degrees, that will be accepted by the service without returning an error condition. Not providing this element or specifying a value of 180 indicates that there is no restriction. Not providing a value is the prefered way to indicate that there is no restriction. : Attribute maxSearchRadius : multiplicity 0..1 - 
maxRecords
@VoDml(id="SSA:SimpleSpectralAccess.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 - 
defaultMaxRecords
@VoDml(id="SSA:SimpleSpectralAccess.defaultMaxRecords", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer defaultMaxRecordsThe largest number of records that the service will return when the MAXREC parameter not specified in the query input. Not providing a value means that the hard limit implied by maxRecords will be the default limit. : Attribute defaultMaxRecords : multiplicity 0..1 - 
maxAperture
@VoDml(id="SSA:SimpleSpectralAccess.maxAperture", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double maxApertureThe largest aperture that can be supported upon request via the APERTURE input parameter by a service that supports the spectral extraction creation method. A value of 180 or not providing a value means there is no theoretical limit. Not providing a value is the preferred way to indicate that there is no limit. : Attribute maxAperture : multiplicity 0..1 - 
maxFileSize
@VoDml(id="SSA:SimpleSpectralAccess.maxFileSize", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer maxFileSizeThe maximum spectrum file size in bytes that will be returned. Not providing a value indicates that there is no effective limit the size of files that can be returned. This is primarily relevant when spectra are created on the fly (see creationType). If the service provides access to static spectra, this should only be specified if there are spectra in the archive that can be searched for but not returned because they are too big. : Attribute maxFileSize : multiplicity 0..1 - 
testQuery
@VoDml(id="SSA:SimpleSpectralAccess.testQuery", role=composition, type="SSA:Query", typeRole=objectType) protected Query testQuerya set of query parameters that is expected to produce at least one matched record which can be used to test the service. composition testQuery : ( Multiplicity : 0..1 ) 
 - 
 - 
Constructor Details
- 
SimpleSpectralAccess
public SimpleSpectralAccess()Creates a new SimpleSpectralAccess - 
SimpleSpectralAccess
public SimpleSpectralAccess(ComplianceLevel complianceLevel, List<DataSource> dataSource, List<CreationType> creationType, List<String> supportedFrame, Double maxSearchRadius, Integer maxRecords, Integer defaultMaxRecords, Double maxAperture, Integer maxFileSize, 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 instance complies with the SSA standard. Allowed values are 'query', 'minimal', and 'full'. See definitions of allowed values for details.dataSource- The category specifying where the data originally came from. Allowed values are 'survey', 'pointed', 'custom', 'theory', 'artificial'.creationType- The category that describes the process used to produce the dataset. Typically this describes only the processing performed by the data service, but it could describe some additional earlier processing as well, e.g., if data is partially precomputed. Allowed values are 'archival', 'cutout', 'filtered', 'mosaic', 'projection', 'spectralExtraction', 'catalogExtraction'.supportedFrame- Identifiers of spatial reference frames that can be used in the POS parameter. The identifiers must be taken from the vocabulary http://www.ivoa.net/rdf/refframe. At least one recognized value must be listed when the service supports POS. With SSA v1.1, ICRS must be supported in that case; thus, this list must include at least this value.maxSearchRadius- The largest search radius, in degrees, that will be accepted by the service without returning an error condition. Not providing this element or specifying a value of 180 indicates that there is no restriction. Not providing a value is the prefered way to indicate that there is no restriction.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.).defaultMaxRecords- The largest number of records that the service will return when the MAXREC parameter not specified in the query input. Not providing a value means that the hard limit implied by maxRecords will be the default limit.maxAperture- The largest aperture that can be supported upon request via the APERTURE input parameter by a service that supports the spectral extraction creation method. A value of 180 or not providing a value means there is no theoretical limit. Not providing a value is the preferred way to indicate that there is no limit.maxFileSize- The maximum spectrum file size in bytes that will be returned. Not providing a value indicates that there is no effective limit the size of files that can be returned. This is primarily relevant when spectra are created on the fly (see creationType). If the service provides access to static spectra, this should only be specified if there are spectra in the archive that can be searched for but not returned because they are too big.testQuery- a set of query parameters that is expected to produce at least one matched record which can be used to test the service.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.
 - 
SimpleSpectralAccess
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
 other- the object to be copied.
 - 
SimpleSpectralAccess
public SimpleSpectralAccess(Capability superinstance, ComplianceLevel complianceLevel, List<DataSource> dataSource, List<CreationType> creationType, List<String> supportedFrame, Double maxSearchRadius, Integer maxRecords, Integer defaultMaxRecords, Double maxAperture, Integer maxFileSize, Query testQuery) Constructor from supertype instance.- Parameters:
 superinstance- The supertype.complianceLevel- The category indicating the level to which this instance complies with the SSA standard. Allowed values are 'query', 'minimal', and 'full'. See definitions of allowed values for details.dataSource- The category specifying where the data originally came from. Allowed values are 'survey', 'pointed', 'custom', 'theory', 'artificial'.creationType- The category that describes the process used to produce the dataset. Typically this describes only the processing performed by the data service, but it could describe some additional earlier processing as well, e.g., if data is partially precomputed. Allowed values are 'archival', 'cutout', 'filtered', 'mosaic', 'projection', 'spectralExtraction', 'catalogExtraction'.supportedFrame- Identifiers of spatial reference frames that can be used in the POS parameter. The identifiers must be taken from the vocabulary http://www.ivoa.net/rdf/refframe. At least one recognized value must be listed when the service supports POS. With SSA v1.1, ICRS must be supported in that case; thus, this list must include at least this value.maxSearchRadius- The largest search radius, in degrees, that will be accepted by the service without returning an error condition. Not providing this element or specifying a value of 180 indicates that there is no restriction. Not providing a value is the prefered way to indicate that there is no restriction.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.).defaultMaxRecords- The largest number of records that the service will return when the MAXREC parameter not specified in the query input. Not providing a value means that the hard limit implied by maxRecords will be the default limit.maxAperture- The largest aperture that can be supported upon request via the APERTURE input parameter by a service that supports the spectral extraction creation method. A value of 180 or not providing a value means there is no theoretical limit. Not providing a value is the preferred way to indicate that there is no limit.maxFileSize- The maximum spectrum file size in bytes that will be returned. Not providing a value indicates that there is no effective limit the size of files that can be returned. This is primarily relevant when spectra are created on the fly (see creationType). If the service provides access to static spectra, this should only be specified if there are spectra in the archive that can be searched for but not returned because they are too big.testQuery- a set of query parameters that is expected to produce at least one matched record which can be used to test the service.
 
 - 
 - 
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:
 - SimpleSpectralAccess
 
 - 
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:
 - SimpleSpectralAccess
 
 - 
getCreationType
Returns creationType Attribute.- Returns:
 - creationType Attribute
 
 - 
setCreationType
Set creationType Attribute.- Parameters:
 pCreationType- value to set
 - 
withCreationType
fluent setter for creationType Attribute.- Parameters:
 pCreationType- value to set- Returns:
 - SimpleSpectralAccess
 
 - 
getSupportedFrame
Returns supportedFrame Attribute.- Returns:
 - supportedFrame Attribute
 
 - 
setSupportedFrame
Set supportedFrame Attribute.- Parameters:
 pSupportedFrame- value to set
 - 
withSupportedFrame
fluent setter for supportedFrame Attribute.- Parameters:
 pSupportedFrame- value to set- Returns:
 - SimpleSpectralAccess
 
 - 
getMaxSearchRadius
Returns maxSearchRadius Attribute.- Returns:
 - maxSearchRadius Attribute
 
 - 
setMaxSearchRadius
Set maxSearchRadius Attribute.- Parameters:
 pMaxSearchRadius- value to set
 - 
withMaxSearchRadius
fluent setter for maxSearchRadius Attribute.- Parameters:
 pMaxSearchRadius- value to set- Returns:
 - SimpleSpectralAccess
 
 - 
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:
 - SimpleSpectralAccess
 
 - 
getDefaultMaxRecords
Returns defaultMaxRecords Attribute.- Returns:
 - defaultMaxRecords Attribute
 
 - 
setDefaultMaxRecords
Set defaultMaxRecords Attribute.- Parameters:
 pDefaultMaxRecords- value to set
 - 
withDefaultMaxRecords
fluent setter for defaultMaxRecords Attribute.- Parameters:
 pDefaultMaxRecords- value to set- Returns:
 - SimpleSpectralAccess
 
 - 
getMaxAperture
Returns maxAperture Attribute.- Returns:
 - maxAperture Attribute
 
 - 
setMaxAperture
Set maxAperture Attribute.- Parameters:
 pMaxAperture- value to set
 - 
withMaxAperture
fluent setter for maxAperture Attribute.- Parameters:
 pMaxAperture- value to set- Returns:
 - SimpleSpectralAccess
 
 - 
getMaxFileSize
Returns maxFileSize Attribute.- Returns:
 - maxFileSize Attribute
 
 - 
setMaxFileSize
Set maxFileSize Attribute.- Parameters:
 pMaxFileSize- value to set
 - 
withMaxFileSize
fluent setter for maxFileSize Attribute.- Parameters:
 pMaxFileSize- value to set- Returns:
 - SimpleSpectralAccess
 
 - 
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:
 - SimpleSpectralAccess
 
 - 
createSimpleSpectralAccess
public static SimpleSpectralAccess createSimpleSpectralAccess(Consumer<SimpleSpectralAccess.SimpleSpectralAccessBuilder> f) create a SimpleSpectralAccess 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
 
 -