public class TextAnswerFormat extends AnswerFormat
AnswerFormat.ChoiceAnswerStyle, AnswerFormat.DateAnswerStyle, AnswerFormat.NumberFormattingStyle, AnswerFormat.QuestionType, AnswerFormat.Type| Modifier and Type | Field and Description | 
|---|---|
| static int | UNLIMITED_LENGTH | 
| Constructor and Description | 
|---|
| TextAnswerFormat()Creates a TextAnswerFormat with no maximum length | 
| TextAnswerFormat(int maximumLength)Creates a TextAnswerFormat with a specified maximum length | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getMaximumLength()Returns the maximum length for the answer,  UNLIMITED_LENGTH(0) if no maximum | 
| AnswerFormat.QuestionType | getQuestionType()Returns the QuestionType for this answer format. | 
| boolean | isAnswerValid(java.lang.String text)Returns a boolean indicating whether the passed in text is valid based on this answer format | 
| boolean | isMultipleLines()Returns whether multiple lines are allowed. | 
| void | setIsMultipleLines(boolean isMultipleLines)Sets whether the EditText should allow multiple lines. | 
public static final int UNLIMITED_LENGTH
public TextAnswerFormat()
public TextAnswerFormat(int maximumLength)
maximumLength - the maximum text length allowedpublic int getMaximumLength()
UNLIMITED_LENGTH (0) if no maximumUNLIMITED_LENGTH (0) if no maximumpublic AnswerFormat.QuestionType getQuestionType()
AnswerFormatgetQuestionType in class AnswerFormatpublic void setIsMultipleLines(boolean isMultipleLines)
isMultipleLines - boolean indicating if multiple lines are allowedpublic boolean isMultipleLines()
public boolean isAnswerValid(java.lang.String text)
text - the user's text answer to be validated