|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FacetFinderSPI
SPI for decomposing opaque data into facets.
Each jar providing implementations of this SPI should list them in
META-INF/services/org.embl.ebi.escience.scuflui.facets.FacetFinderSPI.
If a particular SPI needs extra information, it should be in a resource in
the same location as the .class file, and prefixed by the local class name,
so that it could be retrieved as:
getClass().getClassLoader().getResourceAsStream(
getClass().getName().replace('.', '/') + postFix );
or alternatively
getClass().getResourceAsStream(getClass().getName().substring(
getClass().getPackage().toString() + 1) + postFix );
| Nested Class Summary | |
|---|---|
static interface |
FacetFinderSPI.ColumnID
|
| Method Summary | |
|---|---|
boolean |
canMakeFacets(DataThing dataThing)
Indicate if this facet finder can decompose this DataThing. |
DataThing |
getFacet(DataThing dataThing,
FacetFinderSPI.ColumnID colID)
Get the value associated with a particular column of a data object. |
java.lang.String |
getName()
Get a human readable name for this facetiser. |
java.util.Set |
getStandardColumns(DataThing dataThing)
Get a Set of columns this facet finder can use on any data. |
boolean |
hasColumn(FacetFinderSPI.ColumnID colID)
Indicate if this facet finder can return data for this column. |
FacetFinderSPI.ColumnID |
newColumn(DataThing dataThing)
Get a new, independant column for a data item. |
| Method Detail |
|---|
boolean canMakeFacets(DataThing dataThing)
dataThing - the object to decompose
java.util.Set getStandardColumns(DataThing dataThing)
dataThing - the dataThing to get standard columns for, or null if
default columns should be returned
FacetFinderSPI.ColumnID newColumn(DataThing dataThing)
dataThing - the data item to work with
boolean hasColumn(FacetFinderSPI.ColumnID colID)
colID - the ColumnID identifying the column
DataThing getFacet(DataThing dataThing,
FacetFinderSPI.ColumnID colID)
dataThing - the object to decomposecolID - the column identifier
java.lang.String getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||