|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.gee.spectacle.gee.NavigationStep
info.aduna.gee.spectacle.gee.MetaNavigationStep
public class MetaNavigationStep
A MetaNavigationStep corresponds to an option for a user to
select the next type of classification restriction to the current set.
For example, in a set of travel destinations the next type of classification
that could be selected is e.g. the number of rooms, the country or
the means of transport.
In the literature, the term "facet" is often used for a MetaNavigationStep.
Note: in most Spectacle applications, the user never encounters the "facet" selection
as a real step. That is because e.g. he selects "Belgium" in the "Country" menu.
But in fact he is taking two steps at a time: he indicates he wants to use the "Country"
facet and he indicates the value for the facet just selected.
| Field Summary | |
|---|---|
static int |
CONTENTS_OF_CHILDREN
The contents of the metastep is the union of the contents of all children of the metastep. |
static int |
CONTENTS_OF_PARENT
The contents of the metastep is the contents of the parent of the metastep. |
| Fields inherited from class info.aduna.gee.spectacle.gee.NavigationStep |
|---|
_minimumStepSelection, _name |
| Constructor Summary | |
|---|---|
MetaNavigationStep()
For serialization only. |
|
MetaNavigationStep(Object name,
NavigationSpecification navSpec)
Use the default for all parameters not provided. |
|
MetaNavigationStep(Object name,
NavigationSpecification navSpec,
double minimumStepSelection)
Use the default for all parameters not provided. |
|
MetaNavigationStep(Object name,
NavigationSpecification navSpec,
double minimumStepSelection,
Object internalName)
Use the default for all parameters not provided. |
|
MetaNavigationStep(Object name,
NavigationSpecification navSpec,
double minimumStepSelection,
Object internalName,
int contentType)
|
|
MetaNavigationStep(Object name,
NavigationSpecification navSpec,
Object internalName)
Use the default for all parameters not provided. |
|
| Method Summary | |
|---|---|
Object |
clone()
|
int |
compareTo(Object other)
|
MetaNavigationStep |
concat(NavigationSpecification navSpec)
Note the current MetaNavigationStep doesn't change! |
boolean |
equals(Object other)
Compares the specified object with this meta navigation step for equality. |
int |
getContentType()
|
String |
getInternalName()
Get the internal identification of the MetaNavigation. |
NavigationSpecification |
getNavigationSpecification()
|
int |
hashCode()
|
static NavigationSpecification |
permutations(Collection metaNavigationSteps)
Deprecated. use NavigationRules |
static NavigationSpecification |
permutations(Collection metaNavigationSteps,
int maxDepth)
Deprecated. use NavigationRules |
static NavigationSpecification |
permutations(Collection metaNavigationSteps,
NavigationRules rules)
|
void |
setContentType(int contentType)
Don't use CONTENTS_OF_CHILDREN unless absolutely required. |
void |
setNavigationSpecification(NavigationSpecification navSpec)
Set the complete navigation specificiation. |
| Methods inherited from class info.aduna.gee.spectacle.gee.NavigationStep |
|---|
getMinimumStepSelection, getName |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CONTENTS_OF_PARENT
public static final int CONTENTS_OF_CHILDREN
| Constructor Detail |
|---|
public MetaNavigationStep()
public MetaNavigationStep(Object name,
NavigationSpecification navSpec)
MetaNavigationStep(Object, NavigationSpecification, double, Object, int)
public MetaNavigationStep(Object name,
NavigationSpecification navSpec,
double minimumStepSelection)
MetaNavigationStep(Object, NavigationSpecification, double, Object, int)
public MetaNavigationStep(Object name,
NavigationSpecification navSpec,
Object internalName)
MetaNavigationStep(Object, NavigationSpecification, double, Object, int)
public MetaNavigationStep(Object name,
NavigationSpecification navSpec,
double minimumStepSelection,
Object internalName)
MetaNavigationStep(Object, NavigationSpecification, double, Object, int)
public MetaNavigationStep(Object name,
NavigationSpecification navSpec,
double minimumStepSelection,
Object internalName,
int contentType)
name - the name of this meta navigation step, which should support toString()navSpec - the navigation specification 'following' (or 'represented by', see the
introduction of this class) this meta navigation stepminimumStepSelection - don't generate this step if none of the substeps removes at least
this fraction of the entities
(default value: 0.0)internalName - the internal identification for this navigation step (which should support
toString()) or null. A unique, non-null value is
required when different meta steps have identical names.
(default value: null)contentType - one of CONTENTS_OF_PARENT, CONTENTS_OF_CHILDREN
(default value: CONTENTS_OF_PARENT)| Method Detail |
|---|
public String getInternalName()
public boolean equals(Object other)
equals in class NavigationSteppublic int hashCode()
hashCode in class NavigationSteppublic NavigationSpecification getNavigationSpecification()
public void setNavigationSpecification(NavigationSpecification navSpec)
navSpec - the navigation specificiationpublic static NavigationSpecification permutations(Collection metaNavigationSteps)
public static NavigationSpecification permutations(Collection metaNavigationSteps,
int maxDepth)
public static NavigationSpecification permutations(Collection metaNavigationSteps,
NavigationRules rules)
metaNavigationSteps - the collection of metasteps to be permutedrules - the rules that control the navigation specificationpublic int getContentType()
CONTENTS_OF_PARENT,
CONTENTS_OF_CHILDRENpublic void setContentType(int contentType)
contentType - one of CONTENTS_OF_PARENT, CONTENTS_OF_CHILDRENCONTENTS_OF_PARENT,
CONTENTS_OF_CHILDRENpublic MetaNavigationStep concat(NavigationSpecification navSpec)
public Object clone()
clone in class Objectpublic int compareTo(Object other)
compareTo in interface Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||