flattree.tree
Class JumpLeaf

java.lang.Object
  extended by flattree.tree.AbstractLeaf
      extended by flattree.tree.JumpLeaf
All Implemented Interfaces:
Leaf

public class JumpLeaf
extends AbstractLeaf

A Leaf which jumps to a configured column - fails on Leaf.write(WriteLine, State) if the current column doesn't match.

See Also:
setColumn(int)

Field Summary
 
Fields inherited from interface flattree.tree.Leaf
REQUIRED
 
Constructor Summary
JumpLeaf()
           
JumpLeaf(int column)
           
 
Method Summary
 int getColumn()
           
protected  boolean readImpl(ReadLine line, State state)
          Do the actual reading.
 void setColumn(int column)
           
protected  void writeImpl(WriteLine line, State state)
          Do the actual writing.
 
Methods inherited from class flattree.tree.AbstractLeaf
getThrowOnRead, read, setThrowOnRead, throwOnRead, throwOnRead, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JumpLeaf

public JumpLeaf()

JumpLeaf

public JumpLeaf(int column)
Method Detail

setColumn

public void setColumn(int column)

getColumn

public int getColumn()

writeImpl

protected void writeImpl(WriteLine line,
                         State state)
Description copied from class: AbstractLeaf
Do the actual writing.

Specified by:
writeImpl in class AbstractLeaf

readImpl

protected boolean readImpl(ReadLine line,
                           State state)
Description copied from class: AbstractLeaf
Do the actual reading.

Specified by:
readImpl in class AbstractLeaf


Copyright © 2011. All Rights Reserved.