|
Structured Text Toolkit | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.saelist.stx.operators.AbstractOperator
com.saelist.stx.operators.SplitOperator
See Operator for general description of the Operator
concept in stx.
If the pair's text contains pattern then the text to the
right of the pattern is moved to a new child and only the text to the
left of the pattern remains with the original pair. If the pair
already had children the new child is inserted in front of them.
For example, split on "//*" with pattern = ".*:.*" will transform the
structure
person
name : John
tel : 123
into
person
name
John
tel
123
| Field Summary |
| Fields inherited from class com.saelist.stx.operators.AbstractOperator |
config, logger |
| Constructor Summary | |
SplitOperator()
|
|
| Method Summary | |
void |
init()
Descendants should overide this if they vant to cache elements of config in member variables or do some other inital setup. |
void |
operate(Pair pair)
Performs the split operation on the given pair. |
| Methods inherited from class com.saelist.stx.operators.AbstractOperator |
init, visit |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SplitOperator()
| Method Detail |
public void init()
AbstractOperator
init in class AbstractOperatorpublic void operate(Pair pair)
operate in interface Operatoroperate in class AbstractOperator
|
Structured Text Toolkit | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||