|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The ultimate object of desire, to put it one way. The point of FacetMap navigation is to find a Resource, so a Resource implementation can be any object that benefits from faceted classification. This interface provides a typesafe way to store and fetch string attributes of the resource -- these methods are optional and may safely return null values.
| 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()
|
int |
getId()
Unique identifier. |
void |
setAttribute(java.lang.Object key,
java.lang.String value)
|
void |
setHeading(Heading heading)
Bind this Resource to the specified Heading. |
| Field Detail |
public static final java.lang.Object LOCATION
public static final java.lang.Object TITLE
| Method Detail |
public int getId()
public Heading getHeading(int index)
public void setHeading(Heading heading)
throws DataException
DataException - if the specified Heading does not belong
to a Facet.public int getHeadingCount()
public java.lang.String getAttribute(java.lang.Object key)
public void setAttribute(java.lang.Object key,
java.lang.String value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||