org.oslc.asset.internal
Class Artifact

java.lang.Object
  extended by org.oslc.asset.internal.Resource
      extended by org.oslc.asset.internal.Artifact

public class Artifact
extends Resource

Java class for Artifact complex type.

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

 <complexType name="Artifact">
   <complexContent>
     <extension base="{http://open-services.net/xmlns/asset/1.0/}Resource">
       <sequence>
         <element name="path" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element ref="{http://purl.org/dc/terms/}subject"/>
         <element name="size" type="{http://www.w3.org/2001/XMLSchema}long"/>
         <element name="reference" type="{http://open-services.net/xmlns/asset/1.0/}Reference" maxOccurs="unbounded" minOccurs="0"/>
         <element name="mimeType" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="content" type="{http://open-services.net/xmlns/asset/1.0/}Resource"/>
         <element ref="{http://purl.org/dc/terms/}modified"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 


Field Summary
protected  ResourceRef content
           
protected  java.lang.String mimeType
           
protected  java.util.Date modified
           
protected  ArtifactReference reference
           
protected  java.lang.Long size
           
protected  java.lang.String subject
           
 
Fields inherited from class org.oslc.asset.internal.Resource
about, base, etag, title
 
Constructor Summary
Artifact()
           
 
Method Summary
 ResourceRef getContent()
          Gets the value of the content property.
 java.lang.String getMimeType()
          Gets the value of the mimeType property.
 java.util.Date getModified()
          Gets the value of the modified property.
 ArtifactReference getReference()
          Gets the value of the reference property.
 java.lang.Long getSize()
          Gets the value of the size property.
 java.lang.String getSubject()
          Gets the value of the subject property.
 void setContent(ResourceRef value)
          Sets the value of the content property.
 void setMimeType(java.lang.String value)
          Sets the value of the mimeType property.
 void setModified(java.util.Date value)
          Sets the value of the modified property.
 void setReference(ArtifactReference value)
           
 void setSize(java.lang.Long value)
          Sets the value of the size property.
 void setSubject(java.lang.String value)
          Sets the value of the subject property.
 java.lang.String toString()
           
 
Methods inherited from class org.oslc.asset.internal.Resource
getAbout, getBase, getEtag, getTitle, setAbout, setBase, setEtag, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

subject

protected java.lang.String subject

size

protected java.lang.Long size

reference

protected ArtifactReference reference

mimeType

protected java.lang.String mimeType

content

protected ResourceRef content

modified

protected java.util.Date modified
Constructor Detail

Artifact

public Artifact()
Method Detail

getSubject

public java.lang.String getSubject()
Gets the value of the subject property.

Returns:
possible object is SimpleLiteral

setSubject

public void setSubject(java.lang.String value)
Sets the value of the subject property.

Parameters:
value - allowed object is SimpleLiteral

getSize

public java.lang.Long getSize()
Gets the value of the size property.

Returns:
possible object is Long

setSize

public void setSize(java.lang.Long value)
Sets the value of the size property.

Parameters:
value - allowed object is Long

getReference

public ArtifactReference getReference()
Gets the value of the reference 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 reference property.

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

    getReference().add(newItem);
 

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


setReference

public void setReference(ArtifactReference value)

getMimeType

public java.lang.String getMimeType()
Gets the value of the mimeType property.

Returns:
possible object is String

setMimeType

public void setMimeType(java.lang.String value)
Sets the value of the mimeType property.

Parameters:
value - allowed object is String

getContent

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

Returns:
possible object is Resource

setContent

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

Parameters:
value - allowed object is Resource

getModified

public java.util.Date getModified()
Gets the value of the modified property.

Returns:
possible object is SimpleLiteral

setModified

public void setModified(java.util.Date value)
Sets the value of the modified property.

Parameters:
value - allowed object is SimpleLiteral

toString

public java.lang.String toString()
Overrides:
toString in class Resource