Oracle Fusion Applications Search Java API Reference for Oracle Enterprise Crawl and Search Framework
11g Release 1 (11.1.1.6)

E21908-03

oracle.ecsf.impl.facet
Class FacetPath

java.lang.Object
  extended by oracle.ecsf.impl.facet.FacetPath
All Implemented Interfaces:
java.io.Serializable

public class FacetPath
extends java.lang.Object
implements java.io.Serializable

Represents the values selected for a facet and its child facets.

See Also:
Serialized Form

Constructor Summary
FacetPath()
          Constructor for FacetPath with no facet selections.
FacetPath(FacetSelection[] selections)
          Constructor for FacetPath with facet selections.
FacetPath(java.lang.String[] facetNames, java.lang.String[] selectedValues)
          Constructor for FacetPath with facet selections.
 
Method Summary
 FacetPath addSelection(java.lang.String facetName, java.lang.String value)
          Adds a facet selection to the path.
 FacetSelection[] getSelections()
          Gets the selections.
 java.lang.String[] getValues()
          Get just the values for the selections.
 boolean isEqual(FacetPath facetPath)
          Equals if thier facet selections are equal via Arryas.equals
 FacetPath removeSelection()
           
 void setSelections(FacetSelection[] facetSelections)
          Sets the selections.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FacetPath

public FacetPath()
Constructor for FacetPath with no facet selections.


FacetPath

public FacetPath(FacetSelection[] selections)
Constructor for FacetPath with facet selections.

Parameters:
selections - - the selections made for facets starting from root down to child.

FacetPath

public FacetPath(java.lang.String[] facetNames,
                 java.lang.String[] selectedValues)
Constructor for FacetPath with facet selections.

Parameters:
facetNames - - the names of facets from root to child.
selectedValues - - the values selected for each facet from root to child.
Method Detail

addSelection

public FacetPath addSelection(java.lang.String facetName,
                              java.lang.String value)
Adds a facet selection to the path.

Parameters:
facetName - - the name of the facet.
value - - the value selected for the facet.

setSelections

public void setSelections(FacetSelection[] facetSelections)
Sets the selections.

Parameters:
facetSelections -

getSelections

public FacetSelection[] getSelections()
Gets the selections.

Returns:
FacetSelection[]

getValues

public java.lang.String[] getValues()
Get just the values for the selections.

Returns:
String[]

removeSelection

public FacetPath removeSelection()

toString

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

isEqual

public boolean isEqual(FacetPath facetPath)
Equals if thier facet selections are equal via Arryas.equals

Parameters:
facetPath - the FacetPath to be tested.
Returns:
true if they equal.

Oracle Fusion Applications Search Java API Reference for Oracle Enterprise Crawl and Search Framework
11g Release 1 (11.1.1.6)

E21908-03

Copyright © 2012 Oracle. All rights reserved.