Class Service
- All Implemented Interfaces:
org.jvnet.jaxb.lang.MergeFrom,org.jvnet.jaxb.lang.ToString
- Direct Known Subclasses:
DataResource,Registry
Java class for Service complex type
.The following schema fragment specifies the expected content contained within this class.
<complexType name="Service">
<complexContent>
<extension base="{http://www.ivoa.net/xml/VOResource/v1.0}Resource">
<sequence>
<element name="rights" type="{http://www.ivoa.net/xml/VOResource/v1.0}Rights" maxOccurs="unbounded" minOccurs="0"/>
<element name="capability" type="{http://www.ivoa.net/xml/VOResource/v1.0}Capability" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<Capability>A service can have many capabilities associated with it, each reflecting different aspects of the functionality it provides.Mainly for compatibility with DataCite, this element is repeatable.Fields inherited from class org.javastro.ivoa.entities.resource.Resource
altIdentifiers, content, created, curation, identifier, shortName, status, title, updated, validationLevels, version -
Constructor Summary
ConstructorsConstructorDescriptionService()Default no-arg constructorService(List<Validation> validationLevels, String title, String shortName, String identifier, List<String> altIdentifiers, Curation curation, Content content, LocalDateTime created, LocalDateTime updated, String status, String version, List<Rights> rights, List<Capability> capabilities) Fully-initialising value constructor -
Method Summary
Modifier and TypeMethodDescriptionappend(org.jvnet.jaxb.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb.lang.ToStringStrategy strategy) appendFields(org.jvnet.jaxb.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb.lang.ToStringStrategy strategy) booleanA service can have many capabilities associated with it, each reflecting different aspects of the functionality it provides.Mainly for compatibility with DataCite, this element is repeatable.inthashCode()voidvoidmergeFrom(org.jvnet.jaxb.locator.ObjectLocator leftLocator, org.jvnet.jaxb.locator.ObjectLocator rightLocator, Object left, Object right, org.jvnet.jaxb.lang.MergeStrategy strategy) toString()withAltIdentifiers(String... values) withAltIdentifiers(Collection<String> values) withCapabilities(Collection<Capability> values) withCapabilities(Capability... values) withContent(Content value) withCreated(LocalDateTime value) withCuration(Curation value) withIdentifier(String value) withRights(Collection<Rights> values) withRights(Rights... values) withShortName(String value) withStatus(String value) withUpdated(LocalDateTime value) withValidationLevels(Collection<Validation> values) withValidationLevels(Validation... values) withVersion(String value) Methods inherited from class org.javastro.ivoa.entities.resource.Resource
getAltIdentifiers, getContent, getCreated, getCuration, getIdentifier, getShortName, getStatus, getTitle, getUpdated, getValidationLevels, getVersion, setContent, setCreated, setCuration, setIdentifier, setShortName, setStatus, setTitle, setUpdated, setVersion
-
Field Details
-
rights
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") protected List<Rights> rightsMainly for compatibility with DataCite, this element is repeatable. Resource record authors are advised that within the Virtual Observatory clients will typically only display and/or use the rights element occurring first and ignore later elements. -
capabilities
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") protected List<Capability> capabilitiesA service can have many capabilities associated with it, each reflecting different aspects of the functionality it provides.
-
-
Constructor Details
-
Service
public Service()Default no-arg constructor -
Service
public Service(List<Validation> validationLevels, String title, String shortName, String identifier, List<String> altIdentifiers, Curation curation, Content content, LocalDateTime created, LocalDateTime updated, String status, String version, List<Rights> rights, List<Capability> capabilities) Fully-initialising value constructor
-
-
Method Details
-
getRights
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public List<Rights> getRights()Mainly for compatibility with DataCite, this element is repeatable. Resource record authors are advised that within the Virtual Observatory clients will typically only display and/or use the rights element occurring first and ignore later elements. Gets the value of the rights property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the rights property.For example, to add a new item, do as follows:
getRights().add(newItem);
Objects of the following type(s) are allowed in the list
Rights- Returns:
- The value of the rights property.
-
getCapabilities
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public List<Capability> getCapabilities()A service can have many capabilities associated with it, each reflecting different aspects of the functionality it provides. Gets the value of the capabilities property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the capabilities property.For example, to add a new item, do as follows:
getCapabilities().add(newItem);
Objects of the following type(s) are allowed in the list
Capability- Returns:
- The value of the capabilities property.
-
equals
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public boolean equals(Object object) -
hashCode
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public int hashCode() -
toString
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public String toString() -
append
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public StringBuilder append(org.jvnet.jaxb.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb.lang.ToStringStrategy strategy) -
appendFields
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public StringBuilder appendFields(org.jvnet.jaxb.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb.lang.ToStringStrategy strategy) - Specified by:
appendFieldsin interfaceorg.jvnet.jaxb.lang.ToString- Overrides:
appendFieldsin classResource
-
withRights
-
withRights
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Service withRights(Collection<Rights> values) -
withCapabilities
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Service withCapabilities(Capability... values) -
withCapabilities
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Service withCapabilities(Collection<Capability> values) -
withValidationLevels
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Service withValidationLevels(Validation... values) - Overrides:
withValidationLevelsin classResource
-
withValidationLevels
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Service withValidationLevels(Collection<Validation> values) - Overrides:
withValidationLevelsin classResource
-
withTitle
-
withShortName
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Service withShortName(String value) - Overrides:
withShortNamein classResource
-
withIdentifier
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Service withIdentifier(String value) - Overrides:
withIdentifierin classResource
-
withAltIdentifiers
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Service withAltIdentifiers(String... values) - Overrides:
withAltIdentifiersin classResource
-
withAltIdentifiers
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Service withAltIdentifiers(Collection<String> values) - Overrides:
withAltIdentifiersin classResource
-
withCuration
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Service withCuration(Curation value) - Overrides:
withCurationin classResource
-
withContent
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Service withContent(Content value) - Overrides:
withContentin classResource
-
withCreated
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Service withCreated(LocalDateTime value) - Overrides:
withCreatedin classResource
-
withUpdated
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Service withUpdated(LocalDateTime value) - Overrides:
withUpdatedin classResource
-
withStatus
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Service withStatus(String value) - Overrides:
withStatusin classResource
-
withVersion
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Service withVersion(String value) - Overrides:
withVersionin classResource
-
mergeFrom
-
mergeFrom
-
createNewInstance
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v4.0.4", date="2024-08-01T13:15:43+01:00") public Object createNewInstance()- Specified by:
createNewInstancein interfaceorg.jvnet.jaxb.lang.MergeFrom- Overrides:
createNewInstancein classResource
-