Interface TypeForm
- All Superinterfaces:
Identifiable, OsidForm, Suppliable
This form provides a means of updating various fields in the
Type . Note that the domain, authority and identifier are part of the
Type identification, and as such not modifiable.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the description.voidClears the display label.voidClears the display name.voidClears the domain.Gets the metadata for the description.Gets the metadata for the display label.Gets the metadata for the display name.Gets the metadata for the domain.voidsetDescription(String description) Sets a description.voidsetDisplayLabel(String displayLabel) Seta a display label.voidsetDisplayName(String displayName) Sets a display name.voidSets a domain.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
-
getDisplayNameMetadata
Metadata getDisplayNameMetadata()Gets the metadata for the display name.- Returns:
- metadata for the display name
- Compliance:
mandatory- This method must be implemented.
-
setDisplayName
Sets a display name.- Parameters:
displayName- the new display name- Throws:
InvalidArgumentException-displayNameis invalidNoAccessException-displayNamecannot be modifiedNullArgumentException-displayNameisnull- Compliance:
mandatory- This method must be implemented.
-
clearDisplayName
void clearDisplayName()Clears the display name.- Throws:
NoAccessException-displayNamecannot be modified- Compliance:
mandatory- This method must be implemented.
-
getDisplayLabelMetadata
Metadata getDisplayLabelMetadata()Gets the metadata for the display label.- Returns:
- metadata for the display label
- Compliance:
mandatory- This method must be implemented.
-
setDisplayLabel
Seta a display label.- Parameters:
displayLabel- the new display label- Throws:
InvalidArgumentException-displayLabelis invalidNoAccessException-displayLabelcannot be modifiedNullArgumentException-displayLabelisnull- Compliance:
mandatory- This method must be implemented.
-
clearDisplayLabel
void clearDisplayLabel()Clears the display label.- Throws:
NoAccessException-displayLabelcannot be modified- Compliance:
mandatory- This method must be implemented.
-
getDescriptionMetadata
Metadata getDescriptionMetadata()Gets the metadata for the description.- Returns:
- metadata for the description
- Compliance:
mandatory- This method must be implemented.
-
setDescription
Sets a description.- Parameters:
description- the new description- Throws:
InvalidArgumentException-descriptionis invalidNoAccessException-descriptioncannot be modifiedNullArgumentException-descriptionisnull- Compliance:
mandatory- This method must be implemented.
-
clearDescription
void clearDescription()Clears the description.- Throws:
NoAccessException-descriptioncannot be modified- Compliance:
mandatory- This method must be implemented.
-
getDomainMetadata
Metadata getDomainMetadata()Gets the metadata for the domain.- Returns:
- metadata for the domain
- Compliance:
mandatory- This method must be implemented.
-
setDomain
Sets a domain.- Parameters:
domain- the new domain- Throws:
InvalidArgumentException-domainis invalidNoAccessException-domaincannot be modifiedNullArgumentException-domainisnull- Compliance:
mandatory- This method must be implemented.
-
clearDomain
void clearDomain()Clears the domain.- Throws:
NoAccessException-domaincannot be modified- Compliance:
mandatory- This method must be implemented.
-