org.gcube.portlets.user.collectionexplorer.shared
Class BaseItem

java.lang.Object
  extended by org.gcube.portlets.user.collectionexplorer.shared.BaseItem
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ResultRecord

public class BaseItem
extends Object
implements Serializable

The BaseItem is the basic item tha can be put inside the basket each item that can be placed in the basket has to extends this class.

Author:
massimiliano.assante@isti.cnr.it
See Also:
Serialized Form

Field Summary
protected  String content
           
protected  String fileName
           
protected  int id
          the identifier for the object d
protected  String label
          the eventual label to display in the basket
protected  String metadata
           
protected  String mimeType
           
protected  String type
          to know which kind of object is
 
Constructor Summary
BaseItem()
          constructs an empty BaseItem
BaseItem(int id, String type, String mimeType, String label, String metadata, String content)
          constructs the base item
 
Method Summary
 String getContent()
           
 String getFileName()
           
 int getId()
           
 String getLabel()
           
 String getMetadata()
           
 String getMimeType()
           
 String getType()
           
 void setContent(String content)
           
 void setFileName(String fileName)
           
 void setId(int id)
           
 void setLabel(String label)
           
 void setMetadata(String metadata)
           
 void setMimeType(String mimeType)
           
 void setType(String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected int id
the identifier for the object d


type

protected String type
to know which kind of object is


mimeType

protected String mimeType

label

protected String label
the eventual label to display in the basket


metadata

protected String metadata

content

protected String content

fileName

protected String fileName
Constructor Detail

BaseItem

public BaseItem()
constructs an empty BaseItem


BaseItem

public BaseItem(int id,
                String type,
                String mimeType,
                String label,
                String metadata,
                String content)
constructs the base item

Parameters:
id - the identifier
mimeType - the mimeType
type - the type of the file
label - the label to display when the widget is inside the basket
metadata - m
content - c
Method Detail

getMimeType

public String getMimeType()
Returns:
mimeType

setMimeType

public void setMimeType(String mimeType)
Parameters:
mimeType - m

getLabel

public String getLabel()
Returns:
label

setLabel

public void setLabel(String label)
Parameters:
label - l

getContent

public String getContent()
Returns:
content

setContent

public void setContent(String content)
Parameters:
content - c

getId

public int getId()
Returns:
id

setId

public void setId(int id)
Parameters:
id - the ID

getMetadata

public String getMetadata()
Returns:
metadata

setMetadata

public void setMetadata(String metadata)
Parameters:
metadata - m

getType

public String getType()
Returns:
type

setType

public void setType(String type)
Parameters:
type - t

getFileName

public String getFileName()
Returns:
fname

setFileName

public void setFileName(String fileName)
Parameters:
fileName - f


Copyright © 2014. All Rights Reserved.