Permalink
Browse files

Added in-order listing of questionnaire IDs.

  • Loading branch information...
1 parent c04ddcc commit c87024109dc8417c876f2c5307b06a586882e4f0 David A. Solin committed May 23, 2012
Showing with 9 additions and 2 deletions.
  1. +9 −2 src/org/joval/ocil/Checklist.java
@@ -184,8 +184,15 @@ public void setResults(ResultsType results) {
ocil.setResults(results);
}
- public Collection<String> getQuestionnaireIds() {
- return questionnaires.keySet();
+ /**
+ * List questionnaire IDs in document order.
+ */
+ public List<String> listQuestionnaireIds() {
+ List<String> list = new Vector<String>();
+ for (QuestionnaireType q : ocil.getQuestionnaires().getQuestionnaire()) {
+ list.add(q.getId());
+ }
+ return list;
}
public boolean containsQuestionnaire(String id) {

0 comments on commit c870241

Please sign in to comment.