Package org.ivoa.dm.tool
Class Discovery
java.lang.Object
org.ivoa.dm.tool.Discovery
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="tool:Discovery",
role=objectType)
public class Discovery
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Discovery metadata mapped to OCI labels/annotations.
objectType: Discovery
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Discovery, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyReferenceObject authors : Responsible people/organization.protected DateMetadata processing timestamp (UTC).protected BooleanDeprecation status; default false.protected StringHuman-readable description (1..255 chars).protected StringDocumentation URL .Scientific domains; default astronomy; min_length=1.protected StringHuman-readable title (schema field: title).protected BooleanWhether this is a certified base image that should be used as a parent image for derived images.Discovery/search keywords..protected StringSPDX license expression.protected StringSource control revision; default unknown.protected StringSource code URL.Scientific software packages included.protected StringProject URL .protected StringPackaged software version. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new DiscoveryDiscovery(String imageTitle, String description, String source, String url, String documentation, String version, String revision, Date created, List<Author> authors, String licenses, List<String> keywords, List<String> domain, List<String> kind, List<String> tools, Boolean isBase, Boolean deprecated) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic Discoverycreate a Discovery in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns authors ReferenceReturns created Attribute.Returns deprecated Attribute.Returns description Attribute.Returns documentation Attribute.Returns domain Attribute.getId()Returns imageTitle Attribute.Returns isBase Attribute.Returns keywords Attribute.getKind()Returns kind Attribute.Returns licenses Attribute.Returns revision Attribute.Returns source Attribute.getTools()Returns tools Attribute.getUrl()Returns url Attribute.Returns version Attribute.voidsetAuthors(List<Author> pAuthors) Defines authors ReferencevoidsetCreated(Date pCreated) Set created Attribute.voidsetDeprecated(Boolean pDeprecated) Set deprecated Attribute.voidsetDescription(String pDescription) Set description Attribute.voidsetDocumentation(String pDocumentation) Set documentation Attribute.voidSet domain Attribute.voidsetImageTitle(String pImageTitle) Set imageTitle Attribute.voidSet isBase Attribute.voidsetKeywords(List<String> pKeywords) Set keywords Attribute.voidSet kind Attribute.voidsetLicenses(String pLicenses) Set licenses Attribute.voidsetRevision(String pRevision) Set revision Attribute.voidSet source Attribute.voidSet tools Attribute.voidSet url Attribute.voidsetVersion(String pVersion) Set version Attribute.voidupdateUsing(Discovery other) Update this object with the content of the given object.withCreated(Date pCreated) fluent setter for created Attribute.withDeprecated(Boolean pDeprecated) fluent setter for deprecated Attribute.withDescription(String pDescription) fluent setter for description Attribute.withDocumentation(String pDocumentation) fluent setter for documentation Attribute.withDomain(List<String> pDomain) fluent setter for domain Attribute.withImageTitle(String pImageTitle) fluent setter for imageTitle Attribute.withIsBase(Boolean pIsBase) fluent setter for isBase Attribute.withKeywords(List<String> pKeywords) fluent setter for keywords Attribute.fluent setter for kind Attribute.withLicenses(String pLicenses) fluent setter for licenses Attribute.withRevision(String pRevision) fluent setter for revision Attribute.withSource(String pSource) fluent setter for source Attribute.fluent setter for tools Attribute.fluent setter for url Attribute.withVersion(String pVersion) fluent setter for version Attribute.
-
Field Details
-
_id
inserted database key -
imageTitle
@VoDml(id="tool:Discovery.imageTitle", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String imageTitleHuman-readable title (schema field: title). : Attribute imageTitle type ivoa:string : multiplicity 1 -
description
@VoDml(id="tool:Discovery.description", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String descriptionHuman-readable description (1..255 chars). : Attribute description type ivoa:string : multiplicity 1 -
source
@VoDml(id="tool:Discovery.source", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String sourceSource code URL. : Attribute source type ivoa:anyURI : multiplicity 1 -
url
@VoDml(id="tool:Discovery.url", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String urlProject URL . : Attribute url type ivoa:anyURI : multiplicity 0..1 -
documentation
@VoDml(id="tool:Discovery.documentation", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String documentationDocumentation URL . : Attribute documentation type ivoa:anyURI : multiplicity 0..1 -
version
@VoDml(id="tool:Discovery.version", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String versionPackaged software version. : Attribute version type ivoa:string : multiplicity 1 -
revision
@VoDml(id="tool:Discovery.revision", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String revisionSource control revision; default unknown. : Attribute revision type ivoa:string : multiplicity 0..1 -
created
@VoDml(id="tool:Discovery.created", role=attribute, type="ivoa:datetime", typeRole=primitiveType) protected Date createdMetadata processing timestamp (UTC). : Attribute created type ivoa:datetime : multiplicity 0..1 -
authors
@VoDml(id="tool:Discovery.authors", role=reference, type="tool:Author", typeRole=objectType) protected List<Author> authorsReferenceObject authors : Responsible people/organization. ( Multiplicity : 1..* ) -
licenses
@VoDml(id="tool:Discovery.licenses", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String licensesSPDX license expression. : Attribute licenses type ivoa:string : multiplicity 1 -
keywords
@VoDml(id="tool:Discovery.keywords", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> keywordsDiscovery/search keywords. : Attribute keywords type ivoa:string : multiplicity 0..* -
domain
@VoDml(id="tool:Discovery.domain", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> domainScientific domains; default astronomy; min_length=1. : Attribute domain type ivoa:string : multiplicity 1..* -
kind
@VoDml(id="tool:Discovery.kind", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> kind. : Attribute kind type ivoa:string : multiplicity 1..* -
tools
@VoDml(id="tool:Discovery.tools", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> toolsScientific software packages included. : Attribute tools type ivoa:string : multiplicity 0..* -
isBase
@VoDml(id="tool:Discovery.isBase", role=attribute, type="ivoa:boolean", typeRole=primitiveType) protected Boolean isBaseWhether this is a certified base image that should be used as a parent image for derived images. : Attribute isBase type ivoa:boolean : multiplicity 1 -
deprecated
@VoDml(id="tool:Discovery.deprecated", role=attribute, type="ivoa:boolean", typeRole=primitiveType) protected Boolean deprecatedDeprecation status; default false. : Attribute deprecated type ivoa:boolean : multiplicity 0..1
-
-
Constructor Details
-
Discovery
public Discovery()Creates a new Discovery -
Discovery
public Discovery(String imageTitle, String description, String source, String url, String documentation, String version, String revision, Date created, List<Author> authors, String licenses, List<String> keywords, List<String> domain, List<String> kind, List<String> tools, Boolean isBase, Boolean deprecated) full parameter constructor.- Parameters:
imageTitle- Human-readable title (schema field: title).description- Human-readable description (1..255 chars).source- Source code URL.url- Project URL .documentation- Documentation URL .version- Packaged software version.revision- Source control revision; default unknown.created- Metadata processing timestamp (UTC).authors- Responsible people/organization.licenses- SPDX license expression.keywords- Discovery/search keywords.domain- Scientific domains; default astronomy; min_length=1.kind- .tools- Scientific software packages included.isBase- Whether this is a certified base image that should be used as a parent image for derived images.deprecated- Deprecation status; default false.
-
Discovery
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.
-
getImageTitle
Returns imageTitle Attribute.- Returns:
- imageTitle Attribute
-
setImageTitle
Set imageTitle Attribute.- Parameters:
pImageTitle- value to set
-
withImageTitle
fluent setter for imageTitle Attribute.- Parameters:
pImageTitle- value to set- Returns:
- Discovery
-
getDescription
Returns description Attribute.- Returns:
- description Attribute
-
setDescription
Set description Attribute.- Parameters:
pDescription- value to set
-
withDescription
fluent setter for description Attribute.- Parameters:
pDescription- value to set- Returns:
- Discovery
-
getSource
Returns source Attribute.- Returns:
- source Attribute
-
setSource
Set source Attribute.- Parameters:
pSource- value to set
-
withSource
fluent setter for source Attribute.- Parameters:
pSource- value to set- Returns:
- Discovery
-
getUrl
Returns url Attribute.- Returns:
- url Attribute
-
setUrl
Set url Attribute.- Parameters:
pUrl- value to set
-
withUrl
fluent setter for url Attribute.- Parameters:
pUrl- value to set- Returns:
- Discovery
-
getDocumentation
Returns documentation Attribute.- Returns:
- documentation Attribute
-
setDocumentation
Set documentation Attribute.- Parameters:
pDocumentation- value to set
-
withDocumentation
fluent setter for documentation Attribute.- Parameters:
pDocumentation- value to set- Returns:
- Discovery
-
getVersion
Returns version Attribute.- Returns:
- version Attribute
-
setVersion
Set version Attribute.- Parameters:
pVersion- value to set
-
withVersion
fluent setter for version Attribute.- Parameters:
pVersion- value to set- Returns:
- Discovery
-
getRevision
Returns revision Attribute.- Returns:
- revision Attribute
-
setRevision
Set revision Attribute.- Parameters:
pRevision- value to set
-
withRevision
fluent setter for revision Attribute.- Parameters:
pRevision- value to set- Returns:
- Discovery
-
getCreated
Returns created Attribute.- Returns:
- created Attribute
-
setCreated
Set created Attribute.- Parameters:
pCreated- value to set
-
withCreated
fluent setter for created Attribute.- Parameters:
pCreated- value to set- Returns:
- Discovery
-
getAuthors
Returns authors Reference- Returns:
- authors Reference
-
setAuthors
Defines authors Reference- Parameters:
pAuthors- references to set
-
getLicenses
Returns licenses Attribute.- Returns:
- licenses Attribute
-
setLicenses
Set licenses Attribute.- Parameters:
pLicenses- value to set
-
withLicenses
fluent setter for licenses Attribute.- Parameters:
pLicenses- value to set- Returns:
- Discovery
-
getKeywords
Returns keywords Attribute.- Returns:
- keywords Attribute
-
setKeywords
Set keywords Attribute.- Parameters:
pKeywords- value to set
-
withKeywords
fluent setter for keywords Attribute.- Parameters:
pKeywords- value to set- Returns:
- Discovery
-
getDomain
Returns domain Attribute.- Returns:
- domain Attribute
-
setDomain
Set domain Attribute.- Parameters:
pDomain- value to set
-
withDomain
fluent setter for domain Attribute.- Parameters:
pDomain- value to set- Returns:
- Discovery
-
getKind
Returns kind Attribute.- Returns:
- kind Attribute
-
setKind
Set kind Attribute.- Parameters:
pKind- value to set
-
withKind
fluent setter for kind Attribute.- Parameters:
pKind- value to set- Returns:
- Discovery
-
getTools
Returns tools Attribute.- Returns:
- tools Attribute
-
setTools
Set tools Attribute.- Parameters:
pTools- value to set
-
withTools
fluent setter for tools Attribute.- Parameters:
pTools- value to set- Returns:
- Discovery
-
getIsBase
Returns isBase Attribute.- Returns:
- isBase Attribute
-
setIsBase
Set isBase Attribute.- Parameters:
pIsBase- value to set
-
withIsBase
fluent setter for isBase Attribute.- Parameters:
pIsBase- value to set- Returns:
- Discovery
-
getDeprecated
Returns deprecated Attribute.- Returns:
- deprecated Attribute
-
setDeprecated
Set deprecated Attribute.- Parameters:
pDeprecated- value to set
-
withDeprecated
fluent setter for deprecated Attribute.- Parameters:
pDeprecated- value to set- Returns:
- Discovery
-
createDiscovery
create a Discovery 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>
-