summaryrefslogtreecommitdiffstats
path: root/parsers/ParserList.java
diff options
context:
space:
mode:
authorrsiddharth <rsiddharth@ninthfloor.org>2012-06-23 22:44:40 +0530
committerrsiddharth <rsiddharth@ninthfloor.org>2012-06-23 22:44:40 +0530
commit8bcd7f58acd38f5d5e1731f89be4a10a79d0fdb7 (patch)
tree6c1d4dfc97d77230ecf95d4e0f8b4fe1cde5b739 /parsers/ParserList.java
scruf is "bzr"ed now.
Diffstat (limited to 'parsers/ParserList.java')
-rw-r--r--parsers/ParserList.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/parsers/ParserList.java b/parsers/ParserList.java
new file mode 100644
index 0000000..11e3de0
--- /dev/null
+++ b/parsers/ParserList.java
@@ -0,0 +1,31 @@
+package scruf.parsers;
+
+import java.util.*;
+
+public class ParserList {
+ private List<Parser> parsers;
+ public ParserList() {
+ parsers = new ArrayList<Parser>();
+ // add Parsers.
+ parsers.add(new DocumentName());
+ parsers.add(new WordDecoration());
+ parsers.add(new CodeBlocks());
+ parsers.add(new Headings());
+ parsers.add(new Paragraphs());
+ parsers.add(new Links());
+ parsers.add(new Images());
+ parsers.add(new Footer());
+ parsers.add(new BackButton());
+ parsers.add(new Header());
+ }
+ public List<Parser> list() {
+ return new ArrayList<Parser>(parsers);
+ }
+ public static void main(String[] args) {
+ ParserList pl = new ParserList();
+ List<Parser> parser = pl.list();
+ parser.remove(0);
+ for(Parser p:pl.list())
+ System.out.println(p);
+ }
+}