|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A FacetState represents one dimension of a multidimensional browse state. It references a Facet (which defines the constraint dimension) and the data source being browsed.
| Nested Class Summary | |
static class |
FacetState.Refinement
Data structure used to represent a refinement of the state with an associated occurance count. |
| Method Summary | |
void |
addToFilter(FilterQuery filter)
Extend an existing filter query to add the constraint represented by this facet state. |
void |
countRefinements(RefinementCounter counter)
Update the counts for how many times the legal refinements of this state occur in the context of this refinement counter. |
java.lang.String |
getDisplayName()
Return the displayable name of this facet state. |
java.lang.String |
getEncoding(DataSource context)
Return an encoding of this facet state as a string that can be stored in an HTTP request parameter. |
Facet |
getFacet()
Return the facet definition. |
FacetState |
getParent()
Return the parent facet state if available otherwise return null. |
java.util.List |
getParents()
Return the entire parent chain of FacetStates for this state as a collection. |
java.util.List |
getRefinements(FilterState context)
Return an ordered list of the possible refinements of of this facet state - may be empty. |
com.hp.hpl.jena.rdf.model.RDFNode |
getValue()
Return the RDFNode which represents the selected value for this state. |
boolean |
isRoot()
Return true if this the root (unconstrainted) facet state, |
| Methods inherited from interface java.lang.Comparable |
compareTo |
| Method Detail |
public java.lang.String getDisplayName()
public Facet getFacet()
public boolean isRoot()
public java.lang.String getEncoding(DataSource context)
public java.util.List getRefinements(FilterState context)
public void countRefinements(RefinementCounter counter)
public FacetState getParent()
public java.util.List getParents()
public void addToFilter(FilterQuery filter)
public com.hp.hpl.jena.rdf.model.RDFNode getValue()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||