org.tubo.item
Class BaseItemImpl

java.lang.Object
  extended by org.tubo.item.BaseItemImpl
All Implemented Interfaces:
Item

public class BaseItemImpl
extends java.lang.Object
implements Item

Created: Jun 18, 2005 7:29:29 AM Last Modification Date: $Date: 2006-10-26 01:11:36 -0300 (Thu, 26 Oct 2006) $

Version:
$Revision: 31 $
Author:
jvlio (jvlio@users.sourceforge.net)

Field Summary
static java.lang.String RCS_ID
           
 
Fields inherited from interface org.tubo.item.Item
CONSUMER_ID_PROPERTY, CONSUMER_PROPERTY
 
Constructor Summary
BaseItemImpl()
          Default constructor
 
Method Summary
 java.lang.Object getConsumedRawData()
           
 long getConsumeTime()
           
 java.lang.Object getId()
           
 long getIndex()
           
 java.util.Map getProperties()
          Returns properties Map
 java.lang.Object getProperty(java.lang.Object key)
          Return a property from properties Map
 void setConsumedRawData(java.lang.Object consumedRawData)
           
 void setConsumeTime(long consumeTime)
           
 void setId(java.lang.Object id)
           
 void setIndex(long index)
           
 void setProperties(java.util.Map properties)
          Replace own properties Map with this
 void setProperty(java.lang.Object key, java.lang.Object value)
          Set o replace a property in properties Map
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RCS_ID

public static final java.lang.String RCS_ID
See Also:
Constant Field Values
Constructor Detail

BaseItemImpl

public BaseItemImpl()
Default constructor

Method Detail

getId

public java.lang.Object getId()

setId

public void setId(java.lang.Object id)

getIndex

public long getIndex()

setIndex

public void setIndex(long index)

getConsumeTime

public long getConsumeTime()

setConsumeTime

public void setConsumeTime(long consumeTime)

getConsumedRawData

public java.lang.Object getConsumedRawData()
Specified by:
getConsumedRawData in interface Item

setConsumedRawData

public void setConsumedRawData(java.lang.Object consumedRawData)
Specified by:
setConsumedRawData in interface Item

getProperties

public java.util.Map getProperties()
Returns properties Map

Specified by:
getProperties in interface Item
Returns:
Properties Map

setProperties

public void setProperties(java.util.Map properties)
Replace own properties Map with this

Specified by:
setProperties in interface Item
Parameters:
properties - Properties Map replacement

getProperty

public java.lang.Object getProperty(java.lang.Object key)
Return a property from properties Map

Specified by:
getProperty in interface Item
Parameters:
key - Property Key.
Returns:
Property value or null if key not found

setProperty

public void setProperty(java.lang.Object key,
                        java.lang.Object value)
Set o replace a property in properties Map

Specified by:
setProperty in interface Item
Parameters:
key - Property key
value - Property value


Copyright © 2004-2007 Tubo. All Rights Reserved.