@@ -0,0 +1,2393 @@
+/**%0A * Copyright 2017 University of Victoria%0A * %0A * Permission is hereby granted, free of charge, to any person obtaining a copy%0A * of this software and associated documentation files (the %22Software%22), to%0A * deal in the Software without restriction, including without limitation the%0A * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or%0A * sell copies of the Software, and to permit persons to whom the Software is%0A * furnished to do so, subject to the following conditions:%0A * %0A * The above copyright notice and this permission notice shall be included in%0A * all copies or substantial portions of the Software.%0A * %0A * THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR%0A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,%0A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE%0A * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER%0A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING%0A * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS%0A * IN THE SOFTWARE.%0A */%0Apackage com.rigiresearch.quizgen;%0A%0Aimport java.util.List;%0Aimport java.util.stream.Collectors;%0Aimport lombok.AllArgsConstructor;%0Aimport lombok.Getter;%0Aimport lombok.experimental.Accessors;%0A%0A/**%0A * A question composed of several sub-questions.%0A * @author Miguel Jimenez (miguel@uvic.ca)%0A * @date 2017-08-19%0A * @version $Id$%0A * @since 0.0.1%0A */%0A@Accessors(fluent = true)%0A@AllArgsConstructor%0A@Getter%0Apublic final class CompoundQuestion implements Question %7B%0A%0A    /**%0A     * This question's segment.%0A     */%0A    private final TextSegment statement;%0A%0A    /**%0A     * This question's sub-questions.%0A     */%0A    private final List%3CQuestion%3E children;%0A%0A    /* (non-Javadoc)%0A     * @see com.rigiresearch.quizgen.Question#header()%0A     */%0A    @Override%0A    public TextSegment header() %7B%0A        return this.statement;%0A    %7D%0A%0A    /* (non-Javadoc)%0A     * @see com.rigiresearch.quizgen.Question#body()%0A     */%0A    @Override%0A    public List%3CTextSegment%3E body() %7B%0A        return this.children.stream()%0A            .flatMap(child -%3E child.body().stream())%0A            .collect(Collectors.toList());%0A    %7D%0A%0A    /* (non-Javadoc)%0A     * @see com.rigiresearch.quizgen.Question#children()%0A     */%0A    @Override%0A    public List%3CQuestion%3E children() %7B%0A        return this.children;%0A    %7D%0A%0A%7D%0A

Add new type of question