|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.facetmap.simple.SimpleDateFacet
public class SimpleDateFacet
Basic DateFacet implementation, which automatically provides rudimentary calendar browsing (year, month, day). This implementation does not allow IDs to be assigned to date ranges.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.facetmap.Facet |
|---|
Facet.Util |
| Field Summary | |
|---|---|
protected java.lang.String |
id
|
protected Heading |
rootHeading
|
protected java.lang.String |
title
|
| Constructor Summary | |
|---|---|
SimpleDateFacet(java.lang.String id,
java.lang.String title,
java.lang.String rootHeadingTitle,
java.util.Date startInstant,
java.util.Date endInstant)
|
|
| Method Summary | |
|---|---|
SimpleDateHeading |
getDateHeading(CalendarUnit calendarUnit)
|
DateHeading |
getDateHeading(java.util.Date instant)
Return a DateHeading in this facet which represents only an instant. |
DateHeading |
getDateHeading(java.util.Date startInstant,
java.util.Date endInstant)
Return a DateHeading in this facet which represents a timespan. |
DateHeading |
getDateHeading(java.lang.String id)
Return a previously defined DateHeading. |
Heading |
getHeading(java.lang.String id)
Retrieves the Heading, with the specified ID, that is contained by this Facet. |
java.lang.String |
getId()
Unique identifier. |
Heading |
getRootHeading()
A facet structure is rooted at the heading returned by this method. |
java.lang.String |
getTitle()
The descriptive name of this structure, for display to users. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String id
protected java.lang.String title
protected Heading rootHeading
| Constructor Detail |
|---|
public SimpleDateFacet(java.lang.String id,
java.lang.String title,
java.lang.String rootHeadingTitle,
java.util.Date startInstant,
java.util.Date endInstant)
| Method Detail |
|---|
public SimpleDateHeading getDateHeading(CalendarUnit calendarUnit)
public DateHeading getDateHeading(java.util.Date startInstant,
java.util.Date endInstant)
DateFacetcom.facetmap.simple.DateHeadingBuilder, which
wraps DateFacet and provides more usable methods to get DateHeadings.
getDateHeading in interface DateFacetcom.facetmap.simple.DateHeadingBuilderpublic DateHeading getDateHeading(java.util.Date instant)
DateFacet
getDateHeading in interface DateFacet
public DateHeading getDateHeading(java.lang.String id)
throws UnknownReferenceException
DateFacet
getDateHeading in interface DateFacetUnknownReferenceException
public Heading getHeading(java.lang.String id)
throws UnknownReferenceException
Facet
getHeading in interface FacetUnknownReferenceExceptionpublic java.lang.String getId()
Facet
getId in interface Facetpublic Heading getRootHeading()
FacetIn most cases, Resources that are not mapped to any Heading in this Facet are implicitly mapped to this function's return value. Selection.getBackwardSelections(). In some subinterfaces, the root takes on a more familiar role, e.g. the root node of a Taxonomy.
getRootHeading in interface FacetSelection.getForwardSelections(com.facetmap.Facet)public java.lang.String getTitle()
Facet
getTitle in interface Facet
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||