public class UniqueRule extends BaseRule
UniqueToken
from an <unique> element, which contains full content.Constructor and Description |
---|
UniqueRule() |
Modifier and Type | Method and Description |
---|---|
protected void |
addTextTokens(IScriptToken token,
java.lang.String text,
org.apache.hivemind.Location location)
Parses the provided text and converts it into a series of
|
protected void |
addToParent(RuleDirectedParser parser,
IScriptToken token)
Adds a token to its parent, the top object on the stack.
|
void |
content(RuleDirectedParser parser,
java.lang.String content)
Peeks at the top object on the stack (which must be a
IScriptToken ),
and converts the text into a series of StaticToken and
InsertToken s. |
void |
endElement(RuleDirectedParser parser)
Invoked just after the rule is popped off the rule stack.
|
void |
startElement(RuleDirectedParser parser,
org.xml.sax.Attributes attributes)
Invoked just after the rule is pushed onto the rule stack.
|
getAttribute
public UniqueRule()
public void endElement(RuleDirectedParser parser)
IRule
endElement
in interface IRule
endElement
in class BaseRule
public void startElement(RuleDirectedParser parser, org.xml.sax.Attributes attributes)
IRule
startElement
in interface IRule
startElement
in class BaseRule
protected void addToParent(RuleDirectedParser parser, IScriptToken token)
public void content(RuleDirectedParser parser, java.lang.String content)
IScriptToken
),
and converts the text into a series of StaticToken
and
InsertToken
s.protected void addTextTokens(IScriptToken token, java.lang.String text, org.apache.hivemind.Location location)