oracle.jsp.webutil.personalization
Class Item

java.lang.Object
  |
  +--oracle.jsp.webutil.personalization.Item

public class Item
extends java.lang.Object


Field Summary
TypeField
static java.lang.String INT_DIM_NAVIGATION
          Constant representing NAVIGATION Interest Dimension
static java.lang.String INT_DIM_PURCHASING
          Constant representing PURCHASING Interest Dimension
static java.lang.String INT_DIM_RATING
          Constant representing RATING Interest Dimension
 
Constructor Summary
Item()
           Empty constructor
Item(java.lang.String type, long ID)
           Construct Item from string and long
Item(java.lang.String type, java.lang.String ID)
           Construct Item from string attributes
 
Method Summary
TypeMethod
 long getID()
           return Item ID
 float getPrediction()
           return Item's prediction.
 java.lang.String getType()
           return Item type
 boolean isCategory()
           return true iff item is a Category
 void setCategory()
           set Item type to "Category"
 void setID(long id)
           set Item ID
 void setType(java.lang.String t)
           set Item type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INT_DIM_NAVIGATION

public static final java.lang.String INT_DIM_NAVIGATION
Constant representing NAVIGATION Interest Dimension

INT_DIM_PURCHASING

public static final java.lang.String INT_DIM_PURCHASING
Constant representing PURCHASING Interest Dimension

INT_DIM_RATING

public static final java.lang.String INT_DIM_RATING
Constant representing RATING Interest Dimension
Constructor Detail

Item

public Item()
Empty constructor

Item

public Item(java.lang.String type,
            java.lang.String ID)
     throws javax.servlet.jsp.JspTagException
Construct Item from string attributes

Parameters:
type - item type
ID - item ID

Item

public Item(java.lang.String type,
            long ID)
Construct Item from string and long

Parameters:
type - item type
ID - item ID
Method Detail

getType

public java.lang.String getType()
return Item type

Returns:
item type as string

getID

public long getID()
return Item ID

Returns:
item ID as long integer

getPrediction

public float getPrediction()
return Item's prediction. Applies to Items, returned by tags as recommnedations.

Returns:
prediction of how accurate the recommendation is (see documentation for details)

isCategory

public boolean isCategory()
return true iff item is a Category

Returns:
true if item is a Category, false otherwise

setType

public void setType(java.lang.String t)
set Item type

Parameters:
type - to set in the item

setCategory

public void setCategory()
set Item type to "Category"

setID

public void setID(long id)
set Item ID

Parameters:
ID - to set in the item