Examples of splitChunks()


Examples of br.com.caelum.tubaina.builder.ChunkSplitter.splitChunks()

  @Override
  public Chunk createChunk(String options, String content) {
    ChunkSplitter splitter = new ChunkSplitter(resources, "note");
    List<Chunk> list = new ArrayList<Chunk>();
    list.add(new MockedChunk(INSTRUCTOR_NOTE));
    return new NoteChunk(list, splitter.splitChunks(content));
  }

}
View Full Code Here

Examples of br.com.caelum.tubaina.builder.ChunkSplitter.splitChunks()

  }

  @Override
  public Chunk createChunk(String options, String content) {
    ChunkSplitter splitter = new ChunkSplitter(resources, "list");
    return new ListChunk(options, splitter.splitChunks(content));
  }

}
View Full Code Here

Examples of br.com.caelum.tubaina.builder.ChunkSplitter.splitChunks()

  @Override
  public Chunk createChunk(String options, String content) {
    ArrayList<Resource> subResources = new ArrayList<Resource>();
    ChunkSplitter splitter = new ChunkSplitter(subResources, "exercise");
    List<Chunk> chunks = splitter.splitChunks(content);
    if (hasAnswer(subResources))
      resources.add(new ExerciseResource(ExerciseChunk.getExerciseCount()));
    resources.addAll(subResources);
    return new ExerciseChunk(chunks);
  }
View Full Code Here

Examples of br.com.caelum.tubaina.builder.ChunkSplitter.splitChunks()

  }

  @Override
  public Chunk createChunk(String options, String content) {
    ChunkSplitter splitter = new ChunkSplitter(resources, "question");
    List<Chunk> chunks = splitter.splitChunks(content);
    return new QuestionChunk(chunks);
  }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.