Package br.com.caelum.tubaina.builder.replacer

Examples of br.com.caelum.tubaina.builder.replacer.ImageReplacer


    // Answer tag
    replacers = new ArrayList<Replacer>();
    replacers.add(new BoxReplacer(resources));
    replacers.add(new CodeReplacer());
    replacers.add(new ImageReplacer(resources));
    replacers.add(new JavaReplacer());
    replacers.add(new ListReplacer(resources));
    replacers.add(new NoteReplacer(resources));
    replacers.add(new XmlReplacer());
    replacers.add(new IndexReplacer(resources));
    replacers.add(new TodoReplacer());
    replacers.add(new RubyReplacer());
    replacers.add(new TableReplacer(resources));
    replacers.add(new CenteredParagraphReplacer());
    replacers.add(new ParagraphReplacer(paragraphTerminator));
    replacerMap.put("answer", replacers);

    // Box tag
    replacers = new ArrayList<Replacer>();
    replacers.add(new CodeReplacer());
    replacers.add(new ImageReplacer(resources));
    replacers.add(new JavaReplacer());
    replacers.add(new ListReplacer(resources));
    replacers.add(new XmlReplacer());
    replacers.add(new NoteReplacer(resources));
    replacers.add(new IndexReplacer(resources));
    replacers.add(new TodoReplacer());
    replacers.add(new RubyReplacer());
    replacers.add(new TableReplacer(resources));
    replacers.add(new CenteredParagraphReplacer());
    replacers.add(new ParagraphReplacer(paragraphTerminator));
    replacerMap.put("box", replacers);

    // Exercise tag
    replacers = new ArrayList<Replacer>();
    replacers.add(new QuestionReplacer(resources));
    replacers.add(new NoteReplacer(resources));
    replacers.add(new TodoReplacer());
    replacerMap.put("exercise", replacers);

    // Item tag
    replacers = new ArrayList<Replacer>();
    replacers.add(new BoxReplacer(resources));
    replacers.add(new CodeReplacer());
    replacers.add(new ExerciseReplacer(resources));
    replacers.add(new ListReplacer(resources));
    replacers.add(new ImageReplacer(resources));
    replacers.add(new JavaReplacer());
    replacers.add(new NoteReplacer(resources));
    replacers.add(new XmlReplacer());
    replacers.add(new IndexReplacer(resources));
    replacers.add(new TodoReplacer());
    replacers.add(new RubyReplacer());
    replacers.add(new CenteredParagraphReplacer());
    replacers.add(new ParagraphReplacer(paragraphTerminator));
    replacerMap.put("item", replacers);

    // List tag
    replacers = new ArrayList<Replacer>();
    replacers.add(new ItemReplacer(resources));
    replacers.add(new NoteReplacer(resources));
    replacers.add(new TodoReplacer());
    replacerMap.put("list", replacers);

    // Note tag
    replacers = new ArrayList<Replacer>();
    replacers.add(new CodeReplacer());
    replacers.add(new ImageReplacer(resources));
    replacers.add(new JavaReplacer());
    replacers.add(new ListReplacer(resources));
    replacers.add(new XmlReplacer());
    replacers.add(new IndexReplacer(resources));
    replacers.add(new TodoReplacer());
    replacers.add(new RubyReplacer());
    replacers.add(new TableReplacer(resources));
    replacers.add(new CenteredParagraphReplacer());
    replacers.add(new ParagraphReplacer(paragraphTerminator));
    replacerMap.put("note", replacers);

    // Question tag
    replacers = new ArrayList<Replacer>();
    replacers.add(new AnswerReplacer(resources));
    replacers.add(new BoxReplacer(resources));
    replacers.add(new CodeReplacer());
    replacers.add(new ImageReplacer(resources));
    replacers.add(new JavaReplacer());
    replacers.add(new ListReplacer(resources));
    replacers.add(new NoteReplacer(resources));
    replacers.add(new XmlReplacer());
    replacers.add(new IndexReplacer(resources));
    replacers.add(new NoteReplacer(resources));
    replacers.add(new TodoReplacer());
    replacers.add(new RubyReplacer());
    replacers.add(new TableReplacer(resources));
    replacers.add(new CenteredParagraphReplacer());
    replacers.add(new ParagraphReplacer(paragraphTerminator));
    replacerMap.put("question", replacers);

    // Table tag
    replacers = new ArrayList<Replacer>();
    replacers.add(new TableRowReplacer(resources));
    replacers.add(new TodoReplacer());
    replacerMap.put("table", replacers);
   
    // Row tag
    replacers = new ArrayList<Replacer>();
    replacers.add(new TableColumnReplacer(resources));
    replacers.add(new TodoReplacer());
    replacerMap.put("row", replacers);
   
    // Column tag
    replacers = new ArrayList<Replacer>();
    replacers.add(new AnswerReplacer(resources));
    replacers.add(new BoxReplacer(resources));
    replacers.add(new CodeReplacer());
    replacers.add(new ExerciseReplacer(resources));
    replacers.add(new ImageReplacer(resources));
    replacers.add(new JavaReplacer());
    replacers.add(new ListReplacer(resources));
    replacers.add(new NoteReplacer(resources));
    replacers.add(new QuestionReplacer(resources));
    replacers.add(new XmlReplacer());
    replacers.add(new TodoReplacer());
    replacers.add(new RubyReplacer());
    replacers.add(new ParagraphReplacer(paragraphTerminator));
    replacerMap.put("col", replacers);

    // All tags not restricted to others, like ItemTag
    replacers = new ArrayList<Replacer>();
    replacers.add(new AnswerReplacer(resources));
    replacers.add(new BoxReplacer(resources));
    replacers.add(new CodeReplacer());
    replacers.add(new ExerciseReplacer(resources));
    replacers.add(new ImageReplacer(resources));
    replacers.add(new JavaReplacer());
    replacers.add(new ListReplacer(resources));
    replacers.add(new NoteReplacer(resources));
    replacers.add(new QuestionReplacer(resources));
    replacers.add(new XmlReplacer());
