+ private void parseTextBlock(TokenizerMatch tm) {
+ TextBlock textBlock;
+ if (isLastContentElement(TextBlock.class)) {
+ textBlock = ((TextBlock) findCurrentContentElement());
+ } if (content.isEmpty()){
+ // list title continuation
+ nameInOrg.append("\n").append(removePrefix(tm.token, indent + 2));
+ return;
+ } else {
+ textBlock = new TextBlock();
+ content.add(textBlock);
+ }
+
+ textBlock.addContent(tm.token);
+ }
+
+ private void parseDocumentProperty(TokenizerMatch tm) {
+ DocumentPropertyCollection documentPropertyCollection;
+
+ if (isLastContentElement(DocumentPropertyCollection.class)){
+ documentPropertyCollection = (DocumentPropertyCollection)findCurrentContentElement();
+ } else {
+ documentPropertyCollection = new DocumentPropertyCollection();
+ content.add(documentPropertyCollection);
+ }
+
+ documentPropertyCollection.addProperty(
+ tm.getRegExpGroups()[0],
+ tm.getRegExpGroups()[1]);
+ }
+
+ private void parseSeparator() {
+ if (isLastContentElement(Separator.class)){
+ ((Separator)findCurrentContentElement()).addLine();
+ } else {
+ content.add(new Separator());
+ }
+ }
+