Examples of ExerciseResource


Examples of br.com.caelum.tubaina.resources.ExerciseResource

  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
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.