View Full Code Here


    // Answer tag
    replacers = new ArrayList<Replacer>();
    replacers.add(new BoxReplacer(resources));
    replacers.add(new CodeReplacer());
    replacers.add(new GistReplacer());
    replacers.add(new ImageReplacer(sectionsManager, resources));
    replacers.add(new JavaReplacer());
    replacers.add(new ListReplacer(resources));
    replacers.add(new NoteReplacer(resources));
    replacers.add(new XmlReplacer());
    replacers.add(new IndexReplacer(resources));
    replacers.add(new TodoReplacer());
    replacers.add(new RubyReplacer());
    replacers.add(new TableReplacer(resources));

    replacers.add(new CenteredParagraphReplacer());
    replacers.add(new ParagraphReplacer(paragraphTerminator));
    replacerMap.put("answer", replacers);
   
    // subsection tag
    replacers = new ArrayList<Replacer>();
    replacers.add(new BoxReplacer(resources));
    replacers.add(new CodeReplacer());
    replacers.add(new GistReplacer());
    replacers.add(new ExerciseReplacer(resources));
    replacers.add(new ImageReplacer(sectionsManager, resources));
    replacers.add(new JavaReplacer());
    replacers.add(new ListReplacer(resources));
    replacers.add(new NoteReplacer(resources));
    replacers.add(new XmlReplacer());
    replacers.add(new IndexReplacer(resources));
    replacers.add(new TodoReplacer());
    replacers.add(new RubyReplacer());
    replacers.add(new TableReplacer(resources));
    replacers.add(new CenteredParagraphReplacer());
    replacers.add(new ParagraphReplacer(paragraphTerminator));
    replacerMap.put("subsection", replacers);

    // Box tag
    replacers = new ArrayList<Replacer>();
    replacers.add(new CodeReplacer());
    replacers.add(new GistReplacer());
    replacers.add(new ImageReplacer(sectionsManager, resources));
    replacers.add(new JavaReplacer());
    replacers.add(new ListReplacer(resources));
    replacers.add(new XmlReplacer());
    replacers.add(new NoteReplacer(resources));
    replacers.add(new IndexReplacer(resources));
    replacers.add(new TodoReplacer());
    replacers.add(new RubyReplacer());
    replacers.add(new TableReplacer(resources));
    replacers.add(new CenteredParagraphReplacer());
    replacers.add(new ParagraphReplacer(paragraphTerminator));
    replacerMap.put("box", replacers);
   
    // Exercise tag
    replacers = new ArrayList<Replacer>();
    replacers.add(new QuestionReplacer(resources));
    replacers.add(new TodoReplacer());
    replacerMap.put("exercise", replacers);

    // Item tag
    replacers = new ArrayList<Replacer>();
    replacers.add(new BoxReplacer(resources));
    replacers.add(new CodeReplacer());
    replacers.add(new GistReplacer());
    replacers.add(new ExerciseReplacer(resources));
    replacers.add(new ListReplacer(resources));
    replacers.add(new ImageReplacer(sectionsManager, resources));
    replacers.add(new JavaReplacer());
    replacers.add(new NoteReplacer(resources));
    replacers.add(new XmlReplacer());
    replacers.add(new IndexReplacer(resources));
    replacers.add(new TodoReplacer());

    replacers.add(new RubyReplacer());
    replacers.add(new CenteredParagraphReplacer());
    replacers.add(new ParagraphReplacer(paragraphTerminator, true));
    replacerMap.put("item", replacers);

    // List tag
    replacers = new ArrayList<Replacer>();
    replacers.add(new ItemReplacer(resources));
    replacers.add(new NoteReplacer(resources));
    replacers.add(new TodoReplacer());
    replacerMap.put("list", replacers);

    // Note tag
    replacers = new ArrayList<Replacer>();
    replacers.add(new CodeReplacer());
    replacers.add(new GistReplacer());
    replacers.add(new ImageReplacer(sectionsManager, resources));
    replacers.add(new JavaReplacer());
    replacers.add(new ListReplacer(resources));
    replacers.add(new XmlReplacer());
    replacers.add(new IndexReplacer(resources));
    replacers.add(new TodoReplacer());

    replacers.add(new RubyReplacer());
    replacers.add(new TableReplacer(resources));
    replacers.add(new CenteredParagraphReplacer());
    replacers.add(new ParagraphReplacer(paragraphTerminator));
    replacerMap.put("note", replacers);

    // Question tag
    replacers = new ArrayList<Replacer>();
    replacers.add(new AnswerReplacer(resources));
    replacers.add(new BoxReplacer(resources));
    replacers.add(new CodeReplacer());
    replacers.add(new GistReplacer());
    replacers.add(new ImageReplacer(sectionsManager, resources));
    replacers.add(new JavaReplacer());
    replacers.add(new ListReplacer(resources));
    replacers.add(new NoteReplacer(resources));
    replacers.add(new XmlReplacer());
    replacers.add(new IndexReplacer(resources));
    replacers.add(new TodoReplacer());
    replacers.add(new RubyReplacer());

    replacers.add(new TableReplacer(resources));
    replacers.add(new CenteredParagraphReplacer());
    replacers.add(new ParagraphReplacer(paragraphTerminator));
    replacerMap.put("question", replacers);

    // Table tag
    replacers = new ArrayList<Replacer>();
    replacers.add(new TableRowReplacer(resources));
    replacers.add(new TodoReplacer());
    replacerMap.put("table", replacers);

    // Row tag
    replacers = new ArrayList<Replacer>();
    replacers.add(new TableColumnReplacer(resources));
    replacers.add(new TodoReplacer());
    replacerMap.put("row", replacers);

    // Column tag
    replacers = new ArrayList<Replacer>();
    replacers.add(new BoxReplacer(resources));
    replacers.add(new CodeReplacer());
    replacers.add(new GistReplacer());
    replacers.add(new ExerciseReplacer(resources));
    replacers.add(new ImageReplacer(sectionsManager, resources));
    replacers.add(new JavaReplacer());
    replacers.add(new ListReplacer(resources));
    replacers.add(new NoteReplacer(resources));
    replacers.add(new XmlReplacer());
    replacers.add(new TodoReplacer());

    replacers.add(new RubyReplacer());
    replacers.add(new ParagraphReplacer(paragraphTerminator));
    replacerMap.put("col", replacers);
   
    // Code tag
    replacers = new ArrayList<Replacer>();
    replacers.add(new TodoReplacer());
    replacerMap.put("code", replacers);

    // All tags not restricted to others, like ItemTag
    replacers = new ArrayList<Replacer>();
    replacers.add(new SubsectionReplacer(sectionsManager, resources));
    replacers.add(new BoxReplacer(resources));
    replacers.add(new CodeReplacer());
    replacers.add(new GistReplacer());
    replacers.add(new ExerciseReplacer(resources));
    replacers.add(new ImageReplacer(sectionsManager, resources));
    replacers.add(new JavaReplacer());
    replacers.add(new ListReplacer(resources));
    replacers.add(new NoteReplacer(resources));
    replacers.add(new XmlReplacer());
    replacers.add(new IndexReplacer(resources));
View Full Code Here

TOP

Related Classes of br.com.caelum.tubaina.builder.replacer.ImageReplacer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.