com.ibm.ram.internal.jaxb
Class Asset

java.lang.Object
  extended by com.ibm.ram.internal.jaxb.Asset

public class Asset
extends java.lang.Object

Java class for Asset complex type.

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

 <complexType name="Asset">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{http://www.omg.org/ras/v2.2}id"/>
         <element ref="{http://purl.org/dc/elements/1.1/}title"/>
         <element name="type" type="{http://jazz.net/xmlns/ecalm/ram/internal/v7.2}Link"/>
         <element name="state" type="{http://jazz.net/xmlns/ecalm/ram/internal/v7.2}Link"/>
         <element name="action" type="{http://jazz.net/xmlns/ecalm/ram/internal/v7.2}Link" minOccurs="0"/>
         <element name="owner" type="{http://jazz.net/xmlns/ecalm/ram/internal/v7.2}Link" maxOccurs="unbounded"/>
         <element name="community" type="{http://jazz.net/xmlns/ecalm/ram/internal/v7.2}Link"/>
         <element ref="{http://purl.org/dc/elements/1.1/}subject"/>
         <element ref="{http://purl.org/dc/elements/1.1/}description" minOccurs="0"/>
         <element name="avgRating" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
         <element name="ratings" type="{http://jazz.net/xmlns/ecalm/ram/internal/v7.2}Link" minOccurs="0"/>
         <element name="relationship" type="{http://jazz.net/xmlns/ecalm/ram/internal/v7.2}RelationshipLink" maxOccurs="unbounded" minOccurs="0"/>
         <element name="artifact" type="{http://jazz.net/xmlns/ecalm/ram/internal/v7.2}Link" maxOccurs="unbounded" minOccurs="0"/>
         <element name="forums" type="{http://jazz.net/xmlns/ecalm/ram/internal/v7.2}Link" minOccurs="0"/>
         <element name="category" type="{http://jazz.net/xmlns/ecalm/ram/internal/v7.2}Link" maxOccurs="unbounded" minOccurs="0"/>
         <element name="tag" type="{http://jazz.net/xmlns/ecalm/ram/internal/v7.2}Link" maxOccurs="unbounded" minOccurs="0"/>
         <element name="htmlRef" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
         <element name="stateHistory" type="{http://jazz.net/xmlns/ecalm/ram/internal/v7.2}Link" maxOccurs="unbounded" minOccurs="0"/>
         <element name="lifecycle" type="{http://jazz.net/xmlns/ecalm/ram/internal/v7.2}Link" minOccurs="0"/>
         <element name="content" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
         <element name="attributeValue" type="{http://jazz.net/xmlns/ecalm/ram/internal/v7.2}AttributeValue" maxOccurs="unbounded" minOccurs="0"/>
         <element name="lastModified" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
       </sequence>
       <attGroup ref="{http://jazz.net/xmlns/ecalm/ram/internal/v7.2}resourceAttrs"/>
       <attribute name="dbid" type="{http://www.w3.org/2001/XMLSchema}int" default="-1" />
       <attribute name="managementStyle" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
       <attribute name="revisionCount" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  Link<Action> action
           
protected  java.util.List<Link<Artifact>> artifacts
           
protected  java.util.List<AttributeValue> attributeValues
           
protected  java.lang.Double avgRating
           
protected  java.lang.String base
           
protected  java.util.List<Link<Category>> categories
           
protected  Link<Community> community
           
protected  java.lang.String content
           
protected  java.lang.Integer dbid
           
protected  SimpleLiteral description
           
protected  java.lang.String etag
           
protected  Link forums
           
protected  java.lang.String href
           
protected  java.lang.String htmlRef
           
protected  AssetID id
           
protected  java.lang.String lang
           
protected  javax.xml.datatype.XMLGregorianCalendar lastModified
           
protected  Link<Lifecycle> lifecycle
           
protected  java.lang.String lifecycleId
           
protected  java.lang.Integer managementStyle
           
protected  java.util.List<Link<User>> owners
           
protected  Link ratings
           
protected  java.util.List<RelationshipLink> relationships
           
protected  java.lang.Integer revisionCount
           
protected  java.lang.String space
           
protected  Link<State> state
           
protected  java.util.List<Link<StateHistory>> stateHistories
           
protected  SimpleLiteral subject
           
protected  java.util.List<Link> tags
           
protected  SimpleLiteral title
           
protected  Link<AssetType> type
           
 
Constructor Summary
Asset()
           
Asset(Asset oslcAsset)
           
 
Method Summary
 Link<Action> getAction()
          Gets the value of the action property.
 java.util.List<Link<Artifact>> getArtifacts()
          Gets the value of the artifacts property.
 java.util.List<AttributeValue> getAttributeValues()
          Gets the value of the attributeValues property.
 java.lang.Double getAvgRating()
          Gets the value of the avgRating property.
 java.lang.String getBase()
          Gets the value of the base property.
 java.util.List<Link<Category>> getCategories()
          Gets the value of the categories property.
 Link<Community> getCommunity()
          Gets the value of the community property.
 java.lang.String getContent()
          Gets the value of the content property.
 java.lang.Integer getDbid()
          Gets the value of the dbid property.
 SimpleLiteral getDescription()
          Gets the value of the description property.
 java.lang.String getEtag()
          Gets the value of the etag property.
 Link getForums()
          Gets the value of the forums property.
 java.lang.String getHref()
          Gets the value of the href property.
 java.lang.String getHtmlRef()
          Gets the value of the htmlRef property.
 AssetID getId()
          Gets the value of the id property.
 java.lang.String getLang()
          Gets the value of the lang property.
 javax.xml.datatype.XMLGregorianCalendar getLastModified()
          Gets the value of the lastModified property.
 Link<Lifecycle> getLifecycle()
          Gets the value of the lifecycle property.
 java.lang.String getLifecycleId()
           
 int getManagementStyle()
          Gets the value of the managementStyle property.
 java.util.List<Link<User>> getOwners()
          Gets the value of the owners property.
 Link getRatings()
          Gets the value of the ratings property.
 java.util.List<RelationshipLink> getRelationships()
          Gets the value of the relationships property.
 int getRevisionCount()
          Gets the value of the revisionCount property.
 java.lang.String getSpace()
          Gets the value of the space property.
 Link<State> getState()
          Gets the value of the state property.
 java.util.List<Link<StateHistory>> getStateHistories()
          Gets the value of the stateHistories property.
 SimpleLiteral getSubject()
          Gets the value of the subject property.
 java.util.List<Link> getTags()
          Gets the value of the tags property.
 SimpleLiteral getTitle()
          Gets the value of the title property.
 Link<AssetType> getType()
          Gets the value of the type property.
 void setAction(Link<Action> value)
          Sets the value of the action property.
 void setAvgRating(java.lang.Double value)
          Sets the value of the avgRating property.
 void setBase(java.lang.String value)
          Sets the value of the base property.
 void setCommunity(Link<Community> value)
          Sets the value of the community property.
 void setContent(java.lang.String value)
          Sets the value of the content property.
 void setDbid(java.lang.Integer value)
          Sets the value of the dbid property.
 void setDescription(SimpleLiteral value)
          Sets the value of the description property.
 void setEtag(java.lang.String value)
          Sets the value of the etag property.
 void setForums(Link value)
          Sets the value of the forums property.
 void setHref(java.lang.String value)
          Sets the value of the href property.
 void setHtmlRef(java.lang.String value)
          Sets the value of the htmlRef property.
 void setId(AssetID value)
          Sets the value of the id property.
 void setLang(java.lang.String value)
          Sets the value of the lang property.
 void setLastModified(javax.xml.datatype.XMLGregorianCalendar value)
          Sets the value of the lastModified property.
 void setLifecycle(Link<Lifecycle> value)
          Sets the value of the lifecycle property.
 void setLifecycleId(java.lang.String lifecycleId)
           
 void setManagementStyle(java.lang.Integer value)
          Sets the value of the managementStyle property.
 void setRatings(Link value)
          Sets the value of the ratings property.
 void setRevisionCount(java.lang.Integer value)
          Sets the value of the revisionCount property.
 void setSpace(java.lang.String value)
          Sets the value of the space property.
 void setState(Link<State> value)
          Sets the value of the state property.
 void setSubject(SimpleLiteral value)
          Sets the value of the subject property.
 void setTitle(SimpleLiteral value)
          Sets the value of the title property.
 void setType(Link<AssetType> value)
          Sets the value of the type property.
 Asset toOSLCAsset(AssetPropOptions props)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected AssetID id

title

protected SimpleLiteral title

type

protected Link<AssetType> type

state

protected Link<State> state

action

protected Link<Action> action

owners

protected java.util.List<Link<User>> owners

community

protected Link<Community> community

subject

protected SimpleLiteral subject

description

protected SimpleLiteral description

avgRating

protected java.lang.Double avgRating

ratings

protected Link ratings

relationships

protected java.util.List<RelationshipLink> relationships

artifacts

protected java.util.List<Link<Artifact>> artifacts

forums

protected Link forums

categories

protected java.util.List<Link<Category>> categories

tags

protected java.util.List<Link> tags

htmlRef

protected java.lang.String htmlRef

stateHistories

protected java.util.List<Link<StateHistory>> stateHistories

lifecycle

protected Link<Lifecycle> lifecycle

lifecycleId

protected java.lang.String lifecycleId

content

protected java.lang.String content

attributeValues

protected java.util.List<AttributeValue> attributeValues

lastModified

protected javax.xml.datatype.XMLGregorianCalendar lastModified

dbid

protected java.lang.Integer dbid

managementStyle

protected java.lang.Integer managementStyle

revisionCount

protected java.lang.Integer revisionCount

etag

protected java.lang.String etag

href

protected java.lang.String href

base

protected java.lang.String base

lang

protected java.lang.String lang

space

protected java.lang.String space
Constructor Detail

Asset

public Asset()

Asset

public Asset(Asset oslcAsset)
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

getTitle

public SimpleLiteral getTitle()
Gets the value of the title property.

Returns:
possible object is SimpleLiteral

setTitle

public void setTitle(SimpleLiteral value)
Sets the value of the title property.

Parameters:
value - allowed object is SimpleLiteral

getType

public Link<AssetType> getType()
Gets the value of the type property.

Returns:
possible object is Link

setType

public void setType(Link<AssetType> value)
Sets the value of the type property.

Parameters:
value - allowed object is Link

getState

public Link<State> getState()
Gets the value of the state property.

Returns:
possible object is Link

setState

public void setState(Link<State> value)
Sets the value of the state property.

Parameters:
value - allowed object is Link

getAction

public Link<Action> getAction()
Gets the value of the action property.

Returns:
possible object is Link

setAction

public void setAction(Link<Action> value)
Sets the value of the action property.

Parameters:
value - allowed object is Link

getOwners

public java.util.List<Link<User>> getOwners()
Gets the value of the owners 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 owners property.

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

    getOwners().add(newItem);
 

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


getCommunity

public Link<Community> getCommunity()
Gets the value of the community property.

Returns:
possible object is Link

setCommunity

public void setCommunity(Link<Community> value)
Sets the value of the community property.

Parameters:
value - allowed object is Link

getSubject

public SimpleLiteral getSubject()
Gets the value of the subject property.

Returns:
possible object is SimpleLiteral

setSubject

public void setSubject(SimpleLiteral value)
Sets the value of the subject property.

Parameters:
value - allowed object is SimpleLiteral

getDescription

public SimpleLiteral getDescription()
Gets the value of the description property.

Returns:
possible object is SimpleLiteral

setDescription

public void setDescription(SimpleLiteral value)
Sets the value of the description property.

Parameters:
value - allowed object is SimpleLiteral

getAvgRating

public java.lang.Double getAvgRating()
Gets the value of the avgRating property.

Returns:
possible object is Double

setAvgRating

public void setAvgRating(java.lang.Double value)
Sets the value of the avgRating property.

Parameters:
value - allowed object is Double

getRatings

public Link getRatings()
Gets the value of the ratings property.

Returns:
possible object is Link

setRatings

public void setRatings(Link value)
Sets the value of the ratings property.

Parameters:
value - allowed object is Link

getRelationships

public java.util.List<RelationshipLink> 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 RelationshipLink


getArtifacts

public java.util.List<Link<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 Link


getForums

public Link getForums()
Gets the value of the forums property.

Returns:
possible object is Link

setForums

public void setForums(Link value)
Sets the value of the forums property.

Parameters:
value - allowed object is Link

getCategories

public java.util.List<Link<Category>> getCategories()
Gets the value of the categories 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 categories property.

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

    getCategories().add(newItem);
 

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


getTags

public java.util.List<Link> getTags()
Gets the value of the tags 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 tags property.

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

    getTags().add(newItem);
 

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


getHtmlRef

public java.lang.String getHtmlRef()
Gets the value of the htmlRef property.

Returns:
possible object is String

setHtmlRef

public void setHtmlRef(java.lang.String value)
Sets the value of the htmlRef property.

Parameters:
value - allowed object is String

getStateHistories

public java.util.List<Link<StateHistory>> getStateHistories()
Gets the value of the stateHistories 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 stateHistories property.

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

    getStateHistories().add(newItem);
 

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


getLifecycleId

public java.lang.String getLifecycleId()
Returns:
Returns the lifecycleId.
Since:
7.5.1

setLifecycleId

public void setLifecycleId(java.lang.String lifecycleId)
Parameters:
lifecycleId - The lifecycleId to set.
Since:
7.5.1

getLifecycle

public Link<Lifecycle> getLifecycle()
Gets the value of the lifecycle property.

Returns:
possible object is Link

setLifecycle

public void setLifecycle(Link<Lifecycle> value)
Sets the value of the lifecycle property.

Parameters:
value - allowed object is Link

getContent

public java.lang.String getContent()
Gets the value of the content property.

Returns:
possible object is String

setContent

public void setContent(java.lang.String value)
Sets the value of the content property.

Parameters:
value - allowed object is String

getAttributeValues

public java.util.List<AttributeValue> getAttributeValues()
Gets the value of the attributeValues 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 attributeValues property.

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

    getAttributeValues().add(newItem);
 

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


getLastModified

public javax.xml.datatype.XMLGregorianCalendar getLastModified()
Gets the value of the lastModified property.

Returns:
possible object is XMLGregorianCalendar

setLastModified

public void setLastModified(javax.xml.datatype.XMLGregorianCalendar value)
Sets the value of the lastModified property.

Parameters:
value - allowed object is XMLGregorianCalendar

getDbid

public java.lang.Integer getDbid()
Gets the value of the dbid property.

Returns:
possible object is Integer

setDbid

public void setDbid(java.lang.Integer value)
Sets the value of the dbid property.

Parameters:
value - allowed object is Integer

getManagementStyle

public int getManagementStyle()
Gets the value of the managementStyle property.

Returns:
possible object is Integer

setManagementStyle

public void setManagementStyle(java.lang.Integer value)
Sets the value of the managementStyle property.

Parameters:
value - allowed object is Integer

getRevisionCount

public int getRevisionCount()
Gets the value of the revisionCount property.

Returns:
possible object is Integer

setRevisionCount

public void setRevisionCount(java.lang.Integer value)
Sets the value of the revisionCount property.

Parameters:
value - allowed object is Integer

getEtag

public java.lang.String getEtag()
Gets the value of the etag property.

Returns:
possible object is String

setEtag

public void setEtag(java.lang.String value)
Sets the value of the etag property.

Parameters:
value - allowed object is String

getHref

public java.lang.String getHref()
Gets the value of the href property.

Returns:
possible object is String

setHref

public void setHref(java.lang.String value)
Sets the value of the href property.

Parameters:
value - allowed object is String

getBase

public java.lang.String getBase()
Gets the value of the base property.

Returns:
possible object is String

setBase

public void setBase(java.lang.String value)
Sets the value of the base property.

Parameters:
value - allowed object is String

getLang

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

Returns:
possible object is String

setLang

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

Parameters:
value - allowed object is String

getSpace

public java.lang.String getSpace()
Gets the value of the space property.

Returns:
possible object is String

setSpace

public void setSpace(java.lang.String value)
Sets the value of the space property.

Parameters:
value - allowed object is String

toString

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

toOSLCAsset

public Asset toOSLCAsset(AssetPropOptions props)