Skip navigation links

Oracle Fusion Middleware Web 2.0 Services Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1)
E10693-01


oracle.webcenter.search.refine
Class DateRefinerBuilder

java.lang.Object
  extended by oracle.webcenter.search.refine.RefinerBuilder<java.util.Calendar>
      extended by oracle.webcenter.search.refine.DateRefinerBuilder


public class DateRefinerBuilder
extends RefinerBuilder<java.util.Calendar>

This class builds refiners of type Calendar. It is constructed with a QName that it eventually passes on to the DateRefiner it builds.

Since:
11.1.1.0.0 Beta 2

Constructor Summary
DateRefinerBuilder(QName name)
          Constructs a DateRefinerBuilder with a qualified name and a default time zone.
DateRefinerBuilder(QName name, java.util.TimeZone timeZone)
          Constructs a DateRefinerBuilder with a qualified name and a specified time zone.

 

Method Summary
protected  java.util.Calendar convert(java.lang.Object value)
          Method used by subclasses to convert any Object into a Calendar.
protected  Refiner<java.util.Calendar> createRefiner(QName column, java.util.Map<java.util.Calendar,java.lang.Integer> counters)
          Creates a DateRefiner with the column name and a map of counters for each entry of Calendar.

 

Methods inherited from class oracle.webcenter.search.refine.RefinerBuilder
consumeRow, getRefiner, visit, visit

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

DateRefinerBuilder

public DateRefinerBuilder(QName name)
Constructs a DateRefinerBuilder with a qualified name and a default time zone.
Parameters:
name - the name to associate with the eventual DateRefiner built

DateRefinerBuilder

public DateRefinerBuilder(QName name,
                          java.util.TimeZone timeZone)
Constructs a DateRefinerBuilder with a qualified name and a specified time zone.
Parameters:
name - the name to associate with the eventual DateRefiner built
timeZone - the time zone to format a date / calendar with

Method Detail

convert

protected final java.util.Calendar convert(java.lang.Object value)
Method used by subclasses to convert any Object into a Calendar.
Specified by:
convert in class RefinerBuilder<java.util.Calendar>
Parameters:
value - an arbitrary Object that can be converted to type T

createRefiner

protected Refiner<java.util.Calendar> createRefiner(QName column,
                                                    java.util.Map<java.util.Calendar,java.lang.Integer> counters)
Creates a DateRefiner with the column name and a map of counters for each entry of Calendar.
Specified by:
createRefiner in class RefinerBuilder<java.util.Calendar>
Parameters:
column - a QName signifying the column to navigate over
counters - a Map of Calendar counters, one for each Calendar value encountered

Skip navigation links

Oracle Fusion Middleware Web 2.0 Services Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1)
E10693-01


Copyright © 2009, Oracle. All rights reserved.