Package org.ivoa.dm.registry.voresource
Class Content
java.lang.Object
org.ivoa.dm.registry.voresource.Content
- All Implemented Interfaces:
 org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="VOResource:Content",
       role=objectType)
public class Content
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Information regarding the general content of a resource .
 objectType:  Content
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Content, mainly for use in the functional builder pattern. - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyDescription of the content level or intended audience.protected StringAn account of the nature of the resource The description may include but is not limited to an abstract, table of contents, reference to a graphical representation of content or a free-text account of the content.protected StringURL pointing to a human-readable document describing this resource.protected List<Relationship>a description of a relationship to another resource.protected Sourcea bibliographic reference from which the present resource is derived or extracted.a topic, object type, or other descriptive keywords about the resource.Nature or genre of the content of the resource. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a org.ivoa.dm.registry.voresource.Relationship to the composition.static Contentcreate a Content in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns contentLevel Attribute.Returns description Attribute.getId()Returns referenceURL Attribute.Returns relationship composition as an immutable list.Returns source Attribute.Returns subject Attribute.getType()Returns type Attribute.voidRemove a org.ivoa.dm.registry.voresource.Relationship from the composition.voidupdate a org.ivoa.dm.registry.voresource.Relationship in the composition.voidsetContentLevel(List<String> pContentLevel) Set contentLevel Attribute.voidsetDescription(String pDescription) Set description Attribute.voidsetReferenceURL(String pReferenceURL) Set referenceURL Attribute.voidsetRelationship(List<Relationship> pRelationship) Defines whole relationship composition.voidSet source Attribute.voidsetSubject(List<String> pSubject) Set subject Attribute.voidSet type Attribute.voidupdateUsing(Content other) Update this object with the content of the given object.withContentLevel(List<String> pContentLevel) fluent setter for contentLevel Attribute.withDescription(String pDescription) fluent setter for description Attribute.withReferenceURL(String pReferenceURL) fluent setter for referenceURL Attribute.withSource(Source pSource) fluent setter for source Attribute.withSubject(List<String> pSubject) fluent setter for subject Attribute.fluent setter for type Attribute. 
- 
Field Details
- 
_id
inserted database key - 
subject
@VoDml(id="VOResource:Content.subject", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> subjecta topic, object type, or other descriptive keywords about the resource. Terms for Subject should be drawn from the Unified Astronomy Thesaurus (http://astrothesaurus.org). : Attribute subject : multiplicity 1..* - 
description
@VoDml(id="VOResource:Content.description", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String descriptionAn account of the nature of the resource The description may include but is not limited to an abstract, table of contents, reference to a graphical representation of content or a free-text account of the content. Note that description is xs:string-typed, which means that whitespace is considered significant. Clients should render empty lines as paragraph boundaries and ideally refrain from reflowing material that looks formatted (i.e., is broken to about 80-character lines). : Attribute description : multiplicity 1 - 
source
@VoDml(id="VOResource:Content.source", role=attribute, type="VOResource:Source", typeRole=dataType) protected Source sourcea bibliographic reference from which the present resource is derived or extracted. This is intended to point to an article in the published literature. An ADS Bibcode is recommended as a value when available. : Attribute source : multiplicity 0..1 - 
referenceURL
@VoDml(id="VOResource:Content.referenceURL", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String referenceURLURL pointing to a human-readable document describing this resource. : Attribute referenceURL : multiplicity 1 - 
type
@VoDml(id="VOResource:Content.type", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> typeNature or genre of the content of the resource. Values for type should be taken from the controlled vocabulary http://www.ivoa.net/rdf/voresource/content_type . : Attribute type : multiplicity 0..* - 
contentLevel
@VoDml(id="VOResource:Content.contentLevel", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> contentLevelDescription of the content level or intended audience. Values for contentLevel should be taken from the controlled vocabulary http://www.ivoa.net/rdf/voresource/content_level. : Attribute contentLevel : multiplicity 0..* - 
relationship
@VoDml(id="VOResource:Content.relationship", role=composition, type="VOResource:Relationship", typeRole=objectType) protected List<Relationship> relationshipa description of a relationship to another resource. composition relationship : ( Multiplicity : 0..* ) 
 - 
 - 
Constructor Details
- 
Content
public Content()Creates a new Content - 
Content
public Content(List<String> subject, String description, Source source, String referenceURL, List<String> type, List<String> contentLevel, List<Relationship> relationship) full parameter constructor.- Parameters:
 subject- a topic, object type, or other descriptive keywords about the resource. Terms for Subject should be drawn from the Unified Astronomy Thesaurus (http://astrothesaurus.org).description- An account of the nature of the resource The description may include but is not limited to an abstract, table of contents, reference to a graphical representation of content or a free-text account of the content. Note that description is xs:string-typed, which means that whitespace is considered significant. Clients should render empty lines as paragraph boundaries and ideally refrain from reflowing material that looks formatted (i.e., is broken to about 80-character lines).source- a bibliographic reference from which the present resource is derived or extracted. This is intended to point to an article in the published literature. An ADS Bibcode is recommended as a value when available.referenceURL- URL pointing to a human-readable document describing this resource.type- Nature or genre of the content of the resource. Values for type should be taken from the controlled vocabulary http://www.ivoa.net/rdf/voresource/content_type .contentLevel- Description of the content level or intended audience. Values for contentLevel should be taken from the controlled vocabulary http://www.ivoa.net/rdf/voresource/content_level.relationship- a description of a relationship to another resource.
 - 
Content
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.
 - 
getSubject
Returns subject Attribute.- Returns:
 - subject Attribute
 
 - 
setSubject
Set subject Attribute.- Parameters:
 pSubject- value to set
 - 
withSubject
fluent setter for subject Attribute.- Parameters:
 pSubject- value to set- Returns:
 - Content
 
 - 
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:
 - Content
 
 - 
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:
 - Content
 
 - 
getReferenceURL
Returns referenceURL Attribute.- Returns:
 - referenceURL Attribute
 
 - 
setReferenceURL
Set referenceURL Attribute.- Parameters:
 pReferenceURL- value to set
 - 
withReferenceURL
fluent setter for referenceURL Attribute.- Parameters:
 pReferenceURL- value to set- Returns:
 - Content
 
 - 
getType
Returns type Attribute.- Returns:
 - type Attribute
 
 - 
setType
Set type Attribute.- Parameters:
 pType- value to set
 - 
withType
fluent setter for type Attribute.- Parameters:
 pType- value to set- Returns:
 - Content
 
 - 
getContentLevel
Returns contentLevel Attribute.- Returns:
 - contentLevel Attribute
 
 - 
setContentLevel
Set contentLevel Attribute.- Parameters:
 pContentLevel- value to set
 - 
withContentLevel
fluent setter for contentLevel Attribute.- Parameters:
 pContentLevel- value to set- Returns:
 - Content
 
 - 
getRelationship
Returns relationship composition as an immutable list.- Returns:
 - relationship composition.
 
 - 
setRelationship
Defines whole relationship composition.- Parameters:
 pRelationship- composition to set.
 - 
addToRelationship
Add a org.ivoa.dm.registry.voresource.Relationship to the composition.- Parameters:
 p- org.ivoa.dm.registry.voresource.Relationship to add
 - 
removeFromRelationship
Remove a org.ivoa.dm.registry.voresource.Relationship from the composition.- Parameters:
 p- org.ivoa.dm.registry.voresource.Relationship to remove
 - 
replaceInRelationship
update a org.ivoa.dm.registry.voresource.Relationship in the composition.- Parameters:
 _p- org.ivoa.dm.registry.voresource.Relationship to update the match is done via the database key
 - 
createContent
create a Content 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>
 
 -