@Test public void testIntegerValueType() throws IOException { String qlForm = "form taxOfficeExample { \"q1?\" value: integer }"; Form form = ASTGenerator.getForm(qlForm); List<Item> questions = form.getQuestions(); Question question = (Question) questions.get(0); assertThat(question.getType(), instanceOf(Integer.class)); }
public ValueType getType() { return type; }
Question extends Item { public ValueType getType() { return type; } }
Question extends Item { public ValueType getType() { return type; } Question(int lineNumber, String label, String identifier, ValueType type); }
Question extends Item { public ValueType getType() { return type; } Question(int lineNumber, String label, String identifier, ValueType type); String getLabel(); String getIdentifier(); ValueType getType(); @Override String toString(); @Override T accept(ItemVisitor<T> visitor); }
Question extends Item { public ValueType getType() { return type; } Question(int lineNumber, String label, String identifier, ValueType type); String getLabel(); String getIdentifier(); ValueType getType(); @Override String toString(); @Override T accept(ItemVisitor<T> visitor);  }