net.obsearch.index.utils
Interface OBFactory<O extends OB>

All Known Implementing Classes:
OBSliceFactory

public interface OBFactory<O extends OB>

Instantiates objects from string lines.

Author:
amuller

Method Summary
 O create(String x)
          Creates a new object from the given String.
 boolean shouldProcess(O obj)
          Returns true if we should process (add / search) the given object.
 

Method Detail

create

O create(String x)
                    throws OBException
Creates a new object from the given String.

Parameters:
x - The string to use to instantiate the obj.
Returns:
The object.
Throws:
OBException

shouldProcess

boolean shouldProcess(O obj)
                      throws OBException
Returns true if we should process (add / search) the given object.

Returns:
true if we should process (add / search) the given object.
Throws:
OBException


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