|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Resource
The ultimate object of desire, to put it one way. The point of Facetmap navigation is to find a Resource, so a Resource can be any object that benefits from faceted classification.
Resources divide their metadata into Headings and attributes. Each datum in a Resource either should be used in faceted browsing, or it shouldn't. If it's used in faceted browsing, it's a Heading; if not, it's an attribute. This class provides accessors for both types of data.
| Field Summary | |
|---|---|
static java.lang.Object |
LOCATION
A common attribute key to represent a path or URL for the resource. |
static java.lang.Object |
TITLE
A common attribute key to represent a descriptive title for the resource. |
| Method Summary | |
|---|---|
java.lang.String |
getAttribute(java.lang.Object key)
|
Heading |
getHeading(int index)
A Heading bound to this Resource. |
int |
getHeadingCount()
Bind this Resource to the specified Heading. |
int |
getId()
Unique identifier. |
| Field Detail |
|---|
static final java.lang.Object LOCATION
static final java.lang.Object TITLE
| Method Detail |
|---|
int getId()
Heading getHeading(int index)
int getHeadingCount()
DataException - if the specified Heading does not belong
to a Facet.java.lang.String getAttribute(java.lang.Object key)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||