|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.data.spreadsheet.cellfinder.AbstractCellFinder
public abstract class AbstractCellFinder
Ancestor for schemes that locate cells of interest in a spreadsheet.
| Field Summary |
|---|
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
AbstractCellFinder()
|
|
| Method Summary | |
|---|---|
protected void |
check(SpreadSheet sheet)
Checks whether the spreadsheet can be processed. |
protected abstract Iterator<CellLocation> |
doFindCells(SpreadSheet sheet)
Performs the actual locating. |
Iterator<CellLocation> |
findCells(SpreadSheet sheet)
Locates the cells in the spreadsheet. |
static AbstractCellFinder |
forCommandLine(String cmdline)
Instantiates the cell finder from the given commandline (i.e., classname and optional options). |
static AbstractCellFinder |
forName(String classname,
String[] options)
Instantiates the cell finder with the given options. |
static String[] |
getCellFinders()
Returns a list with classnames of cell finders. |
AbstractCellFinder |
shallowCopy()
Returns a shallow copy of itself, i.e., based on the commandline options. |
AbstractCellFinder |
shallowCopy(boolean expand)
Returns a shallow copy of itself, i.e., based on the commandline options. |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, defineOptions, destroy, finishInit, getDebugLevel, getOptionManager, globalInfo, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCellFinder()
| Method Detail |
|---|
protected void check(SpreadSheet sheet)
sheet - the spreadsheet to checkprotected abstract Iterator<CellLocation> doFindCells(SpreadSheet sheet)
sheet - the sheet to locate the cells in
public Iterator<CellLocation> findCells(SpreadSheet sheet)
sheet - the sheet to locate the cells in
public AbstractCellFinder shallowCopy()
shallowCopy in interface ShallowCopySupporter<AbstractCellFinder>public AbstractCellFinder shallowCopy(boolean expand)
shallowCopy in interface ShallowCopySupporter<AbstractCellFinder>expand - whether to expand variables to their current values
public static String[] getCellFinders()
public static AbstractCellFinder forName(String classname,
String[] options)
classname - the classname of the cell finder to instantiateoptions - the options for the cell finder
public static AbstractCellFinder forCommandLine(String cmdline)
cmdline - the classname (and optional options) of the
cell finder to instantiate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||