info.aduna.gee.spectacle.gee.jit
Class JitNavigationSpecification

java.lang.Object
  extended by info.aduna.gee.spectacle.gee.NavigationSpecification
      extended by info.aduna.gee.spectacle.gee.jit.JitNavigationSpecification

public class JitNavigationSpecification
extends NavigationSpecification

Class JitNavigationSpecification implements a just-in-time NavigationSpecification. This means that even at the meta-meta level, things are calculated just in time. At the meta level, things were already calculated just-in-time by JitNavigationTree and JitNavigationDatabase At the domain level, things are currently not just-in-time -- you have to know all objects in advance.


Field Summary
 
Fields inherited from class info.aduna.gee.spectacle.gee.NavigationSpecification
_navigationSteps
 
Constructor Summary
JitNavigationSpecification()
          Required for Jazzz, never use this!
JitNavigationSpecification(Collection metaSteps, NavigationRules rules)
          Construct without passing a SectionRenderer.
JitNavigationSpecification(Collection metaSteps, NavigationRules rules, SectionRenderer renderer)
          Create a just-in-time navigation specification that is restricted by a permutation rules.
 
Method Summary
 boolean equals(Object other)
          Compare the specified object with this navigation specification for equality.
 Set get(int level)
          Get the set of navigation steps at the specified level.
 int hashCode()
           
 void setAllowedMetaSteps(Collection allowedMetas)
          This enables the permutation rules to set AllowedMetaSteps.
 int size()
          Get the number of specification levels.
 
Methods inherited from class info.aduna.gee.spectacle.gee.NavigationSpecification
add, addLabelSet, addLabelSet, allowContentSteps, concat, denyContentSteps, getAllowContentSteps, getArray, getBreadth, getChildLabels, getDenyContentSteps, getLabelMap, getMap, getNavigationSteps, mergeSetMaps
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JitNavigationSpecification

public JitNavigationSpecification()
Required for Jazzz, never use this!


JitNavigationSpecification

public JitNavigationSpecification(Collection metaSteps,
                                  NavigationRules rules)
Construct without passing a SectionRenderer. You may loose performance benefits.

See Also:
JitNavigationSpecification(Collection metaSteps, NavigationRules rules, SectionRenderer renderer)

JitNavigationSpecification

public JitNavigationSpecification(Collection metaSteps,
                                  NavigationRules rules,
                                  SectionRenderer renderer)
Create a just-in-time navigation specification that is restricted by a permutation rules.

Parameters:
metaSteps - all of the meta steps
rules - contains the restrictions
renderer - pass the renderer for its properties which may influence performance, or null
Method Detail

setAllowedMetaSteps

public void setAllowedMetaSteps(Collection allowedMetas)
This enables the permutation rules to set AllowedMetaSteps.


size

public int size()
Get the number of specification levels. Note: for the actual depth of the navigation, see NavigationTree.

Overrides:
size in class NavigationSpecification
Returns:
the depth

get

public Set get(int level)
Description copied from class: NavigationSpecification
Get the set of navigation steps at the specified level.

Overrides:
get in class NavigationSpecification
Parameters:
level - the level (0 based)
Returns:
the Set of NavigationSteps at the specified level or null

equals

public boolean equals(Object other)
Compare the specified object with this navigation specification for equality.

Overrides:
equals in class NavigationSpecification
Returns:
true if equal, false otherwise

hashCode

public int hashCode()
Overrides:
hashCode in class NavigationSpecification
Returns:
the hash code for this object


Copyright © 1997-2008 Aduna. All Rights Reserved.