Package uk.ac.starlink.registry
Class BasicResource
- java.lang.Object
-
- uk.ac.starlink.registry.BasicResource
-
public class BasicResource extends java.lang.ObjectBasic 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 Constructor Description BasicResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BasicCapability[]getCapabilities()Returns an array of capability interfaces for this resource.java.lang.StringgetContact()Returns the contact information for this resource.java.lang.StringgetIdentifier()Returns the resource unique identifier.java.lang.StringgetPublisher()Returns the resource publisher.java.lang.StringgetReferenceUrl()Returns the reference URL for this resource.java.lang.StringgetShortName()Returns the resource short name.java.lang.String[]getSubjects()Returns an array of subject strings for this resource.java.lang.StringgetTitle()Returns the resource title.voidsetCapabilities(BasicCapability[] capabilities)Sets the capability interface array.voidsetContact(java.lang.String contact)Sets the contact information.voidsetIdentifier(java.lang.String identifier)Sets the resource unique identifier.voidsetPublisher(java.lang.String publisher)Sets the resource publisher.voidsetReferenceUrl(java.lang.String referenceUrl)Sets the reference URL.voidsetShortName(java.lang.String shortName)Sets the resource short name.voidsetSubjects(java.lang.String[] subjects)Sets the subject strings.voidsetTitle(java.lang.String title)Sets the resource title.
-
-
-
Method Detail
-
setTitle
public void setTitle(java.lang.String title)
Sets the resource title.- Parameters:
title- title
-
getTitle
public java.lang.String getTitle()
Returns the resource title.- Returns:
- title
-
setShortName
public void setShortName(java.lang.String shortName)
Sets the resource short name.- Parameters:
shortName- short name
-
getShortName
public java.lang.String getShortName()
Returns the resource short name.- Returns:
- short name
-
setIdentifier
public void setIdentifier(java.lang.String identifier)
Sets the resource unique identifier.- Parameters:
identifier- identifier URI
-
getIdentifier
public java.lang.String getIdentifier()
Returns the resource unique identifier. This is a URI of the formivo://authority/path.- Returns:
- identifier
-
setPublisher
public void setPublisher(java.lang.String publisher)
Sets the resource publisher.- Parameters:
publisher- publisher
-
getPublisher
public java.lang.String getPublisher()
Returns the resource publisher.- Returns:
- publisher
-
setContact
public void setContact(java.lang.String contact)
Sets the contact information.- Parameters:
contact- contact string
-
getContact
public java.lang.String getContact()
Returns the contact information for this resource.- Returns:
- contact info
-
setSubjects
public void setSubjects(java.lang.String[] subjects)
Sets the subject strings.- Parameters:
subjects- array of subject strings
-
getSubjects
public java.lang.String[] getSubjects()
Returns an array of subject strings for this resource.- Returns:
- subject array
-
setReferenceUrl
public void setReferenceUrl(java.lang.String referenceUrl)
Sets the reference URL.- Parameters:
referenceUrl- reference URL
-
getReferenceUrl
public java.lang.String getReferenceUrl()
Returns the reference URL for this resource.- Returns:
- reference URL
-
setCapabilities
public void setCapabilities(BasicCapability[] capabilities)
Sets the capability interface array.- Parameters:
capabilities- capability array
-
getCapabilities
public BasicCapability[] 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
-
-