Package uk.ac.starlink.vo
Class RegRole
java.lang.Object
uk.ac.starlink.vo.RegRole
Characterises a role item from the registry resource model.
This corresponds to a row of the RegTAP rr.res_role table.
- Since:
- 5 Jun 2015
- Author:
- Mark Taylor
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String
Returns the role played by this entity; should be one of "contact", "publisher", "creator".abstract String
getEmail()
Returns the email address associated with the person or organisation.abstract String
getLogo()
Returns the URL of a logo associated with this entity.abstract String
getName()
Returns the real-world name or title of the person or organisation.static RegRole[]
readRoles
(TapService regtapService, String ivoid, uk.ac.starlink.util.ContentCoding coding) Performs a RegTAP query to return all the role records corresponding to a given registry resource (ivoid).
-
Constructor Details
-
RegRole
public RegRole()
-
-
Method Details
-
getBaseRole
Returns the role played by this entity; should be one of "contact", "publisher", "creator".- Returns:
- role type
-
getName
Returns the real-world name or title of the person or organisation.- Returns:
- name
-
getEmail
Returns the email address associated with the person or organisation.- Returns:
-
getLogo
Returns the URL of a logo associated with this entity.- Returns:
- logo URL
-
readRoles
public static RegRole[] readRoles(TapService regtapService, String ivoid, uk.ac.starlink.util.ContentCoding coding) throws IOException Performs a RegTAP query to return all the role records corresponding to a given registry resource (ivoid).- Parameters:
regtapService
- RegTAP service descriptionivoid
- identifier for resourcecoding
- configures HTTP compression- Returns:
- role records for resource
- Throws:
IOException
-