|
Jacson | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.spieleck.app.jacson.select.ParameterSelect
Select a chunk into some parameter. You could compare this behaviour with: <xsl:param name="foo"> <xsl:value-of select="node"/> <xsl:param /> The difference to jacson ParameterSelect is the node order. With jacson you decide first, what (chunk) to select. Second is, where you send it (the chunk) to. In this case the previously read/generated chunk is selected into a parameter - and stored for later reusage. The parameter should be initialized earlier (in a parent block). If you don't do so, the parameter is created within the current select block and gets lost after leaving it... (At least, that's what I'd expect it to be :-)) <select param="foo" />
Field Summary | |
protected java.lang.String |
curChunk
Current chunk |
static java.lang.String |
PARAMETER_NODE
Accept sub-node "param" |
protected JacsonState |
state
The state we live with |
Constructor Summary | |
ParameterSelect()
Default Constructor. |
Method Summary | |
boolean |
accept(ConfigNode cn)
Overwritten accept method. |
SelectionResult |
getNextSelection()
Called by a filter, to access the SelectionResult(s). |
void |
init(ConfigNode config,
JacsonRegistry registry)
Overwritten init method |
void |
registerState(JacsonState state)
Register the surrounding state |
void |
setChunk(java.lang.String chunk)
Feed the node with a chunk and reset match counter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PARAMETER_NODE
protected java.lang.String curChunk
protected JacsonState state
Constructor Detail |
public ParameterSelect()
Method Detail |
public void init(ConfigNode config, JacsonRegistry registry) throws JacsonConfigException
init
in interface JacsonRegistrable
JacsonConfigException
public boolean accept(ConfigNode cn)
accept
in interface ConfigVerify.Acceptor
public void registerState(JacsonState state)
registerState
in interface JacsonStately
public void setChunk(java.lang.String chunk)
setChunk
in interface JacsonSelect
public SelectionResult getNextSelection()
getNextSelection
in interface JacsonSelect
|
Spieleck | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |