org.oslc.asset.internal
Class Asset

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

public class Asset
extends Resource

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

id

protected AssetID id

type

protected ResourceRef type

community

protected ResourceRef community

subject

protected java.lang.String subject

state

protected ResourceRef state

artifactFactory

protected ResourceRef artifactFactory

artifacts

protected java.util.List<Artifact> artifacts

contributor

protected java.util.List<ResourceRef> contributor

description

protected java.lang.String description

modified

protected java.util.Date modified

relationships

protected java.util.List<Relation> relationships

ramCategories

protected java.util.List<ResourceRef> ramCategories

ramAttributeValues

protected java.util.List<AttributeValue> ramAttributeValues

availableActions

protected ResourceRef availableActions

currentStateHistory

protected ResourceRef currentStateHistory

htmlRef

protected ResourceRef htmlRef
Constructor Detail

Asset

public Asset()
Method Detail

getId

public AssetID getId()
Gets the value of the id property.

Returns:
possible object is AssetID

setId

public void setId(AssetID value)
Sets the value of the id property.

Parameters:
value - allowed object is AssetID

getType

public ResourceRef getType()
Gets the value of the type property.

Returns:
possible object is SimpleLiteral

setType

public void setType(ResourceRef value)
Sets the value of the type property.

Parameters:
value - allowed object is SimpleLiteral

getRAMCommunity

public ResourceRef getRAMCommunity()
Gets the value of the community property.

Returns:
possible object is Resource

setRAMCommunity

public void setRAMCommunity(ResourceRef value)
Sets the value of the community property.

Parameters:
value - allowed object is Resource

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

getState

public ResourceRef getState()
Gets the value of the state property.

Returns:
possible object is Resource

setState

public void setState(ResourceRef value)
Sets the value of the state property.

Parameters:
value - allowed object is Resource

getArtifactFactory

public ResourceRef getArtifactFactory()
Gets the value of the URL of the artifact creation factory

Since:
7.2.0.2

setArtifactFactory

public void setArtifactFactory(ResourceRef resource)
Set the location of a new Artifact Creation Factory

Since:
7.2.0.2

getArtifacts

public java.util.List<Artifact> getArtifacts()
Gets the value of the artifacts 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 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


getContributors

public java.util.List<ResourceRef> getContributors()
Gets the value of the owner property.

Returns:
possible object is Resource

getRAMCategories

public java.util.List<ResourceRef> getRAMCategories()
Gets the value of the ram categories property.

Returns:
possible object is Resource

getRAMAttributeValues

public java.util.List<AttributeValue> getRAMAttributeValues()
Gets the value of the ram categories property.

Returns:
possible object is Resource

getDescription

public java.lang.String getDescription()
Gets the value of the description property.

Returns:
possible object is JAXBElement<SimpleLiteral> JAXBElement<SimpleLiteral> JAXBElement<SimpleLiteral>

setDescription

public void setDescription(java.lang.String value)
Sets the value of the description property.

Parameters:
value - allowed object is JAXBElement<SimpleLiteral> JAXBElement<SimpleLiteral> JAXBElement<SimpleLiteral>

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

getRelationships

public java.util.List<Relation> getRelationships()
Gets the value of the relationships 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 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


getRAMAvailableActions

public ResourceRef getRAMAvailableActions()
Gets the value of the URL of the available actions feed

Since:
7.5

setRAMAvailableActions

public void setRAMAvailableActions(ResourceRef resource)
Set the location of a new available actions feed

Since:
7.5

getRAMCurrentStateHistory

public ResourceRef getRAMCurrentStateHistory()
Gets the value of the URL of the active state history

Since:
7.5

setCurrentStateHistory

public void setCurrentStateHistory(ResourceRef resource)
Set the location of of the active state history

Since:
7.5

getHtmlRef

public ResourceRef getHtmlRef()
Returns:
Returns the htmlRef.
Since:
7.5

setHtmlRef

public void setHtmlRef(ResourceRef htmlRef)
Parameters:
htmlRef - The htmlRef to set.
Since:
7.5

toString

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