Package org.ivoa.dm.registry.tap
Class OutputFormat
java.lang.Object
org.ivoa.dm.registry.tap.OutputFormat
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="TAPRegExt:OutputFormat",
role=objectType)
public class OutputFormat
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
An output format supported by the service.
All TAP services must support VOTable output, preserving
the MIME type of the input. Other output formats are
optional.
The primary identifier for an output format is the MIME
type. If you want to register an output format, you must
use a MIME type (or make one up using the x- syntax), although
the concrete MIME syntax is not enforced by the schema.
For more detailed specification, an IVORN may be used.
objectType: OutputFormat
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for OutputFormat, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new OutputFormatOutputFormat(String mime, List<String> alias, String ivoid) full parameter constructor.OutputFormat(OutputFormat other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic OutputFormatcreate a OutputFormat in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetAlias()Returns alias Attribute.getId()getIvoid()Returns ivoid Attribute.getMime()Returns mime Attribute.voidSet alias Attribute.voidSet ivoid Attribute.voidSet mime Attribute.voidupdateUsing(OutputFormat other) Update this object with the content of the given object.fluent setter for alias Attribute.fluent setter for ivoid Attribute.fluent setter for mime Attribute.
-
Field Details
-
_id
inserted database key -
mime
@VoDml(id="TAPRegExt:OutputFormat.mime", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String mimeThe MIME type of this format. The format of this string is specified by RFC 2045. The service has to accept this string as a value of the FORMAT parameter. : Attribute mime : multiplicity 1 -
alias
@VoDml(id="TAPRegExt:OutputFormat.alias", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> aliasOther values of FORMAT ('shorthands') that make the service return documents with the MIME type. : Attribute alias : multiplicity 0..* -
ivoid
@VoDml(id="TAPRegExt:OutputFormat.ivoid", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String ivoidAn optional IVORN of the output format. When the MIME type does not uniquely define the format (or a generic MIME like application/octet-stream or text/plain is given), the IVORN can point to a key or StandardsRegExt document defining the format more precisely. To see values defined in TAPRegExt, retrieve the ivo://ivoa.net/std/TAPRegExt resource record and look for keys starting with 'output-'. : Attribute ivoid : multiplicity 1
-
-
Constructor Details
-
OutputFormat
public OutputFormat()Creates a new OutputFormat -
OutputFormat
full parameter constructor.- Parameters:
mime- The MIME type of this format. The format of this string is specified by RFC 2045. The service has to accept this string as a value of the FORMAT parameter.alias- Other values of FORMAT ('shorthands') that make the service return documents with the MIME type.ivoid- An optional IVORN of the output format. When the MIME type does not uniquely define the format (or a generic MIME like application/octet-stream or text/plain is given), the IVORN can point to a key or StandardsRegExt document defining the format more precisely. To see values defined in TAPRegExt, retrieve the ivo://ivoa.net/std/TAPRegExt resource record and look for keys starting with 'output-'.
-
OutputFormat
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:
getIdin 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.
-
getMime
Returns mime Attribute.- Returns:
- mime Attribute
-
setMime
Set mime Attribute.- Parameters:
pMime- value to set
-
withMime
fluent setter for mime Attribute.- Parameters:
pMime- value to set- Returns:
- OutputFormat
-
getAlias
Returns alias Attribute.- Returns:
- alias Attribute
-
setAlias
Set alias Attribute.- Parameters:
pAlias- value to set
-
withAlias
fluent setter for alias Attribute.- Parameters:
pAlias- value to set- Returns:
- OutputFormat
-
getIvoid
Returns ivoid Attribute.- Returns:
- ivoid Attribute
-
setIvoid
Set ivoid Attribute.- Parameters:
pIvoid- value to set
-
withIvoid
fluent setter for ivoid Attribute.- Parameters:
pIvoid- value to set- Returns:
- OutputFormat
-
createOutputFormat
create a OutputFormat 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
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-