com.facetmap.simple
Class SimpleTaxonomyHeading

java.lang.Object
  extended by com.facetmap.simple.SimpleHeading
      extended by com.facetmap.simple.SimpleTaxonomyHeading
All Implemented Interfaces:
Heading, TaxonomyHeading
Direct Known Subclasses:
IndexedHeading

public class SimpleTaxonomyHeading
extends SimpleHeading
implements TaxonomyHeading


Field Summary
protected  SimpleTaxonomyFacet facet
           
protected  TreeNode treeNode
           
 
Fields inherited from class com.facetmap.simple.SimpleHeading
id, title
 
Constructor Summary
SimpleTaxonomyHeading(java.lang.String id)
           
SimpleTaxonomyHeading(java.lang.String id, java.lang.String title)
           
SimpleTaxonomyHeading(java.lang.String id, java.lang.String title, SimpleTaxonomyHeading parent)
           
 
Method Summary
 Heading getBackwardHeading()
          See Facet for the definition of a backward heading.
 java.util.Enumeration getBackwardHeadings()
          Retained from Facetmap v1, since it may be useful.
 int getChildCount()
           
 Facet getFacet()
          Facet to which this Heading belongs.
 java.util.Iterator getForwardHeadings()
          See Facet for the definition of a forward heading.
 SimpleTaxonomyHeading getParent()
           
 SimpleTaxonomyFacet getSimpleTaxonomyFacet()
           
 TreeNode getTreeNode()
           
 void setSimpleTaxonomyFacet(SimpleTaxonomyFacet facet)
           
 void setTreeNode(TreeNode treeNode)
           
 java.lang.String toString()
           
 
Methods inherited from class com.facetmap.simple.SimpleHeading
getId, getTitle, isRoot, matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.facetmap.Heading
getId, getTitle, isRoot
 

Field Detail

facet

protected SimpleTaxonomyFacet facet

treeNode

protected TreeNode treeNode
Constructor Detail

SimpleTaxonomyHeading

public SimpleTaxonomyHeading(java.lang.String id)

SimpleTaxonomyHeading

public SimpleTaxonomyHeading(java.lang.String id,
                             java.lang.String title)

SimpleTaxonomyHeading

public SimpleTaxonomyHeading(java.lang.String id,
                             java.lang.String title,
                             SimpleTaxonomyHeading parent)
Method Detail

getForwardHeadings

public java.util.Iterator getForwardHeadings()
Description copied from interface: Heading
See Facet for the definition of a forward heading. This method returns an empty Iterator if the Heading has no forward headings.

Specified by:
getForwardHeadings in interface Heading

getBackwardHeading

public Heading getBackwardHeading()
Description copied from interface: Heading
See Facet for the definition of a backward heading. This method returns null if the Heading has no backward heading.

Specified by:
getBackwardHeading in interface Heading

getChildCount

public int getChildCount()
Specified by:
getChildCount in interface TaxonomyHeading

getParent

public SimpleTaxonomyHeading getParent()

getBackwardHeadings

public java.util.Enumeration getBackwardHeadings()
Retained from Facetmap v1, since it may be useful.


getSimpleTaxonomyFacet

public SimpleTaxonomyFacet getSimpleTaxonomyFacet()

setSimpleTaxonomyFacet

public void setSimpleTaxonomyFacet(SimpleTaxonomyFacet facet)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getFacet

public Facet getFacet()
Description copied from interface: Heading
Facet to which this Heading belongs. A Heading must belong to a Facet.

Specified by:
getFacet in interface Heading

getTreeNode

public TreeNode getTreeNode()

setTreeNode

public void setTreeNode(TreeNode treeNode)