Package org.ivoa.dm.registry.sia
Class SimpleImageAccess
java.lang.Object
org.ivoa.dm.registry.voresource.Capability
org.ivoa.dm.registry.sia.SimpleImageAccess
- All Implemented Interfaces:
 org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="SIA:SimpleImageAccess",
       role=objectType)
public class SimpleImageAccess
extends Capability
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
The capabilities of an SIA implementation. 
 objectType:  SimpleImageAccess
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for SimpleImageAccess, 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 ImageServiceTypeThe class of image service: Cutout, Mosaic, Atlas, Pointed .protected IntegerThe maximum image file size in bytes.protected SkySizeAn upper bound on a region of the sky that can be covered by returned images.protected IntegerA measure of the largest image the service can produce given as the maximum number of pixels along the first or second axes.protected SkySizeThe maximum image query region size, expressed in decimal degrees.protected IntegerThe largest number of records that the Image Query web method will return.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 SimpleImageAccessSimpleImageAccess(ImageServiceType imageServiceType, SkySize maxQueryRegionSize, SkySize maxImageExtent, Integer maxImageSize, Integer maxFileSize, Integer maxRecords, Query testQuery, List<Validation> validationLevel, String description, List<Interface> interface_, String standardID) full parameter constructor.Copy Constructor.SimpleImageAccess(Capability superinstance, ImageServiceType imageServiceType, SkySize maxQueryRegionSize, SkySize maxImageExtent, Integer maxImageSize, Integer maxFileSize, 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 SimpleImageAccesscreate a SimpleImageAccess in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns imageServiceType Attribute.Returns maxFileSize Attribute.Returns maxImageExtent Attribute.Returns maxImageSize Attribute.Returns maxQueryRegionSize Attribute.Returns maxRecords Attribute.Returns testQuery Attribute.voidsetImageServiceType(ImageServiceType pImageServiceType) Set imageServiceType Attribute.voidsetMaxFileSize(Integer pMaxFileSize) Set maxFileSize Attribute.voidsetMaxImageExtent(SkySize pMaxImageExtent) Set maxImageExtent Attribute.voidsetMaxImageSize(Integer pMaxImageSize) Set maxImageSize Attribute.voidsetMaxQueryRegionSize(SkySize pMaxQueryRegionSize) Set maxQueryRegionSize Attribute.voidsetMaxRecords(Integer pMaxRecords) Set maxRecords Attribute.voidsetTestQuery(Query pTestQuery) Set testQuery Attribute.voidupdateUsing(SimpleImageAccess other) Update this object with the content of the given object.withImageServiceType(ImageServiceType pImageServiceType) fluent setter for imageServiceType Attribute.withMaxFileSize(Integer pMaxFileSize) fluent setter for maxFileSize Attribute.withMaxImageExtent(SkySize pMaxImageExtent) fluent setter for maxImageExtent Attribute.withMaxImageSize(Integer pMaxImageSize) fluent setter for maxImageSize Attribute.withMaxQueryRegionSize(SkySize pMaxQueryRegionSize) fluent setter for maxQueryRegionSize 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
- 
imageServiceType
@VoDml(id="SIA:SimpleImageAccess.imageServiceType", role=attribute, type="SIA:ImageServiceType", typeRole=enumeration) protected ImageServiceType imageServiceTypeThe class of image service: Cutout, Mosaic, Atlas, Pointed . : Attribute imageServiceType : multiplicity 1 - 
maxQueryRegionSize
@VoDml(id="SIA:SimpleImageAccess.maxQueryRegionSize", role=composition, type="SIA:SkySize", typeRole=objectType) protected SkySize maxQueryRegionSizeThe maximum image query region size, expressed in decimal degrees. Not providing this element or specifying a value of 360 degrees indicates that there is no limit and the entire data collection (entire sky) can be queried. Not providing a value is the prefered way to indicate that there is no limit. composition maxQueryRegionSize : ( Multiplicity : 0..1 ) - 
maxImageExtent
@VoDml(id="SIA:SimpleImageAccess.maxImageExtent", role=composition, type="SIA:SkySize", typeRole=objectType) protected SkySize maxImageExtentAn upper bound on a region of the sky that can be covered by returned images. That is, no image returned by this service will cover more than this limit. Not providing this element or specifying a value of 360 degrees indicates that there is no fundamental limit to the region covered by a returned image. When the imageServiceType is “Cutout” or “Mosaic”, this represents the largest area that can be requested. In this case, the “no limit” value means that all-sky images can be requested. When the type is “Atlas” or “Pointed”, it should be a region that most closely encloses largest images in the archive, and the ”no limit” value means that the archive contains all-sky (or nearly so) images. Not providing a value is the prefered way to indicate that there is no limit. composition maxImageExtent : ( Multiplicity : 0..1 ) - 
maxImageSize
@VoDml(id="SIA:SimpleImageAccess.maxImageSize", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer maxImageSizeA measure of the largest image the service can produce given as the maximum number of pixels along the first or second axes. Not providing a value indicates that there is no effective limit to the size of the images that can be returned. This is primarily relevant when the imageServiceType is “Cutout” or “Mosaic”, indicating the largest image that can be created. When the imageServiceType is “Atlas” or “Pointed”, this should be specified only when there are static images in the archive that can be searched for but not returned because they are too big. When a service is more fundementally limited by the total number of pixels in the image, this value should be set to the square-root of that number. This number will then represent a lower limit on the maximum length of a side. : Attribute maxImageSize : multiplicity 0..1 - 
maxFileSize
@VoDml(id="SIA:SimpleImageAccess.maxFileSize", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer maxFileSizeThe maximum image file size in bytes. Not providing a value indicates that there is no effective limit the size of files that can be returned. This is primarily relevant when the imageServiceType is “Cutout” or “Mosaic”, indicating the largest files that can be created. When the imageServiceType is “Atlas” or “Pointed”, this should be specified only when there are static images in the archive that can be searched for but not returned because they are too big. : Attribute maxFileSize : multiplicity 0..1 - 
maxRecords
@VoDml(id="SIA:SimpleImageAccess.maxRecords", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer maxRecordsThe largest number of records that the Image Query web method will return. Not providing this value means that there is no effective limit. This does not refer to the total number of images in the archive but rather maximum number of records the service is capable of returning. A limit that is greater than the number of images available in the archive is equivalent to their being no effective limit. (See RM, Hanisch 2007.) . : Attribute maxRecords : multiplicity 0..1 - 
testQuery
@VoDml(id="SIA:SimpleImageAccess.testQuery", role=composition, type="SIA: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
- 
SimpleImageAccess
public SimpleImageAccess()Creates a new SimpleImageAccess - 
SimpleImageAccess
public SimpleImageAccess(ImageServiceType imageServiceType, SkySize maxQueryRegionSize, SkySize maxImageExtent, Integer maxImageSize, Integer maxFileSize, Integer maxRecords, Query testQuery, List<Validation> validationLevel, String description, List<Interface> interface_, String standardID) full parameter constructor.- Parameters:
 imageServiceType- The class of image service: Cutout, Mosaic, Atlas, Pointed .maxQueryRegionSize- The maximum image query region size, expressed in decimal degrees. Not providing this element or specifying a value of 360 degrees indicates that there is no limit and the entire data collection (entire sky) can be queried. Not providing a value is the prefered way to indicate that there is no limit.maxImageExtent- An upper bound on a region of the sky that can be covered by returned images. That is, no image returned by this service will cover more than this limit. Not providing this element or specifying a value of 360 degrees indicates that there is no fundamental limit to the region covered by a returned image. When the imageServiceType is “Cutout” or “Mosaic”, this represents the largest area that can be requested. In this case, the “no limit” value means that all-sky images can be requested. When the type is “Atlas” or “Pointed”, it should be a region that most closely encloses largest images in the archive, and the ”no limit” value means that the archive contains all-sky (or nearly so) images. Not providing a value is the prefered way to indicate that there is no limit.maxImageSize- A measure of the largest image the service can produce given as the maximum number of pixels along the first or second axes. Not providing a value indicates that there is no effective limit to the size of the images that can be returned. This is primarily relevant when the imageServiceType is “Cutout” or “Mosaic”, indicating the largest image that can be created. When the imageServiceType is “Atlas” or “Pointed”, this should be specified only when there are static images in the archive that can be searched for but not returned because they are too big. When a service is more fundementally limited by the total number of pixels in the image, this value should be set to the square-root of that number. This number will then represent a lower limit on the maximum length of a side.maxFileSize- The maximum image file size in bytes. Not providing a value indicates that there is no effective limit the size of files that can be returned. This is primarily relevant when the imageServiceType is “Cutout” or “Mosaic”, indicating the largest files that can be created. When the imageServiceType is “Atlas” or “Pointed”, this should be specified only when there are static images in the archive that can be searched for but not returned because they are too big.maxRecords- The largest number of records that the Image Query web method will return. Not providing this value means that there is no effective limit. This does not refer to the total number of images in the archive but rather maximum number of records the service is capable of returning. A limit that is greater than the number of images available in the archive is equivalent to their being no effective limit. (See RM, Hanisch 2007.) .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.
 - 
SimpleImageAccess
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
 other- the object to be copied.
 - 
SimpleImageAccess
public SimpleImageAccess(Capability superinstance, ImageServiceType imageServiceType, SkySize maxQueryRegionSize, SkySize maxImageExtent, Integer maxImageSize, Integer maxFileSize, Integer maxRecords, Query testQuery) Constructor from supertype instance.- Parameters:
 superinstance- The supertype.imageServiceType- The class of image service: Cutout, Mosaic, Atlas, Pointed .maxQueryRegionSize- The maximum image query region size, expressed in decimal degrees. Not providing this element or specifying a value of 360 degrees indicates that there is no limit and the entire data collection (entire sky) can be queried. Not providing a value is the prefered way to indicate that there is no limit.maxImageExtent- An upper bound on a region of the sky that can be covered by returned images. That is, no image returned by this service will cover more than this limit. Not providing this element or specifying a value of 360 degrees indicates that there is no fundamental limit to the region covered by a returned image. When the imageServiceType is “Cutout” or “Mosaic”, this represents the largest area that can be requested. In this case, the “no limit” value means that all-sky images can be requested. When the type is “Atlas” or “Pointed”, it should be a region that most closely encloses largest images in the archive, and the ”no limit” value means that the archive contains all-sky (or nearly so) images. Not providing a value is the prefered way to indicate that there is no limit.maxImageSize- A measure of the largest image the service can produce given as the maximum number of pixels along the first or second axes. Not providing a value indicates that there is no effective limit to the size of the images that can be returned. This is primarily relevant when the imageServiceType is “Cutout” or “Mosaic”, indicating the largest image that can be created. When the imageServiceType is “Atlas” or “Pointed”, this should be specified only when there are static images in the archive that can be searched for but not returned because they are too big. When a service is more fundementally limited by the total number of pixels in the image, this value should be set to the square-root of that number. This number will then represent a lower limit on the maximum length of a side.maxFileSize- The maximum image file size in bytes. Not providing a value indicates that there is no effective limit the size of files that can be returned. This is primarily relevant when the imageServiceType is “Cutout” or “Mosaic”, indicating the largest files that can be created. When the imageServiceType is “Atlas” or “Pointed”, this should be specified only when there are static images in the archive that can be searched for but not returned because they are too big.maxRecords- The largest number of records that the Image Query web method will return. Not providing this value means that there is no effective limit. This does not refer to the total number of images in the archive but rather maximum number of records the service is capable of returning. A limit that is greater than the number of images available in the archive is equivalent to their being no effective limit. (See RM, Hanisch 2007.) .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.
 - 
getImageServiceType
Returns imageServiceType Attribute.- Returns:
 - imageServiceType Attribute
 
 - 
setImageServiceType
Set imageServiceType Attribute.- Parameters:
 pImageServiceType- value to set
 - 
withImageServiceType
fluent setter for imageServiceType Attribute.- Parameters:
 pImageServiceType- value to set- Returns:
 - SimpleImageAccess
 
 - 
getMaxQueryRegionSize
Returns maxQueryRegionSize Attribute.- Returns:
 - maxQueryRegionSize Attribute
 
 - 
setMaxQueryRegionSize
Set maxQueryRegionSize Attribute.- Parameters:
 pMaxQueryRegionSize- value to set
 - 
withMaxQueryRegionSize
fluent setter for maxQueryRegionSize Attribute.- Parameters:
 pMaxQueryRegionSize- value to set- Returns:
 - SimpleImageAccess
 
 - 
getMaxImageExtent
Returns maxImageExtent Attribute.- Returns:
 - maxImageExtent Attribute
 
 - 
setMaxImageExtent
Set maxImageExtent Attribute.- Parameters:
 pMaxImageExtent- value to set
 - 
withMaxImageExtent
fluent setter for maxImageExtent Attribute.- Parameters:
 pMaxImageExtent- value to set- Returns:
 - SimpleImageAccess
 
 - 
getMaxImageSize
Returns maxImageSize Attribute.- Returns:
 - maxImageSize Attribute
 
 - 
setMaxImageSize
Set maxImageSize Attribute.- Parameters:
 pMaxImageSize- value to set
 - 
withMaxImageSize
fluent setter for maxImageSize Attribute.- Parameters:
 pMaxImageSize- value to set- Returns:
 - SimpleImageAccess
 
 - 
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:
 - SimpleImageAccess
 
 - 
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:
 - SimpleImageAccess
 
 - 
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:
 - SimpleImageAccess
 
 - 
createSimpleImageAccess
public static SimpleImageAccess createSimpleImageAccess(Consumer<SimpleImageAccess.SimpleImageAccessBuilder> f) create a SimpleImageAccess 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
 
 -