public interface InquiryForm extends OsidRuleForm, OsidSubjugateableForm
This is the form for creating and updating Inquiries.
Like all OsidForm objects, various data elements may be set
here for use in the create and update methods in the
InquiryAdminSession. For each data element that may be set,
metadata may be examined to provide display hints or data constraints.
| Modifier and Type | Method and Description |
|---|---|
void |
clearAffirmationRequired()
Removes the affirmation required flag.
|
void |
clearNeedsOneResponse()
Removes the needs one response flag.
|
void |
clearQuestion()
Removes the question.
|
void |
clearRequired()
Removes the required flag.
|
Metadata |
getAffirmationRequiredMetadata()
Gets the metadata for the affirmation required flag.
|
InquiryFormRecord |
getInquiryFormRecord(Type inquiryRecordType)
Gets the
InquiryFormRecord corresponding to the given
inquiry record Type. |
Metadata |
getNeedsOneResponseMetadata()
Gets the metadata for the needs one response flag.
|
Metadata |
getQuestionMetadata()
Gets the metadata for the question.
|
Metadata |
getRequiredMetadata()
Gets the metadata for the required flag.
|
void |
setAffirmationRequired(boolean required)
Sets the affirmation required flag.
|
void |
setNeedsOneResponse(boolean one)
Sets the needs one response flag.
|
void |
setQuestion(java.lang.String question)
Sets the question.
|
void |
setRequired(boolean required)
Sets the required flag.
|
clearRule, getRuleMetadata, setRuleclearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypegetRequiredRecordTypesgetRecordTypes, hasRecordTypegetDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocalegetId, isCurrentclearDisabled, clearEnabled, getDisabledMetadata, getEnabledMetadata, setDisabled, setEnabledMetadata getQuestionMetadata()
mandatory - This method must be implemented. void setQuestion(java.lang.String question)
question - the new questionInvalidArgumentException - question is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - question is
null mandatory - This method must be implemented. void clearQuestion()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getRequiredMetadata()
mandatory - This method must be implemented. void setRequired(boolean required)
required - true is the inquiry requires a
response, false if optionalInvalidArgumentException - required is
invalidNoAccessException - Metadata.isReadOnly()
is true mandatory - This method must be implemented. void clearRequired()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getAffirmationRequiredMetadata()
mandatory - This method must be implemented. void setAffirmationRequired(boolean required)
required - true if a positive response is
required, false if a negative response is also
acceptableInvalidArgumentException - required is
invalidNoAccessException - Metadata.isReadOnly()
is true mandatory - This method must be implemented. void clearAffirmationRequired()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getNeedsOneResponseMetadata()
mandatory - This method must be implemented. void setNeedsOneResponse(boolean one)
one - true if only one effective response is
needed,, false if the inquiry should be
performed each timeInvalidArgumentException - one is
invalidNoAccessException - Metadata.isReadOnly()
is true mandatory - This method must be implemented. void clearNeedsOneResponse()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. InquiryFormRecord getInquiryFormRecord(Type inquiryRecordType) throws OperationFailedException
InquiryFormRecord corresponding to the given
inquiry record Type. inquiryRecordType - an inquiry record typeNullArgumentException - inquiryRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(inquiryRecordType) is false
mandatory - This method must be implemented.