Package org.ivoa.dm.regtap
Class Interface
java.lang.Object
org.ivoa.dm.regtap.Interface
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="RegTAP:Interface",
role=objectType)
public class Interface
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Information on access modes of a capability.
objectType: Interface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder class for Interface, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Long
inserted database keyprotected String
The URL at which the interface is found.protected Integer
A flag for whether an interface is available for anonymous use (=0) or only authenticated clients are served (=1).protected Integer
The index of the parent capability.protected Integer
An arbitrary identifier for the interfaces of a resource.protected String
An identifier for the role the interface plays in the particular capability.protected String
The type of the interface (vr:webbrowser, vs:paramhttp, etc).protected String
Secondary access URLs of this interface, separated by hash characters.protected String
Hash-joined list of expected HTTP method (get or post) supported by the service.protected String
The MIME type of a document returned in the HTTP response.protected String
The version of a standard interface specification that this interface complies with.protected String
A flag indicating whether this should be interpreted as a base URL ('base'), a full URL ('full'), or a URL to a directory that will produce a listing of files ('dir').protected String
The location of the WSDL that describes this Web Service. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new InterfaceInterface
(Integer cap_index, Integer intf_index, String intf_type, String intf_role, String std_version, String query_type, String result_type, String wsdl_url, String url_use, String access_url, String mirror_url, Integer authenticated_only) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic Interface
create a Interface in functional builder style.void
delete
(jakarta.persistence.EntityManager em) void
Returns access_url Attribute.Returns authenticated_only Attribute.Returns cap_index Attribute.getId()
Returns intf_index Attribute.Returns intf_role Attribute.Returns intf_type Attribute.Returns mirror_url Attribute.Returns query_type Attribute.Returns result_type Attribute.Returns std_version Attribute.Returns url_use Attribute.Returns wsdl_url Attribute.void
setAccess_url
(String pAccess_url) Set access_url Attribute.void
setAuthenticated_only
(Integer pAuthenticated_only) Set authenticated_only Attribute.void
setCap_index
(Integer pCap_index) Set cap_index Attribute.void
setIntf_index
(Integer pIntf_index) Set intf_index Attribute.void
setIntf_role
(String pIntf_role) Set intf_role Attribute.void
setIntf_type
(String pIntf_type) Set intf_type Attribute.void
setMirror_url
(String pMirror_url) Set mirror_url Attribute.void
setQuery_type
(String pQuery_type) Set query_type Attribute.void
setResult_type
(String pResult_type) Set result_type Attribute.void
setStd_version
(String pStd_version) Set std_version Attribute.void
setUrl_use
(String pUrl_use) Set url_use Attribute.void
setWsdl_url
(String pWsdl_url) Set wsdl_url Attribute.void
updateUsing
(Interface other) Update this object with the content of the given object.withAccess_url
(String pAccess_url) fluent setter for access_url Attribute.withAuthenticated_only
(Integer pAuthenticated_only) fluent setter for authenticated_only Attribute.withCap_index
(Integer pCap_index) fluent setter for cap_index Attribute.withIntf_index
(Integer pIntf_index) fluent setter for intf_index Attribute.withIntf_role
(String pIntf_role) fluent setter for intf_role Attribute.withIntf_type
(String pIntf_type) fluent setter for intf_type Attribute.withMirror_url
(String pMirror_url) fluent setter for mirror_url Attribute.withQuery_type
(String pQuery_type) fluent setter for query_type Attribute.withResult_type
(String pResult_type) fluent setter for result_type Attribute.withStd_version
(String pStd_version) fluent setter for std_version Attribute.withUrl_use
(String pUrl_use) fluent setter for url_use Attribute.withWsdl_url
(String pWsdl_url) fluent setter for wsdl_url Attribute.
-
Field Details
-
_id
inserted database key -
cap_index
@VoDml(id="RegTAP:Interface.cap_index", role=attribute, type="ivoa:nonnegativeInteger", typeRole=primitiveType) protected Integer cap_indexThe index of the parent capability. : Attribute cap_index : multiplicity 1 -
intf_index
@VoDml(id="RegTAP:Interface.intf_index", role=attribute, type="ivoa:nonnegativeInteger", typeRole=primitiveType) protected Integer intf_indexAn arbitrary identifier for the interfaces of a resource. : Attribute intf_index : multiplicity 1 -
intf_type
@VoDml(id="RegTAP:Interface.intf_type", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String intf_typeThe type of the interface (vr:webbrowser, vs:paramhttp, etc). : Attribute intf_type : multiplicity 1 -
intf_role
@VoDml(id="RegTAP:Interface.intf_role", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String intf_roleAn identifier for the role the interface plays in the particular capability. If the value is equal to 'std' or begins with 'std:', then the interface refers to a standard interface defined by the standard referred to by the capability's standardID attribute. : Attribute intf_role : multiplicity 1 -
std_version
@VoDml(id="RegTAP:Interface.std_version", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String std_versionThe version of a standard interface specification that this interface complies with. When the interface is provided in the context of a Capability element, then the standard being refered to is the one identified by the Capability's standardID element. : Attribute std_version : multiplicity 1 -
query_type
@VoDml(id="RegTAP:Interface.query_type", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String query_typeHash-joined list of expected HTTP method (get or post) supported by the service. : Attribute query_type : multiplicity 1 -
result_type
@VoDml(id="RegTAP:Interface.result_type", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String result_typeThe MIME type of a document returned in the HTTP response. : Attribute result_type : multiplicity 1 -
wsdl_url
@VoDml(id="RegTAP:Interface.wsdl_url", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String wsdl_urlThe location of the WSDL that describes this Web Service. If NULL, the location can be assumed to be the accessURL with '?wsdl' appended. : Attribute wsdl_url : multiplicity 0..1 -
url_use
@VoDml(id="RegTAP:Interface.url_use", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String url_useA flag indicating whether this should be interpreted as a base URL ('base'), a full URL ('full'), or a URL to a directory that will produce a listing of files ('dir'). : Attribute url_use : multiplicity 1 -
access_url
@VoDml(id="RegTAP:Interface.access_url", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String access_urlThe URL at which the interface is found. : Attribute access_url : multiplicity 1 -
mirror_url
@VoDml(id="RegTAP:Interface.mirror_url", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String mirror_urlSecondary access URLs of this interface, separated by hash characters. : Attribute mirror_url : multiplicity 1 -
authenticated_only
@VoDml(id="RegTAP:Interface.authenticated_only", role=attribute, type="ivoa:integer", typeRole=primitiveType) protected Integer authenticated_onlyA flag for whether an interface is available for anonymous use (=0) or only authenticated clients are served (=1). : Attribute authenticated_only : multiplicity 1
-
-
Constructor Details
-
Interface
public Interface()Creates a new Interface -
Interface
public Interface(Integer cap_index, Integer intf_index, String intf_type, String intf_role, String std_version, String query_type, String result_type, String wsdl_url, String url_use, String access_url, String mirror_url, Integer authenticated_only) full parameter constructor.- Parameters:
cap_index
- The index of the parent capability.intf_index
- An arbitrary identifier for the interfaces of a resource.intf_type
- The type of the interface (vr:webbrowser, vs:paramhttp, etc).intf_role
- An identifier for the role the interface plays in the particular capability. If the value is equal to 'std' or begins with 'std:', then the interface refers to a standard interface defined by the standard referred to by the capability's standardID attribute.std_version
- The version of a standard interface specification that this interface complies with. When the interface is provided in the context of a Capability element, then the standard being refered to is the one identified by the Capability's standardID element.query_type
- Hash-joined list of expected HTTP method (get or post) supported by the service.result_type
- The MIME type of a document returned in the HTTP response.wsdl_url
- The location of the WSDL that describes this Web Service. If NULL, the location can be assumed to be the accessURL with '?wsdl' appended.url_use
- A flag indicating whether this should be interpreted as a base URL ('base'), a full URL ('full'), or a URL to a directory that will produce a listing of files ('dir').access_url
- The URL at which the interface is found.mirror_url
- Secondary access URLs of this interface, separated by hash characters.authenticated_only
- A flag for whether an interface is available for anonymous use (=0) or only authenticated clients are served (=1).
-
Interface
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:
getId
in 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.
-
getCap_index
Returns cap_index Attribute.- Returns:
- cap_index Attribute
-
setCap_index
Set cap_index Attribute.- Parameters:
pCap_index
- value to set
-
withCap_index
fluent setter for cap_index Attribute.- Parameters:
pCap_index
- value to set- Returns:
- Interface
-
getIntf_index
Returns intf_index Attribute.- Returns:
- intf_index Attribute
-
setIntf_index
Set intf_index Attribute.- Parameters:
pIntf_index
- value to set
-
withIntf_index
fluent setter for intf_index Attribute.- Parameters:
pIntf_index
- value to set- Returns:
- Interface
-
getIntf_type
Returns intf_type Attribute.- Returns:
- intf_type Attribute
-
setIntf_type
Set intf_type Attribute.- Parameters:
pIntf_type
- value to set
-
withIntf_type
fluent setter for intf_type Attribute.- Parameters:
pIntf_type
- value to set- Returns:
- Interface
-
getIntf_role
Returns intf_role Attribute.- Returns:
- intf_role Attribute
-
setIntf_role
Set intf_role Attribute.- Parameters:
pIntf_role
- value to set
-
withIntf_role
fluent setter for intf_role Attribute.- Parameters:
pIntf_role
- value to set- Returns:
- Interface
-
getStd_version
Returns std_version Attribute.- Returns:
- std_version Attribute
-
setStd_version
Set std_version Attribute.- Parameters:
pStd_version
- value to set
-
withStd_version
fluent setter for std_version Attribute.- Parameters:
pStd_version
- value to set- Returns:
- Interface
-
getQuery_type
Returns query_type Attribute.- Returns:
- query_type Attribute
-
setQuery_type
Set query_type Attribute.- Parameters:
pQuery_type
- value to set
-
withQuery_type
fluent setter for query_type Attribute.- Parameters:
pQuery_type
- value to set- Returns:
- Interface
-
getResult_type
Returns result_type Attribute.- Returns:
- result_type Attribute
-
setResult_type
Set result_type Attribute.- Parameters:
pResult_type
- value to set
-
withResult_type
fluent setter for result_type Attribute.- Parameters:
pResult_type
- value to set- Returns:
- Interface
-
getWsdl_url
Returns wsdl_url Attribute.- Returns:
- wsdl_url Attribute
-
setWsdl_url
Set wsdl_url Attribute.- Parameters:
pWsdl_url
- value to set
-
withWsdl_url
fluent setter for wsdl_url Attribute.- Parameters:
pWsdl_url
- value to set- Returns:
- Interface
-
getUrl_use
Returns url_use Attribute.- Returns:
- url_use Attribute
-
setUrl_use
Set url_use Attribute.- Parameters:
pUrl_use
- value to set
-
withUrl_use
fluent setter for url_use Attribute.- Parameters:
pUrl_use
- value to set- Returns:
- Interface
-
getAccess_url
Returns access_url Attribute.- Returns:
- access_url Attribute
-
setAccess_url
Set access_url Attribute.- Parameters:
pAccess_url
- value to set
-
withAccess_url
fluent setter for access_url Attribute.- Parameters:
pAccess_url
- value to set- Returns:
- Interface
-
getMirror_url
Returns mirror_url Attribute.- Returns:
- mirror_url Attribute
-
setMirror_url
Set mirror_url Attribute.- Parameters:
pMirror_url
- value to set
-
withMirror_url
fluent setter for mirror_url Attribute.- Parameters:
pMirror_url
- value to set- Returns:
- Interface
-
getAuthenticated_only
Returns authenticated_only Attribute.- Returns:
- authenticated_only Attribute
-
setAuthenticated_only
Set authenticated_only Attribute.- Parameters:
pAuthenticated_only
- value to set
-
withAuthenticated_only
fluent setter for authenticated_only Attribute.- Parameters:
pAuthenticated_only
- value to set- Returns:
- Interface
-
createInterface
create a Interface in functional builder style.- Parameters:
f
- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad()- Specified by:
forceLoad
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
delete
in interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-