public class ParameterGroup extends MarkGroup
To add a StructRule to a Parameter group you have to set it to a specific index within that group. So the first occurence
when the separator is found should be treated with the StructRule set for index 1, etc. Using the default MarkGroup.add(StructRule) operation
will add the rule at the last index within the rules.
If not for all occurrences of the separator a rule is definied the value between the separators are just ignored.
The group itself is treated as a seperate element
ParameterRule is used for splitting a list of values with a separator with the same StructRule
LEFTQUOTE, m_endPos, m_startPosBOL, EMPTY_LINE, EOB, EOL, m_attribute, m_out, m_terminate, SPACEMAP, XML| Constructor and Description |
|---|
ParameterGroup(Position start,
Position end,
Position seperator,
java.lang.Object object,
boolean useGroup)
Constructor for ParameterGroup
|
ParameterGroup(Position start,
Position end,
Position seperator,
java.lang.Object object,
boolean useGroup,
int outputType)
Constructor for ParameterGroup
|
ParameterGroup(java.lang.String start,
Position end,
java.lang.String seperator,
java.lang.Object out)
Constructor for ParameterGroup
|
ParameterGroup(java.lang.String start,
java.lang.String end,
java.lang.String seperator,
java.lang.Object out)
Constructor for ParamterGroup.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
StructRule rule)
add a StructRule at a specific Index
|
protected void |
applyRules(int lineno)
not implemented
|
java.lang.Object |
getObject()
get the Object created as a result of the input matching
this group.
|
void |
readline(java.lang.String line,
int lineno)
read a line from the parser for processing, with
tracking the line number
|
add, addAttribute, addAttribute, addAttribute, addAttribute, addStatic, addStaticAttribute, addTransformat, createObject, getOutputType, getRules, insertTransformatclearBuffer, findQuote, getBuffer, isAttribute, isWord, readline, setAttribute, setBuffer, terminategetParent, getTransformats, isFinished, isFound, isTerminate, removeWhitespace, reset, set, setFinished, setFound, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTransformats, isFinished, isFound, readline, reset, setParentpublic ParameterGroup(java.lang.String start,
java.lang.String end,
java.lang.String seperator,
java.lang.Object out)
start - end - seperator - out - public ParameterGroup(java.lang.String start,
Position end,
java.lang.String seperator,
java.lang.Object out)
start - end - seperator - out - public ParameterGroup(Position start, Position end, Position seperator, java.lang.Object object, boolean useGroup)
start - end - seperator - object - useGroup - protected void applyRules(int lineno)
applyRules in class MarkGroupMarkGroup.applyRules(int)public void readline(java.lang.String line,
int lineno)
The StructParser supplies the input line for line. This
does not limit the rules to one line. This is only dependant
on StructRule.isFound() and StructRule.isFinished()
readline in interface StructGroupreadline in class MarkGroupline - String, the line to be readlineno - int, the linenumber of this lineStructParserpublic java.lang.Object getObject()
getObject in interface StructGroupgetObject in class MarkGroupStructGroup.isFound() is never true
for this group and might not be correctly set if StructGroup.isFinished() never is trueStructGroup.getObject()public void add(int index,
StructRule rule)
If the rules between the elements are not defined null is inserted for the rules in between.
index - intrule - StructRule