|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflattree.process.State
public class State
The state of a Node and its Leafs while it is being
processed.
Node.read(flattree.flat.ReadLine, State),
Node.write(flattree.flat.WriteLine, State)| Constructor Summary | |
|---|---|
State()
Create an empty state. |
|
State(Map<String,String> values)
Create state from the given values. |
|
State(String name,
String value)
Convenience constructor for a single value. |
|
| Method Summary | |
|---|---|
void |
clear()
Clear this state. |
Range |
getRange()
Get the range for the Node in the FlatReader or
FlatWriter. |
Range |
getRange(Leaf leaf)
Get the range for the given Leaf in the FlatReader or
FlatWriter. |
String |
getValue(String name)
Get the value for the given name. |
Map<String,String> |
getValues()
Get all values. |
void |
putValue(String name,
String value)
Put the given value in this state. |
void |
setRange(int from,
int to)
Set the range for the Node in the FlatReader or
FlatWriter. |
void |
setRange(Leaf leaf,
int from,
int to)
Set the range for the given Leaf in the FlatReader or
FlatWriter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public State()
public State(Map<String,String> values)
values - initial state
public State(String name,
String value)
name - name of valuevalue - value| Method Detail |
|---|
public void clear()
public void putValue(String name,
String value)
name - name of valuevalue - valuepublic String getValue(String name)
name - name to get value
public void setRange(int from,
int to)
Node in the FlatReader or
FlatWriter.
from - range start indexto - range end indexpublic Range getRange()
Node in the FlatReader or
FlatWriter.
public void setRange(Leaf leaf,
int from,
int to)
Leaf in the FlatReader or
FlatWriter.
from - range start indexto - range end indexpublic Range getRange(Leaf leaf)
Leaf in the FlatReader or
FlatWriter.
public Map<String,String> getValues()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||