|
|||||||||
| 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.Asset
public class Asset
Java class for Asset complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Asset">
<complexContent>
<extension base="{http://open-services.net/xmlns/asset/1.0/}Resource">
<sequence>
<element ref="{http://www.omg.org/ras/v2.2}id"/>
<element ref="{http://purl.org/dc/terms/}type"/>
<element name="community" type="{http://open-services.net/xmlns/asset/1.0/}Resource"/>
<element ref="{http://purl.org/dc/terms/}subject"/>
<element name="state" type="{http://open-services.net/xmlns/asset/1.0/}Resource" minOccurs="0"/>
<element name="artifact" type="{http://open-services.net/xmlns/asset/1.0/}Artifact" maxOccurs="unbounded" minOccurs="0"/>
<element name="owner" type="{http://open-services.net/xmlns/asset/1.0/}Resource"/>
<element ref="{http://purl.org/dc/terms/}description" minOccurs="0"/>
<element name="content" type="{http://open-services.net/xmlns/asset/1.0/}Resource"/>
<element ref="{http://purl.org/dc/terms/}modified"/>
<element name="relation" type="{http://open-services.net/xmlns/asset/1.0/}Relation" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Field Summary | |
|---|---|
protected ResourceRef |
artifactFactory
|
protected java.util.List<Artifact> |
artifacts
|
protected ResourceRef |
availableActions
|
protected ResourceRef |
community
|
protected java.util.List<ResourceRef> |
contributor
|
protected ResourceRef |
currentStateHistory
|
protected java.lang.String |
description
|
protected ResourceRef |
htmlRef
|
protected AssetID |
id
|
protected java.util.Date |
modified
|
protected java.util.List<AttributeValue> |
ramAttributeValues
|
protected java.util.List<ResourceRef> |
ramCategories
|
protected java.util.List<Relation> |
relationships
|
protected ResourceRef |
state
|
protected java.lang.String |
subject
|
protected ResourceRef |
type
|
| Fields inherited from class org.oslc.asset.internal.Resource |
|---|
about, base, etag, title |
| Constructor Summary | |
|---|---|
Asset()
|
|
| Method Summary | |
|---|---|
ResourceRef |
getArtifactFactory()
Gets the value of the URL of the artifact creation factory |
java.util.List<Artifact> |
getArtifacts()
Gets the value of the artifacts property. |
java.util.List<ResourceRef> |
getContributors()
Gets the value of the owner property. |
java.lang.String |
getDescription()
Gets the value of the description property. |
ResourceRef |
getHtmlRef()
|
AssetID |
getId()
Gets the value of the id property. |
java.util.Date |
getModified()
Gets the value of the modified property. |
java.util.List<AttributeValue> |
getRAMAttributeValues()
Gets the value of the ram categories property. |
ResourceRef |
getRAMAvailableActions()
Gets the value of the URL of the available actions feed |
java.util.List<ResourceRef> |
getRAMCategories()
Gets the value of the ram categories property. |
ResourceRef |
getRAMCommunity()
Gets the value of the community property. |
ResourceRef |
getRAMCurrentStateHistory()
Gets the value of the URL of the active state history |
java.util.List<Relation> |
getRelationships()
Gets the value of the relationships property. |
ResourceRef |
getState()
Gets the value of the state property. |
java.lang.String |
getSubject()
Gets the value of the subject property. |
ResourceRef |
getType()
Gets the value of the type property. |
void |
setArtifactFactory(ResourceRef resource)
Set the location of a new Artifact Creation Factory |
void |
setCurrentStateHistory(ResourceRef resource)
Set the location of of the active state history |
void |
setDescription(java.lang.String value)
Sets the value of the description property. |
void |
setHtmlRef(ResourceRef htmlRef)
|
void |
setId(AssetID value)
Sets the value of the id property. |
void |
setModified(java.util.Date value)
Sets the value of the modified property. |
void |
setRAMAvailableActions(ResourceRef resource)
Set the location of a new available actions feed |
void |
setRAMCommunity(ResourceRef value)
Sets the value of the community property. |
void |
setState(ResourceRef value)
Sets the value of the state property. |
void |
setSubject(java.lang.String value)
Sets the value of the subject property. |
void |
setType(ResourceRef value)
Sets the value of the type 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 AssetID id
protected ResourceRef type
protected ResourceRef community
protected java.lang.String subject
protected ResourceRef state
protected ResourceRef artifactFactory
protected java.util.List<Artifact> artifacts
protected java.util.List<ResourceRef> contributor
protected java.lang.String description
protected java.util.Date modified
protected java.util.List<Relation> relationships
protected java.util.List<ResourceRef> ramCategories
protected java.util.List<AttributeValue> ramAttributeValues
protected ResourceRef availableActions
protected ResourceRef currentStateHistory
protected ResourceRef htmlRef
| Constructor Detail |
|---|
public Asset()
| Method Detail |
|---|
public AssetID getId()
AssetIDpublic void setId(AssetID value)
value - allowed object is
AssetIDpublic ResourceRef getType()
SimpleLiteralpublic void setType(ResourceRef value)
value - allowed object is
SimpleLiteralpublic ResourceRef getRAMCommunity()
Resourcepublic void setRAMCommunity(ResourceRef value)
value - allowed object is
Resourcepublic java.lang.String getSubject()
SimpleLiteralpublic void setSubject(java.lang.String value)
value - allowed object is
SimpleLiteralpublic ResourceRef getState()
Resourcepublic void setState(ResourceRef value)
value - allowed object is
Resourcepublic ResourceRef getArtifactFactory()
public void setArtifactFactory(ResourceRef resource)
public java.util.List<Artifact> getArtifacts()
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 artifacts property.
For example, to add a new item, do as follows:
getArtifacts().add(newItem);
Objects of the following type(s) are allowed in the list
Artifact
public java.util.List<ResourceRef> getContributors()
Resourcepublic java.util.List<ResourceRef> getRAMCategories()
Resourcepublic java.util.List<AttributeValue> getRAMAttributeValues()
Resourcepublic java.lang.String getDescription()
JAXBElement<SimpleLiteral>
JAXBElement<SimpleLiteral>
JAXBElement<SimpleLiteral>public void setDescription(java.lang.String value)
value - allowed object is
JAXBElement<SimpleLiteral>
JAXBElement<SimpleLiteral>
JAXBElement<SimpleLiteral>public java.util.Date getModified()
SimpleLiteralpublic void setModified(java.util.Date value)
value - allowed object is
SimpleLiteralpublic java.util.List<Relation> getRelationships()
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 relationships property.
For example, to add a new item, do as follows:
getRelationships().add(newItem);
Objects of the following type(s) are allowed in the list
Relation
public ResourceRef getRAMAvailableActions()
public void setRAMAvailableActions(ResourceRef resource)
public ResourceRef getRAMCurrentStateHistory()
public void setCurrentStateHistory(ResourceRef resource)
public ResourceRef getHtmlRef()
public void setHtmlRef(ResourceRef htmlRef)
htmlRef - The htmlRef to set.public java.lang.String toString()
toString in class Resource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||