All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.browseengine.bobo.facets.FacetHandlerInitializerParam Maven / Gradle / Ivy

Go to download

Bobo is a Faceted Search implementation written purely in Java, an extension of Apache Lucene

The newest version!
/**
 *
 */
package com.browseengine.bobo.facets;

import java.io.Serializable;
import java.util.Collections;
import java.util.List;
import java.util.Set;

/**
 * The dummy interface to indicate that a class type can be used for initializing RuntimeFacetHandlers.
 */
public abstract class FacetHandlerInitializerParam implements Serializable {
  public static final FacetHandlerInitializerParam EMPTY_PARAM = new FacetHandlerInitializerParam() {
    /**
     *
     */
    private static final long serialVersionUID = 1L;

    @Override
    public List getStringParam(String name) {
      return null;
    }

    @Override
    public int[] getIntParam(String name) {
      return null;
    }

    @Override
    public boolean[] getBooleanParam(String name) {
      return null;
    }

    @Override
    public long[] getLongParam(String name) {
      return null;
    }

    @Override
    public byte[] getByteArrayParam(String name) {
      return null;
    }

    @Override
    public double[] getDoubleParam(String name) {
      return null;
    }

    @Override
    public Set getBooleanParamNames() {
      return Collections.emptySet();
    }

    @Override
    public Set getStringParamNames() {
      return Collections.emptySet();
    }

    @Override
    public Set getIntParamNames() {
      return Collections.emptySet();
    }

    @Override
    public Set getByteArrayParamNames() {
      return Collections.emptySet();
    }

    @Override
    public Set getLongParamNames() {
      return Collections.emptySet();
    }

    @Override
    public Set getDoubleParamNames() {
      return Collections.emptySet();
    }
  };

  /**
   *
   */
  private static final long serialVersionUID = 1L;
  /**
   * The transaction ID
   */
  private long tid = -1;

  /**
   * Get the transaction ID.
   * @return the transaction ID.
   */
  public final long getTid() {
    return tid;
  }

  /**
   * Set the transaction ID;
   * @param tid
   */
  public final void setTid(long tid) {
    this.tid = tid;
  }

  public abstract List getStringParam(String name);

  public abstract int[] getIntParam(String name);

  public abstract boolean[] getBooleanParam(String name);

  public abstract long[] getLongParam(String name);

  public abstract byte[] getByteArrayParam(String name);

  public abstract double[] getDoubleParam(String name);

  public abstract Set getBooleanParamNames();

  public abstract Set getStringParamNames();

  public abstract Set getIntParamNames();

  public abstract Set getByteArrayParamNames();

  public abstract Set getLongParamNames();

  public abstract Set getDoubleParamNames();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy