org.apache.tuscany.sca.data.collection
Class Item

java.lang.Object
  extended by org.apache.tuscany.sca.data.collection.Item
Direct Known Subclasses:
Item

public class Item
extends java.lang.Object

Represents a data item.


Constructor Summary
Item()
          Constructs a new item.
Item(java.lang.String title, java.lang.String contents, java.lang.String link, java.lang.String related, java.util.Date date)
          Constructs a new item.
 
Method Summary
 java.lang.String getAlternate()
          Returns the item link to an alternate web resource
 java.lang.String getContents()
          Returns the item contents
 java.util.Date getDate()
          Returns the item date
 java.lang.String getLink()
          Returns the item link to a web resource
 java.lang.String getRelated()
          Returns the item link to a related web resource
 java.lang.String getTitle()
          Returns the item title.
 void setAlternate(java.lang.String alternate)
          Sets the item link to an alternate web resource.
 void setContents(java.lang.String contents)
          Sets the item contents
 void setDate(java.util.Date date)
          Sets the item date
 void setLink(java.lang.String link)
          Sets the item link to a web resource
 void setRelated(java.lang.String related)
          Sets the item link to a related web resource.
 void setTitle(java.lang.String title)
          Sets the item title.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Item

public Item()
Constructs a new item.


Item

public Item(java.lang.String title,
            java.lang.String contents,
            java.lang.String link,
            java.lang.String related,
            java.util.Date date)
Constructs a new item.

Parameters:
title - the item title
contents - the item contents
link - the item link to a web resource
related - the item link to a related web resource
date - the item date
Method Detail

getTitle

public java.lang.String getTitle()
Returns the item title.

Returns:
the item title

setTitle

public void setTitle(java.lang.String title)
Sets the item title.

Parameters:
title - the item title

getContents

public java.lang.String getContents()
Returns the item contents

Returns:
the item contents

setContents

public void setContents(java.lang.String contents)
Sets the item contents

Parameters:
contents - the item contents

getLink

public java.lang.String getLink()
Returns the item link to a web resource

Returns:
the item link to a web resource

setLink

public void setLink(java.lang.String link)
Sets the item link to a web resource

Parameters:
link - the item link to a web resource

getRelated

public java.lang.String getRelated()
Returns the item link to a related web resource

Returns:
the item link to a related web resource

setRelated

public void setRelated(java.lang.String related)
Sets the item link to a related web resource.

Parameters:
related - the item link to a related web resource

getAlternate

public java.lang.String getAlternate()
Returns the item link to an alternate web resource

Returns:
the item link to an alternate web resource

setAlternate

public void setAlternate(java.lang.String alternate)
Sets the item link to an alternate web resource.

Parameters:
alternate - the item link to an alternate web resource

getDate

public java.util.Date getDate()
Returns the item date

Returns:
the item date

setDate

public void setDate(java.util.Date date)
Sets the item date

Parameters:
date - the item date