atg.repository.search.refinement
Class FacetHolder

java.lang.Object
  extended by atg.repository.search.refinement.FacetHolder

public class FacetHolder
extends java.lang.Object

This class holds a single facet and the facet values that are associated with it. This can be used when rendering a facet trail and when rendering the facet values where you wish to group the associated values with the facet.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
protected  FacetValueNode[] mAllFacetValueNodes
           
protected  Facet mFacet
           
protected  java.util.ArrayList mFacetValueNodes
           
 
Constructor Summary
FacetHolder(Facet pFacet)
          Constructor.
FacetHolder(Facet pFacet, FacetValueNode[] pFacetValues)
          Constructor.
 
Method Summary
 void addFacetValueNode(FacetValueNode pFacetValueNode)
           
 FacetValueNode[] getAllFacetValueNodes()
           
 Facet getFacet()
          Getter for the facet associated with this node
 FacetValueNode[] getFacetValueNodes()
          Getter for the array of facet values associated with this facet
 void removeFacetValueNode(FacetValueNode pFacetValueNode)
           
 void setAllFacetValueNodes(FacetValueNode[] pAllFacetValueNodes)
           
 void setFacet(Facet pFacet)
          Setter for the facet associated with this node
 void setFacetValueNodes(FacetValueNode[] pFacetValueNodes)
          Setter for the array of facet values associated with this facet
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string


mFacet

protected Facet mFacet

mFacetValueNodes

protected java.util.ArrayList mFacetValueNodes

mAllFacetValueNodes

protected FacetValueNode[] mAllFacetValueNodes
Constructor Detail

FacetHolder

public FacetHolder(Facet pFacet)
Constructor. Sets the facet.

Parameters:
pFacet - Facet for this instance.

FacetHolder

public FacetHolder(Facet pFacet,
                   FacetValueNode[] pFacetValues)
Constructor. Sets the facet and facet values.

Parameters:
pFacet - Facet for this class.
pFacetValues - Array of facet value nodes for this instance.
Method Detail

getFacet

public Facet getFacet()
Getter for the facet associated with this node

Returns:
The Facet object for this facet node.

setFacet

public void setFacet(Facet pFacet)
Setter for the facet associated with this node

Parameters:
pFacet - The Facet object for this facet node.

getFacetValueNodes

public FacetValueNode[] getFacetValueNodes()
Getter for the array of facet values associated with this facet

Returns:
An array of FacetValueNode instances.

setFacetValueNodes

public void setFacetValueNodes(FacetValueNode[] pFacetValueNodes)
Setter for the array of facet values associated with this facet


addFacetValueNode

public void addFacetValueNode(FacetValueNode pFacetValueNode)

removeFacetValueNode

public void removeFacetValueNode(FacetValueNode pFacetValueNode)

getAllFacetValueNodes

public FacetValueNode[] getAllFacetValueNodes()

setAllFacetValueNodes

public void setAllFacetValueNodes(FacetValueNode[] pAllFacetValueNodes)

toString

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