|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.facetmap.simple.SimpleFacetSpace
public class SimpleFacetSpace
A mutable Vector-based FacetSpace. 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)
|
CompoundHeadingFacet |
getCompoundHeadingFacet(java.lang.String id)
Returns the CompoundHeadingFacet with the given identifier. |
DateFacet |
getDateFacet(java.lang.String id)
Returns the DateFacet with the given identifier. |
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 Facets in this FacetSpace. |
java.util.List |
getFacets()
Returns an immutable list of Facets in this FacetSpace. |
GeographyFacet |
getGeographyFacet(java.lang.String id)
Returns the GeographyFacet with the given identifier. |
KeywordFacet |
getKeywordFacet(java.lang.String id)
Returns the KeywordFacet with the given identifier. |
SpectrumFacet |
getSpectrumFacet(java.lang.String id)
Returns the SpectrumFacet with the given identifier. |
protected TaxonomyFacet |
getTaxonomy(int index)
|
TaxonomyFacet |
getTaxonomyFacet(java.lang.String id)
Returns the TaxonomyFacet 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 void addFacet(Facet facet)
public int getFacetCount()
FacetSpace
getFacetCount in interface FacetSpacepublic java.util.List getFacets()
FacetSpace
getFacets 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 java.lang.String getVersion()
getVersion in interface FacetSpaceprotected TaxonomyFacet getTaxonomy(int index)
public int indexOf(Facet t)
FacetSpace
indexOf in interface FacetSpace
public CompoundHeadingFacet getCompoundHeadingFacet(java.lang.String id)
throws UnknownReferenceException
FacetSpace
getCompoundHeadingFacet in interface FacetSpaceUnknownReferenceException
public DateFacet getDateFacet(java.lang.String id)
throws UnknownReferenceException
FacetSpace
getDateFacet in interface FacetSpaceUnknownReferenceException
public GeographyFacet getGeographyFacet(java.lang.String id)
throws UnknownReferenceException
FacetSpace
getGeographyFacet in interface FacetSpaceUnknownReferenceException
public KeywordFacet getKeywordFacet(java.lang.String id)
throws UnknownReferenceException
FacetSpace
getKeywordFacet in interface FacetSpaceUnknownReferenceException
public SpectrumFacet getSpectrumFacet(java.lang.String id)
throws UnknownReferenceException
FacetSpace
getSpectrumFacet in interface FacetSpaceUnknownReferenceException
public TaxonomyFacet getTaxonomyFacet(java.lang.String id)
throws UnknownReferenceException
FacetSpace
getTaxonomyFacet in interface FacetSpaceUnknownReferenceException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||