flattree.tree
Class SyntheticLeaf

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

public class SyntheticLeaf
extends ValueLeaf

A Leaf for a synthetic value in the tree without a flat representation.


Field Summary
 
Fields inherited from interface flattree.tree.Leaf
REQUIRED
 
Constructor Summary
protected SyntheticLeaf()
           
  SyntheticLeaf(String name, String value)
           
 
Method Summary
 String getValue()
           
protected  String readValue(ReadLine line)
          Reads nothing.
 void setValue(String value)
           
protected  void writeValue(WriteLine line, String value)
          Writes nothing.
 
Methods inherited from class flattree.tree.ValueLeaf
getName, readImpl, setName, writeImpl
 
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

SyntheticLeaf

protected SyntheticLeaf()

SyntheticLeaf

public SyntheticLeaf(String name,
                     String value)
Method Detail

getValue

public String getValue()

setValue

public void setValue(String value)

writeValue

protected void writeValue(WriteLine line,
                          String value)
Writes nothing.

Specified by:
writeValue in class ValueLeaf
Throws:
TreeException - if value doesn't equal configured value.
See Also:
setValue(String)

readValue

protected String readValue(ReadLine line)
Reads nothing.

Specified by:
readValue in class ValueLeaf
Parameters:
line - line to read from
Returns:
configured value
See Also:
setValue(String)


Copyright © 2011. All Rights Reserved.