public class ItemContents extends Object
Modifier and Type | Field and Description |
---|---|
private FeatureSetImpl |
features |
private FeatureSetImpl |
relations |
Constructor and Description |
---|
ItemContents()
Class Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addItemRelation(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(String relationName)
Given the name of a relation, returns the item the shares the
same ItemContents.
|
void |
removeItemRelation(String relationName)
Removes the relation/item mapping from this ItemContents.
|
void |
showRelations() |
private FeatureSetImpl features
private FeatureSetImpl relations
public ItemContents()
public void addItemRelation(String relationName, Item item)
relationName
- the name of the relationitem
- the item reference in the relationpublic void removeItemRelation(String relationName)
relationName
- the name of the relation/item to removepublic void showRelations()
public Item getItemRelation(String relationName)
relationName
- the name of the relation of interestpublic FeatureSet getFeatures()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses