Interface IdForm
- All Superinterfaces:
Identifiable, OsidForm, Suppliable
This form provides a means of creating an Id .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the authority.voidClears the identifier.voidClears the identifier namespace.voidClears the identifier prefix.voidClears the identifier suffix.Gets the metadata for the authority.Gets the metadata for the identifier.Gets the metadata for the identifier namespace.Gets the metadata for the identifier prefix.Gets the metadata for the identifier suffix.voidsetAuthority(String authority) Sets the authority.voidsetIdentifier(String identifier) Seta the identifier.voidsetIdentifierNamespace(String namespace) Seta the identifier namespace.voidsetIdentifierPrefix(String prefix) Seta the identifier prefix.voidsetIdentifierSuffix(String suffix) Seta the identifier prefix.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
-
getAuthorityMetadata
Metadata getAuthorityMetadata()Gets the metadata for the authority.- Returns:
- metadata for the authority
- Compliance:
mandatory- This method must be implemented.
-
setAuthority
Sets the authority.- Parameters:
authority- the authority- Throws:
InvalidArgumentException-authorityis invalidNoAccessException-authoritycannot be modifiedNullArgumentException-authorityisnull- Compliance:
mandatory- This method must be implemented.
-
clearAuthority
void clearAuthority()Clears the authority.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getIdentifierNamespaceMetadata
Metadata getIdentifierNamespaceMetadata()Gets the metadata for the identifier namespace.- Returns:
- metadata for the namespace
- Compliance:
mandatory- This method must be implemented.
-
setIdentifierNamespace
Seta the identifier namespace.- Parameters:
namespace- the namespace- Throws:
InvalidArgumentException-namespaceis invalidNoAccessException-namespacecannot be modifiedNullArgumentException-namespaceisnull- Compliance:
mandatory- This method must be implemented.
-
clearIdentifierNamespace
void clearIdentifierNamespace()Clears the identifier namespace.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getIdentifierPrefixMetadata
Metadata getIdentifierPrefixMetadata()Gets the metadata for the identifier prefix.- Returns:
- metadata for the prefix
- Compliance:
mandatory- This method must be implemented.
-
setIdentifierPrefix
Seta the identifier prefix. An identifier will be generated with this prefix.- Parameters:
prefix- the prefix- Throws:
InvalidArgumentException-prefixis invalidNoAccessException-prefixcannot be modifiedNullArgumentException-prefixisnull- Compliance:
mandatory- This method must be implemented.
-
clearIdentifierPrefix
void clearIdentifierPrefix()Clears the identifier prefix.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getIdentifierSuffixMetadata
Metadata getIdentifierSuffixMetadata()Gets the metadata for the identifier suffix.- Returns:
- metadata for the suffix
- Compliance:
mandatory- This method must be implemented.
-
setIdentifierSuffix
Seta the identifier prefix. An identifier will be generated with this suffix.- Parameters:
suffix- the suffix- Throws:
InvalidArgumentException-suffixis invalidNoAccessException-suffixcannot be modifiedNullArgumentException-suffixisnull- Compliance:
mandatory- This method must be implemented.
-
clearIdentifierSuffix
void clearIdentifierSuffix()Clears the identifier suffix.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getIdentifierMetadata
Metadata getIdentifierMetadata()Gets the metadata for the identifier.- Returns:
- metadata for the identifier
- Compliance:
mandatory- This method must be implemented.
-
setIdentifier
Seta the identifier.- Parameters:
identifier- the identifier- Throws:
InvalidArgumentException-identifieris invalidNoAccessException-identifiercannot be modifiedNullArgumentException-identifierisnull- Compliance:
mandatory- This method must be implemented.
-
clearIdentifier
void clearIdentifier()Clears the identifier.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-