Interface RuleForm
- All Superinterfaces:
Identifiable, OsidForm, Suppliable
This is the form for creating and updating Rules . Like all
OsidForms , various data elements may be set here for use in the
create and update methods in the RuleAdminSession . For each data
element that may be set, metadata may be examined to provide display hints
or data constraints.
-
Method Summary
Modifier and TypeMethodDescriptiongetRuleFormRecord(Type ruleRecordType) Gets theRuleFormRecordcorresponding to the given rule recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidForm
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocaleModifier and TypeMethodDescriptionGets a default locale for the form.Metadata[]Gets a list of metadata for the elements in this form which are not valid.Gets the metadata for the comment corresponding to this form submission.Gets the locales available for this form.Gets text messages corresponding to additional instructions to pass form validation.booleanTests if this form is for an update operation.booleanisValid()Tests if this form is in a valid state for submission.voidsetJournalComment(String comment) Sets a comment.voidSpecifies a language and script type for the form.
-
Method Details
-
getRuleFormRecord
Gets theRuleFormRecordcorresponding to the given rule recordType.- Parameters:
ruleRecordType- the rule record type- Returns:
- the record
- Throws:
NullArgumentException-ruleRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(ruleRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-