public class NdmParser extends AbstractMessageParser<Ndm>
Constructor and Description |
---|
NdmParser(ParserBuilder builder)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addComment(String comment)
Add comment.
|
Ndm |
build()
Build the file from parsed entries.
|
Map<String,XmlTokenBuilder> |
getSpecialXmlElementsBuilders()
Get the non-default token builders for special XML elements.
|
void |
reset(FileFormat fileFormat)
Reset parser to initial state before parsing.
|
anticipateNext, getCurrent, getFileFormat, getFormatVersionKey, parseMessage, process, reset, setEndTagSeen, setFallback, wasEndTagSeen
public NdmParser(ParserBuilder builder)
Calling this constructor directly is not recommended. Users should rather use
parserBuilder.buildNdmParser()
.
builder
- builder for the constituents parserspublic Map<String,XmlTokenBuilder> getSpecialXmlElementsBuilders()
getSpecialXmlElementsBuilders
in interface MessageParser<Ndm>
getSpecialXmlElementsBuilders
in class AbstractMessageParser<Ndm>
public void reset(FileFormat fileFormat)
fileFormat
- format of the file ready to be parsedpublic Ndm build()
public boolean addComment(String comment)
Comments are accepted only at start. Once other content is stored in the same section, comments are refused.
comment
- comment lineCopyright © 2002-2021 CS GROUP. All rights reserved.