Package org.ivoa.dm.registry.cone
Class ConeSearch
java.lang.Object
org.ivoa.dm.registry.voresource.Capability
org.ivoa.dm.registry.cone.ConeSearch
- All Implemented Interfaces:
 org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="ConeSearch:ConeSearch",
       role=objectType)
public class ConeSearch
extends Capability
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
The capabilities of a Cone Search implementation.  
 objectType:  ConeSearch
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for ConeSearch, 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 IntegerThe largest number of records that the service will return.protected DoubleThe largest search radius, in degrees, that will be accepted by the service without returning an error condition.protected QueryA query that will result in at least on matched record that can be used to test the service.protected BooleanTrue if the service supports the VERB keyword; false, otherwise.Fields inherited from class org.ivoa.dm.registry.voresource.Capability
_id, description, interface_, standardID, validationLevel - 
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ConeSearchConeSearch(Double maxSR, Integer maxRecords, Boolean verbosity, Query testQuery, List<Validation> validationLevel, String description, List<Interface> interface_, String standardID) full parameter constructor.ConeSearch(ConeSearch other) Copy Constructor.ConeSearch(Capability superinstance, Double maxSR, Integer maxRecords, Boolean verbosity, Query testQuery) Constructor from supertype instance. - 
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static ConeSearchcreate a ConeSearch in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns maxRecords Attribute.getMaxSR()Returns maxSR Attribute.Returns testQuery Attribute.Returns verbosity Attribute.voidsetMaxRecords(Integer pMaxRecords) Set maxRecords Attribute.voidSet maxSR Attribute.voidsetTestQuery(Query pTestQuery) Set testQuery Attribute.voidsetVerbosity(Boolean pVerbosity) Set verbosity Attribute.voidupdateUsing(ConeSearch other) Update this object with the content of the given object.withMaxRecords(Integer pMaxRecords) fluent setter for maxRecords Attribute.fluent setter for maxSR Attribute.withTestQuery(Query pTestQuery) fluent setter for testQuery Attribute.withVerbosity(Boolean pVerbosity) fluent setter for verbosity 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
- 
maxSR
@VoDml(id="ConeSearch:ConeSearch.maxSR", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double maxSRThe 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 maxSR : multiplicity 0..1 - 
maxRecords
@VoDml(id="ConeSearch:ConeSearch.maxRecords", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer maxRecordsThe largest number of records that the service will return. Not providing this value means that there is no effective limit. This does not refer to the total number of records in the catalog but rather maximum number of records the service is capable of returning. A limit that is greater than the number of records available in the archive is equivalent to their being no effective limit. (See RM, Hanisch 2007.). : Attribute maxRecords : multiplicity 0..1 - 
verbosity
@VoDml(id="ConeSearch:ConeSearch.verbosity", role=attribute, type="ivoa:boolean", typeRole=primitiveType) protected Boolean verbosityTrue if the service supports the VERB keyword; false, otherwise. : Attribute verbosity : multiplicity 1 - 
testQuery
@VoDml(id="ConeSearch:ConeSearch.testQuery", role=composition, type="ConeSearch:Query", typeRole=objectType) protected Query testQueryA query that will result in at least on matched record that can be used to test the service. composition testQuery : ( Multiplicity : 0..1 ) 
 - 
 - 
Constructor Details
- 
ConeSearch
public ConeSearch()Creates a new ConeSearch - 
ConeSearch
public ConeSearch(Double maxSR, Integer maxRecords, Boolean verbosity, Query testQuery, List<Validation> validationLevel, String description, List<Interface> interface_, String standardID) full parameter constructor.- Parameters:
 maxSR- 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 largest number of records that the service will return. Not providing this value means that there is no effective limit. This does not refer to the total number of records in the catalog but rather maximum number of records the service is capable of returning. A limit that is greater than the number of records available in the archive is equivalent to their being no effective limit. (See RM, Hanisch 2007.).verbosity- True if the service supports the VERB keyword; false, otherwise.testQuery- A query that will result in at least on matched record that 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.
 - 
ConeSearch
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
 other- the object to be copied.
 - 
ConeSearch
public ConeSearch(Capability superinstance, Double maxSR, Integer maxRecords, Boolean verbosity, Query testQuery) Constructor from supertype instance.- Parameters:
 superinstance- The supertype.maxSR- 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 largest number of records that the service will return. Not providing this value means that there is no effective limit. This does not refer to the total number of records in the catalog but rather maximum number of records the service is capable of returning. A limit that is greater than the number of records available in the archive is equivalent to their being no effective limit. (See RM, Hanisch 2007.).verbosity- True if the service supports the VERB keyword; false, otherwise.testQuery- A query that will result in at least on matched record that 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.
 - 
getMaxSR
Returns maxSR Attribute.- Returns:
 - maxSR Attribute
 
 - 
setMaxSR
Set maxSR Attribute.- Parameters:
 pMaxSR- value to set
 - 
withMaxSR
fluent setter for maxSR Attribute.- Parameters:
 pMaxSR- value to set- Returns:
 - ConeSearch
 
 - 
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:
 - ConeSearch
 
 - 
getVerbosity
Returns verbosity Attribute.- Returns:
 - verbosity Attribute
 
 - 
setVerbosity
Set verbosity Attribute.- Parameters:
 pVerbosity- value to set
 - 
withVerbosity
fluent setter for verbosity Attribute.- Parameters:
 pVerbosity- value to set- Returns:
 - ConeSearch
 
 - 
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:
 - ConeSearch
 
 - 
createConeSearch
create a ConeSearch 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
 
 -