public class ItemContents
extends java.lang.Object
| Constructor and Description |
|---|
ItemContents()
Class Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addItemRelation(java.lang.String relationName,
Item item)
Adds the given item to the set of relations.
|
FeatureSet |
getFeatures()
Returns the feature set for this item contents.
|
Item |
getItemRelation(java.lang.String relationName)
Given the name of a relation, returns the item the shares the same
ItemContents.
|
void |
removeItemRelation(java.lang.String relationName)
Removes the relation/item mapping from this ItemContents.
|
public void addItemRelation(java.lang.String relationName,
Item item)
relationName - the name of the relationitem - the item reference in the relationpublic void removeItemRelation(java.lang.String relationName)
relationName - the name of the relation/item to removepublic Item getItemRelation(java.lang.String relationName)
relationName - the name of the relation of interestpublic FeatureSet getFeatures()