|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.facetmap.simple.SimpleFacetSpace
A Vector-based FacetSpace that only supports Taxonomy facets. This object changes on the fly whenever the addFacet() method is used. Selection refs generated before such a change may not be valid after the change.
| Field Summary | |
protected java.util.Hashtable |
facetHash
Indexes facets by name. |
protected java.util.Vector |
facets
Indexes facets by number. |
protected int |
version
|
| Constructor Summary | |
SimpleFacetSpace()
Create an empty but valid SimpleFacetSpace. |
|
| Method Summary | |
void |
addFacet(Facet facet)
Appends the given Taxonomy to this FacetSpace. |
Facet |
createFacet(java.lang.String id,
java.lang.String title,
Heading root)
Creates a new Facet structure suitable for adding to this FacetSpace. |
Spectrum |
createSpectrum(java.lang.String id,
java.lang.String title,
java.lang.String rootHeadingTitle,
int min,
int max)
Creates a new Spectrum facet structure suitable for adding to this FacetSpace. |
Taxonomy |
createTaxonomy(java.lang.String id,
java.lang.String title,
java.lang.String rootHeadingTitle)
Creates a new Taxonomy facet structure suitable for adding to this FacetSpace. |
Facet |
getFacet(int index)
Returns the Facet at the given index. |
Facet |
getFacet(java.lang.String id)
Returns the Facet with the given identifier. |
int |
getFacetCount()
Returns the number of dimensions in this FacetSpace. |
Spectrum |
getSpectrum(java.lang.String id)
Returns the Spectrum with the given identifier. |
protected Taxonomy |
getTaxonomy(int index)
|
Taxonomy |
getTaxonomy(java.lang.String id)
Returns the Taxonomy with the given identifier. |
java.lang.String |
getVersion()
Returns zero -- version is not supported by this implementation. |
int |
indexOf(Facet t)
Returns the index number of the dimension the Facet occupies. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Vector facets
protected java.util.Hashtable facetHash
protected int version
| Constructor Detail |
public SimpleFacetSpace()
| Method Detail |
public int getFacetCount()
FacetSpace
getFacetCount in interface FacetSpacepublic Facet getFacet(int index)
FacetSpace
getFacet in interface FacetSpace
public Facet getFacet(java.lang.String id)
throws UnknownReferenceException
FacetSpace
getFacet in interface FacetSpaceUnknownReferenceExceptionpublic Taxonomy getTaxonomy(java.lang.String id)
FacetSpace
getTaxonomy in interface FacetSpacepublic Spectrum getSpectrum(java.lang.String id)
FacetSpace
getSpectrum in interface FacetSpacepublic void addFacet(Facet facet)
FacetSpace
addFacet in interface FacetSpace
public Taxonomy createTaxonomy(java.lang.String id,
java.lang.String title,
java.lang.String rootHeadingTitle)
FacetSpace
createTaxonomy in interface FacetSpace
public Spectrum createSpectrum(java.lang.String id,
java.lang.String title,
java.lang.String rootHeadingTitle,
int min,
int max)
throws DataException
FacetSpace
createSpectrum in interface FacetSpaceDataException
public Facet createFacet(java.lang.String id,
java.lang.String title,
Heading root)
throws DataException
FacetSpace
createFacet in interface FacetSpaceDataException - if the root Heading is of a
type not supported by the implementation.public java.lang.String getVersion()
getVersion in interface FacetSpaceprotected Taxonomy getTaxonomy(int index)
public int indexOf(Facet t)
FacetSpace
indexOf in interface FacetSpace
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||