Jacson

de.spieleck.app.jacson.select
Class SubstringSelect

java.lang.Object
  extended byde.spieleck.app.jacson.select.SubstringSelect
All Implemented Interfaces:
ConfigVerify.Acceptor, JacsonRegistrable, JacsonSelect

public class SubstringSelect
extends java.lang.Object
implements JacsonSelect, ConfigVerify.Acceptor

Select Strings as a java.lang.String.substring() would do.

Author:
fsn

Field Summary
protected  java.lang.String curChunk
           
protected  boolean first
           
protected  int from
           
static java.lang.String FROM_NODE
           
protected  SimpleResult result
           
protected  int to
           
static java.lang.String TO_NODE
           
 
Constructor Summary
SubstringSelect()
           
 
Method Summary
 boolean accept(ConfigNode cn)
           
 SelectionResult getNextSelection()
           
 void init(ConfigNode config, JacsonRegistry registry)
           
 void setChunk(java.lang.String chunk)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FROM_NODE

public static final java.lang.String FROM_NODE
See Also:
Constant Field Values

TO_NODE

public static final java.lang.String TO_NODE
See Also:
Constant Field Values

from

protected int from

to

protected int to

curChunk

protected java.lang.String curChunk

first

protected boolean first

result

protected SimpleResult result
Constructor Detail

SubstringSelect

public SubstringSelect()
Method Detail

init

public void init(ConfigNode config,
                 JacsonRegistry registry)
          throws JacsonConfigException
Specified by:
init in interface JacsonRegistrable
Throws:
JacsonConfigException

accept

public boolean accept(ConfigNode cn)
Specified by:
accept in interface ConfigVerify.Acceptor

setChunk

public void setChunk(java.lang.String chunk)
Specified by:
setChunk in interface JacsonSelect

getNextSelection

public SelectionResult getNextSelection()
Specified by:
getNextSelection in interface JacsonSelect

Spieleck

Copyleft 2002 spieleck.de.