Package uk.ac.starlink.registry
Class BasicResource
- java.lang.Object
-
- uk.ac.starlink.registry.BasicResource
-
public class BasicResource extends java.lang.Object
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 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.String
getContact()
Returns the contact information for this resource.java.lang.String
getIdentifier()
Returns the resource unique identifier.java.lang.String
getPublisher()
Returns the resource publisher.java.lang.String
getReferenceUrl()
Returns the reference URL for this resource.java.lang.String
getShortName()
Returns the resource short name.java.lang.String[]
getSubjects()
Returns an array of subject strings for this resource.java.lang.String
getTitle()
Returns the resource title.void
setCapabilities(BasicCapability[] capabilities)
Sets the capability interface array.void
setContact(java.lang.String contact)
Sets the contact information.void
setIdentifier(java.lang.String identifier)
Sets the resource unique identifier.void
setPublisher(java.lang.String publisher)
Sets the resource publisher.void
setReferenceUrl(java.lang.String referenceUrl)
Sets the reference URL.void
setShortName(java.lang.String shortName)
Sets the resource short name.void
setSubjects(java.lang.String[] subjects)
Sets the subject strings.void
setTitle(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
-
-