net.obsearch.example
Class OBSliceFactory
java.lang.Object
net.obsearch.example.OBSliceFactory
- All Implemented Interfaces:
- OBFactory<OBSlice>
public class OBSliceFactory
- extends Object
- implements OBFactory<OBSlice>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maxSliceSize
public static int maxSliceSize
OBSliceFactory
public OBSliceFactory()
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.