flattree.tree
Class ValueLeaf
java.lang.Object
  
flattree.tree.AbstractLeaf
      
flattree.tree.ValueLeaf
- All Implemented Interfaces: 
 - Leaf
 
- Direct Known Subclasses: 
 - DelimitedLeaf, FixedLengthLeaf, SyntheticLeaf
 
public abstract class ValueLeaf
- extends AbstractLeaf
 
Base class for leaves with a value.
- See Also:
 setName(String), 
State.putValue(String, String), 
State.getValue(String)
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ValueLeaf
protected ValueLeaf()
ValueLeaf
protected ValueLeaf(String name)
getName
public String getName()
 
setName
public void setName(String name)
 
writeImpl
protected void writeImpl(WriteLine line,
                         State state)
- Description copied from class: 
AbstractLeaf 
- Do the actual writing.
- Specified by:
 writeImpl in class AbstractLeaf
 
 
 
writeValue
protected abstract void writeValue(WriteLine line,
                                   String value)
 
readImpl
protected boolean readImpl(ReadLine line,
                           State state)
- Description copied from class: 
AbstractLeaf 
- Do the actual reading.
- Specified by:
 readImpl in class AbstractLeaf
 
 
 
readValue
protected abstract String readValue(ReadLine line)
- Read this leaf's value from the given line.
- Parameters:
 line - line to read from
- Returns:
 - value or 
null if this leaf cannot be read from the
         given line - See Also:
 AbstractLeaf.setThrowOnRead(boolean)
 
 
Copyright © 2011. All Rights Reserved.