|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.oslc.asset.internal.Resource
org.oslc.asset.internal.Artifact
public class Artifact
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 |
|---|
protected java.lang.String subject
protected java.lang.Long size
protected ArtifactReference reference
protected java.lang.String mimeType
protected ResourceRef content
protected java.util.Date modified
| Constructor Detail |
|---|
public Artifact()
| Method Detail |
|---|
public java.lang.String getSubject()
SimpleLiteralpublic void setSubject(java.lang.String value)
value - allowed object is
SimpleLiteralpublic java.lang.Long getSize()
Longpublic void setSize(java.lang.Long value)
value - allowed object is
Longpublic ArtifactReference getReference()
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
public void setReference(ArtifactReference value)
public java.lang.String getMimeType()
Stringpublic void setMimeType(java.lang.String value)
value - allowed object is
Stringpublic ResourceRef getContent()
Resourcepublic void setContent(ResourceRef value)
value - allowed object is
Resourcepublic java.util.Date getModified()
SimpleLiteralpublic void setModified(java.util.Date value)
value - allowed object is
SimpleLiteralpublic java.lang.String toString()
toString in class Resource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||