public abstract class NullQuestion extends Question
| Modifier and Type | Field and Description |
|---|---|
static int |
LEVEL_1 |
static int |
LEVEL_2 |
static int |
LEVEL_3 |
static int |
LEVEL_LEGACY |
static int |
LEVEL_NONE |
| Modifier | Constructor and Description |
|---|---|
protected |
NullQuestion(Interview interview)
Create a null question.
|
protected |
NullQuestion(Interview interview,
java.lang.String tag)
Create a question with a nominated tag.
|
protected |
NullQuestion(Interview interview,
java.lang.String tag,
int level)
Create a question with a nominated tag.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear any response to this question, resetting the value
back to its initial state.
|
int |
getLevel()
Get the current heading level.
|
java.lang.String |
getStringValue()
A NullQuestion does not have a value, and so this method always
returns null.
|
boolean |
isValueAlwaysValid()
A NullQuestion does not have a value, and so this method always
returns true.
|
boolean |
isValueValid()
A NullQuestion does not have a value, and so this method always
returns true.
|
protected void |
load(java.util.Map data)
Load the value for this question from a dictionary, using
the tag as the key.
|
protected void |
save(java.util.Map data)
Save the value for this question in a dictionary, using
the tag as the key.
|
void |
setLevel(int val)
Set the heading level of this question.
|
void |
setValue(java.lang.String ignore)
Set the response to this question to the value represented by
a string-valued argument.
|
addMarker, equals, export, getChecklistItems, getHelpID, getImage, getInterview, getKey, getNext, getResourceString, getResourceString, getSummary, getTag, getText, getTextArgs, hashCode, hasMarker, isEnabled, isHidden, reload, removeMarker, setHelpID, setImage, setImage, setSummary, setTextpublic static final int LEVEL_NONE
public static final int LEVEL_LEGACY
public static final int LEVEL_1
public static final int LEVEL_2
public static final int LEVEL_3
protected NullQuestion(Interview interview)
interview - The interview containing this question.protected NullQuestion(Interview interview, java.lang.String tag)
interview - The interview containing this question.tag - A unique tag to identify this specific question.protected NullQuestion(Interview interview, java.lang.String tag, int level)
interview - The interview containing this question.tag - A unique tag to identify this specific question.level - The "level" of this question.public void setLevel(int val)
val - One of the level constants defined in this class.java.lang.IllegalArgumentException - If the parameter is out of range.LEVEL_NONE,
LEVEL_1,
LEVEL_2,
LEVEL_3public int getLevel()
public void clear()
public java.lang.String getStringValue()
getStringValue in class QuestionQuestion.setValue(String)public void setValue(java.lang.String ignore)
setValue in class Questionignore - A string containing a value value appropriate for the
particular type of question whose value is being set.java.lang.UnsupportedOperationException - alwaysQuestion.getStringValue()public boolean isValueValid()
isValueValid in class Questionpublic boolean isValueAlwaysValid()
isValueAlwaysValid in class Questionprotected void load(java.util.Map data)
Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.