+ private void parseTextBlock(TokenizerMatch tm) {
+ TextBlock textBlock;
+ if (isLastContentElement(TextBlock.class)) {
+ textBlock = ((TextBlock) findCurrentContentElement());
+ } else {
+ textBlock = new TextBlock();
+ content.add(textBlock);
+ }
+
+ textBlock.addContent(tm.token + "\n");
+ }
+
+ 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());
+ }
+ }
+