public class Question
extends java.lang.Object
The parameters are : (name [type] description)
CompareToConstantRule
] : "compare to constant" rules for this question
CompareToQuestionRule
] : "compare to question" rules for this question
Label
] : labels for this questions. The labels are
the different values that a multiple choice question can take. For the free
text questions, the array is null
QuestionText
] The translations of the question texts
Java class for question complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="question"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="ccRules" type="{http://memdoc.webservices.yosemite.www.memdoc.org/}compareToConstantRule" maxOccurs="unbounded" minOccurs="0"/> <element name="cqRules" type="{http://memdoc.webservices.yosemite.www.memdoc.org/}compareToQuestionRule" maxOccurs="unbounded" minOccurs="0"/> <element name="dataType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="defaultName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="labels" type="{http://memdoc.webservices.yosemite.www.memdoc.org/}label" maxOccurs="unbounded" minOccurs="0"/> <element name="linkedQuestion" type="{http://memdoc.webservices.yosemite.www.memdoc.org/}question" minOccurs="0"/> <element name="maxanswer" type="{http://www.w3.org/2001/XMLSchema}long"/> <element name="minanswer" type="{http://www.w3.org/2001/XMLSchema}long"/> <element name="presentationType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="questionId" type="{http://www.w3.org/2001/XMLSchema}long"/> <element name="questionText" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="text" type="{http://memdoc.webservices.yosemite.www.memdoc.org/}questionText" minOccurs="0"/> <element name="score" type="{http://www.w3.org/2001/XMLSchema}boolean"/> <element name="textQuestionNo" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="unit" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="required" type="{http://www.w3.org/2001/XMLSchema}boolean"/> <element name="incrementValue" type="{http://www.w3.org/2001/XMLSchema}float" minOccurs="0"/> <element name="maxLength" type="{http://www.w3.org/2001/XMLSchema}int"/> </sequence> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected java.util.List<CompareToConstantRule> |
ccRules |
protected java.util.List<CompareToQuestionRule> |
cqRules |
protected java.lang.String |
dataType |
protected java.lang.String |
defaultName |
protected java.lang.Float |
incrementValue |
protected java.util.List<Label> |
labels |
protected Question |
linkedQuestion |
protected long |
maxanswer |
protected int |
maxLength |
protected long |
minanswer |
protected java.lang.String |
presentationType |
protected long |
questionId |
protected java.lang.String |
questionText |
protected boolean |
required |
protected boolean |
score |
protected QuestionText |
text |
protected java.lang.String |
textQuestionNo |
protected java.lang.String |
unit |
Constructor and Description |
---|
Question() |
Modifier and Type | Method and Description |
---|---|
java.util.List<CompareToConstantRule> |
getCcRules()
Gets the value of the ccRules property.
|
java.util.List<CompareToQuestionRule> |
getCqRules()
Gets the value of the cqRules property.
|
java.lang.String |
getDataType()
Gets the value of the dataType property.
|
java.lang.String |
getDefaultName()
Gets the value of the defaultName property.
|
java.lang.Float |
getIncrementValue()
Gets the value of the incrementValue property.
|
java.util.List<Label> |
getLabels()
Gets the value of the labels property.
|
Question |
getLinkedQuestion()
Gets the value of the linkedQuestion property.
|
long |
getMaxanswer()
Gets the value of the maxanswer property.
|
int |
getMaxLength()
Gets the value of the maxLength property.
|
long |
getMinanswer()
Gets the value of the minanswer property.
|
java.lang.String |
getPresentationType()
Gets the value of the presentationType property.
|
long |
getQuestionId()
Gets the value of the questionId property.
|
java.lang.String |
getQuestionText()
Gets the value of the questionText property.
|
QuestionText |
getText()
Gets the value of the text property.
|
java.lang.String |
getTextQuestionNo()
Gets the value of the textQuestionNo property.
|
java.lang.String |
getUnit()
Gets the value of the unit property.
|
boolean |
isRequired()
Gets the value of the required property.
|
boolean |
isScore()
Gets the value of the score property.
|
void |
setDataType(java.lang.String value)
Sets the value of the dataType property.
|
void |
setDefaultName(java.lang.String value)
Sets the value of the defaultName property.
|
void |
setIncrementValue(java.lang.Float value)
Sets the value of the incrementValue property.
|
void |
setLinkedQuestion(Question value)
Sets the value of the linkedQuestion property.
|
void |
setMaxanswer(long value)
Sets the value of the maxanswer property.
|
void |
setMaxLength(int value)
Sets the value of the maxLength property.
|
void |
setMinanswer(long value)
Sets the value of the minanswer property.
|
void |
setPresentationType(java.lang.String value)
Sets the value of the presentationType property.
|
void |
setQuestionId(long value)
Sets the value of the questionId property.
|
void |
setQuestionText(java.lang.String value)
Sets the value of the questionText property.
|
void |
setRequired(boolean value)
Sets the value of the required property.
|
void |
setScore(boolean value)
Sets the value of the score property.
|
void |
setText(QuestionText value)
Sets the value of the text property.
|
void |
setTextQuestionNo(java.lang.String value)
Sets the value of the textQuestionNo property.
|
void |
setUnit(java.lang.String value)
Sets the value of the unit property.
|
protected java.util.List<CompareToConstantRule> ccRules
protected java.util.List<CompareToQuestionRule> cqRules
protected java.lang.String dataType
protected java.lang.String defaultName
protected java.util.List<Label> labels
protected Question linkedQuestion
protected long maxanswer
protected long minanswer
protected java.lang.String presentationType
protected long questionId
protected java.lang.String questionText
protected QuestionText text
protected boolean score
protected java.lang.String textQuestionNo
protected java.lang.String unit
protected boolean required
protected java.lang.Float incrementValue
protected int maxLength
public java.util.List<CompareToConstantRule> getCcRules()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set
method for the ccRules property.
For example, to add a new item, do as follows:
getCcRules().add(newItem);
Objects of the following type(s) are allowed in the list
CompareToConstantRule
public java.util.List<CompareToQuestionRule> getCqRules()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set
method for the cqRules property.
For example, to add a new item, do as follows:
getCqRules().add(newItem);
Objects of the following type(s) are allowed in the list
CompareToQuestionRule
public java.lang.String getDataType()
String
public void setDataType(java.lang.String value)
value
- allowed object is
String
public java.lang.String getDefaultName()
String
public void setDefaultName(java.lang.String value)
value
- allowed object is
String
public java.util.List<Label> getLabels()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set
method for the labels property.
For example, to add a new item, do as follows:
getLabels().add(newItem);
Objects of the following type(s) are allowed in the list
Label
public Question getLinkedQuestion()
Question
public void setLinkedQuestion(Question value)
value
- allowed object is
Question
public long getMaxanswer()
public void setMaxanswer(long value)
public long getMinanswer()
public void setMinanswer(long value)
public java.lang.String getPresentationType()
String
public void setPresentationType(java.lang.String value)
value
- allowed object is
String
public long getQuestionId()
public void setQuestionId(long value)
public java.lang.String getQuestionText()
String
public void setQuestionText(java.lang.String value)
value
- allowed object is
String
public QuestionText getText()
QuestionText
public void setText(QuestionText value)
value
- allowed object is
QuestionText
public boolean isScore()
public void setScore(boolean value)
public java.lang.String getTextQuestionNo()
String
public void setTextQuestionNo(java.lang.String value)
value
- allowed object is
String
public java.lang.String getUnit()
String
public void setUnit(java.lang.String value)
value
- allowed object is
String
public boolean isRequired()
public void setRequired(boolean value)
public java.lang.Float getIncrementValue()
Float
public void setIncrementValue(java.lang.Float value)
value
- allowed object is
Float
public int getMaxLength()
public void setMaxLength(int value)