net.obsearch.example
Class OBSliceFactory

java.lang.Object
  extended by net.obsearch.example.OBSliceFactory
All Implemented Interfaces:
OBFactory<OBSlice>

public class OBSliceFactory
extends Object
implements OBFactory<OBSlice>


Field Summary
static int maxSliceSize
           
 
Constructor Summary
OBSliceFactory()
           
 
Method Summary
 OBSlice create(String x)
          Creates a new object from the given String.
 int getMaxSliceSize()
           
 void setMaxSliceSize(int maxSliceSize)
           
 boolean shouldProcess(OBSlice obj)
          Returns true if we should process (add / search) the given object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxSliceSize

public static int maxSliceSize
Constructor Detail

OBSliceFactory

public OBSliceFactory()
Method Detail

getMaxSliceSize

public int getMaxSliceSize()
Returns:
the maxSliceSize

setMaxSliceSize

public void setMaxSliceSize(int maxSliceSize)
Parameters:
maxSliceSize - the maxSliceSize to set

create

public OBSlice create(String x)
               throws OBException
Description copied from interface: OBFactory
Creates a new object from the given String.

Specified by:
create in interface OBFactory<OBSlice>
Parameters:
x - The string to use to instantiate the obj.
Returns:
The object.
Throws:
OBException

shouldProcess

public boolean shouldProcess(OBSlice obj)
                      throws OBException
Description copied from interface: OBFactory
Returns true if we should process (add / search) the given object.

Specified by:
shouldProcess in interface OBFactory<OBSlice>
Returns:
true if we should process (add / search) the given object.
Throws:
OBException


Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.