net.ivoa.xml.voresource.v1
Class Resource

java.lang.Object
  extended by net.ivoa.xml.voresource.v1.Resource
Direct Known Subclasses:
DataCollection, Organisation, Service, StandardSTC

public class Resource
extends java.lang.Object

Any entity or component of a VO application that is describable and identifiable by a IVOA Identifier.

Java class for Resource complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Resource">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="validationLevel" type="{http://www.ivoa.net/xml/VOResource/v1.0}Validation" maxOccurs="unbounded" minOccurs="0"/>
         <element name="title" type="{http://www.w3.org/2001/XMLSchema}token"/>
         <element name="shortName" type="{http://www.ivoa.net/xml/VOResource/v1.0}ShortName" minOccurs="0"/>
         <element name="identifier" type="{http://www.ivoa.net/xml/VOResource/v1.0}IdentifierURI"/>
         <element name="curation" type="{http://www.ivoa.net/xml/VOResource/v1.0}Curation"/>
         <element name="content" type="{http://www.ivoa.net/xml/VOResource/v1.0}Content"/>
       </sequence>
       <attribute name="created" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
       <attribute name="updated" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
       <attribute name="status" use="required">
         <simpleType>
           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
             <enumeration value="active"/>
             <enumeration value="inactive"/>
             <enumeration value="deleted"/>
           </restriction>
         </simpleType>
       </attribute>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  Content content
           
protected  javax.xml.datatype.XMLGregorianCalendar created
           
protected  Curation curation
           
protected  java.lang.String identifier
           
protected  java.lang.String shortName
           
protected  java.lang.String status
           
protected  java.lang.String title
           
protected  javax.xml.datatype.XMLGregorianCalendar updated
           
protected  java.util.List<Validation> validationLevel
           
 
Constructor Summary
Resource()
           
 
Method Summary
 Content getContent()
          Gets the value of the content property.
 javax.xml.datatype.XMLGregorianCalendar getCreated()
          Gets the value of the created property.
 Curation getCuration()
          Gets the value of the curation property.
 java.lang.String getIdentifier()
          Gets the value of the identifier property.
 java.lang.String getShortName()
          Gets the value of the shortName property.
 java.lang.String getStatus()
          Gets the value of the status property.
 java.lang.String getTitle()
          Gets the value of the title property.
 javax.xml.datatype.XMLGregorianCalendar getUpdated()
          Gets the value of the updated property.
 java.util.List<Validation> getValidationLevel()
          Gets the value of the validationLevel property.
 void setContent(Content value)
          Sets the value of the content property.
 void setCreated(javax.xml.datatype.XMLGregorianCalendar value)
          Sets the value of the created property.
 void setCuration(Curation value)
          Sets the value of the curation property.
 void setIdentifier(java.lang.String value)
          Sets the value of the identifier property.
 void setShortName(java.lang.String value)
          Sets the value of the shortName property.
 void setStatus(java.lang.String value)
          Sets the value of the status property.
 void setTitle(java.lang.String value)
          Sets the value of the title property.
 void setUpdated(javax.xml.datatype.XMLGregorianCalendar value)
          Sets the value of the updated property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

validationLevel

protected java.util.List<Validation> validationLevel

title

protected java.lang.String title

shortName

protected java.lang.String shortName

identifier

protected java.lang.String identifier

curation

protected Curation curation

content

protected Content content

created

protected javax.xml.datatype.XMLGregorianCalendar created

updated

protected javax.xml.datatype.XMLGregorianCalendar updated

status

protected java.lang.String status
Constructor Detail

Resource

public Resource()
Method Detail

getValidationLevel

public java.util.List<Validation> getValidationLevel()
Gets the value of the validationLevel 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 set method for the validationLevel property.

For example, to add a new item, do as follows:

    getValidationLevel().add(newItem);
 

Objects of the following type(s) are allowed in the list Validation


getTitle

public java.lang.String getTitle()
Gets the value of the title property.

Returns:
possible object is String

setTitle

public void setTitle(java.lang.String value)
Sets the value of the title property.

Parameters:
value - allowed object is String

getShortName

public java.lang.String getShortName()
Gets the value of the shortName property.

Returns:
possible object is String

setShortName

public void setShortName(java.lang.String value)
Sets the value of the shortName property.

Parameters:
value - allowed object is String

getIdentifier

public java.lang.String getIdentifier()
Gets the value of the identifier property.

Returns:
possible object is String

setIdentifier

public void setIdentifier(java.lang.String value)
Sets the value of the identifier property.

Parameters:
value - allowed object is String

getCuration

public Curation getCuration()
Gets the value of the curation property.

Returns:
possible object is Curation

setCuration

public void setCuration(Curation value)
Sets the value of the curation property.

Parameters:
value - allowed object is Curation

getContent

public Content getContent()
Gets the value of the content property.

Returns:
possible object is Content

setContent

public void setContent(Content value)
Sets the value of the content property.

Parameters:
value - allowed object is Content

getCreated

public javax.xml.datatype.XMLGregorianCalendar getCreated()
Gets the value of the created property.

Returns:
possible object is XMLGregorianCalendar

setCreated

public void setCreated(javax.xml.datatype.XMLGregorianCalendar value)
Sets the value of the created property.

Parameters:
value - allowed object is XMLGregorianCalendar

getUpdated

public javax.xml.datatype.XMLGregorianCalendar getUpdated()
Gets the value of the updated property.

Returns:
possible object is XMLGregorianCalendar

setUpdated

public void setUpdated(javax.xml.datatype.XMLGregorianCalendar value)
Sets the value of the updated property.

Parameters:
value - allowed object is XMLGregorianCalendar

getStatus

public java.lang.String getStatus()
Gets the value of the status property.

Returns:
possible object is String

setStatus

public void setStatus(java.lang.String value)
Sets the value of the status property.

Parameters:
value - allowed object is String


Copyright © 2011 VAMDC. All Rights Reserved.