Package uk.ac.starlink.registry
Class BasicResource
java.lang.Object
uk.ac.starlink.registry.BasicResource
Basic details of a registry resource record.
This is an intentionally rather flattened and truncated version
of the information which can be stored in a registry record
(at time of writing VOResource 1.0).
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns an array of capability interfaces for this resource.Returns the contact information for this resource.Returns the resource unique identifier.Returns the resource publisher.Returns the reference URL for this resource.Returns the resource short name.String[]
Returns an array of subject strings for this resource.getTitle()
Returns the resource title.void
setCapabilities
(BasicCapability[] capabilities) Sets the capability interface array.void
setContact
(String contact) Sets the contact information.void
setIdentifier
(String identifier) Sets the resource unique identifier.void
setPublisher
(String publisher) Sets the resource publisher.void
setReferenceUrl
(String referenceUrl) Sets the reference URL.void
setShortName
(String shortName) Sets the resource short name.void
setSubjects
(String[] subjects) Sets the subject strings.void
Sets the resource title.
-
Constructor Details
-
BasicResource
public BasicResource()
-
-
Method Details
-
setTitle
Sets the resource title.- Parameters:
title
- title
-
getTitle
Returns the resource title.- Returns:
- title
-
setShortName
Sets the resource short name.- Parameters:
shortName
- short name
-
getShortName
Returns the resource short name.- Returns:
- short name
-
setIdentifier
Sets the resource unique identifier.- Parameters:
identifier
- identifier URI
-
getIdentifier
Returns the resource unique identifier. This is a URI of the formivo://authority/path
.- Returns:
- identifier
-
setPublisher
Sets the resource publisher.- Parameters:
publisher
- publisher
-
getPublisher
Returns the resource publisher.- Returns:
- publisher
-
setContact
Sets the contact information.- Parameters:
contact
- contact string
-
getContact
Returns the contact information for this resource.- Returns:
- contact info
-
setSubjects
Sets the subject strings.- Parameters:
subjects
- array of subject strings
-
getSubjects
Returns an array of subject strings for this resource.- Returns:
- subject array
-
setReferenceUrl
Sets the reference URL.- Parameters:
referenceUrl
- reference URL
-
getReferenceUrl
Returns the reference URL for this resource.- Returns:
- reference URL
-
setCapabilities
Sets the capability interface array.- Parameters:
capabilities
- capability array
-
getCapabilities
Returns an array of capability interfaces for this resource. Very often there is only one (or zero) of these per resource, but there can be many.- Returns:
- capabilities
-