Interface ParameterForm
- All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidOperableForm, OsidRuleForm, Suppliable
- All Known Subinterfaces:
ParameterBatchForm
This is the form for creating and updating Parameters . Various
data elements may be set here for use in the create and update methods in
the ParameterAdminSession . For each data element that may be set,
metadata may be examined to provide display hints or data constraints.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the coordinate type.voidClears the heading type.voidClears the object value type.voidClears the spatial unit record type.voidClears the shuffle flag.voidClears the value syntax.voidClears the version value type.getParameterFormRecord(Type parameterRecordType) Gets theParameterFormRecordcorresponding to the given parameter recordType.Gets the metadata for the coordinate type for coordinate values.Gets the metadata for the heading type for coordinate values.Gets the metadata for the object value type for object values.Gets the metadata for the spatial unit record type for coordinate values.Gets the metadata for the shuffle type.Gets the metadata for the value syntax.Gets the metadata for the version type for object values.voidsetValueCoordinateType(Type coordinateType) Sets a coordinate type.voidsetValueHeadingType(Type headingType) Sets a heading type.voidsetValueObjectType(Type objectType) Sets an object value type.voidsetValueSpatialUnitRecordType(Type spatialUnitRecordType) Sets a spatial unit record type.voidsetValuesShuffled(boolean shuffle) Sets the shuffle order.voidsetValueSyntax(Syntax syntax) Sets a value syntax.voidsetValueVersionScheme(Type versionType) Sets a version type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidExtensibleForm
getRequiredRecordTypesModifier and TypeMethodDescriptionGets the minimum required record types for successful submission of thisOsidForm.Methods 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.Methods inherited from interface OsidObjectForm
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypeModifier and TypeMethodDescriptionvoidClears the description.voidClears the display name.voidClears the genus type.Gets the metadata for a description.Gets the metadata for a display name.Gets the metadata for a genus type.voidsetDescription(String description) Sets a description.voidsetDisplayName(String displayName) Sets a display name.voidsetGenusType(Type genusType) Sets a genus.Methods inherited from interface OsidOperableForm
clearDisabled, clearEnabled, getDisabledMetadata, getEnabledMetadata, setDisabled, setEnabledModifier and TypeMethodDescriptionvoidRemoves the administratively disabled flag.voidRemoves the administratively enabled flag.Gets the metadata for the disabled flag.Gets the metadata for the enabled flag.voidsetDisabled(boolean disabled) Sets the administratively disabled flag.voidsetEnabled(boolean enabled) Sets the administratively enabled flag.Methods inherited from interface OsidRuleForm
clearConditionRecordTypes, clearRule, getConditionRecordTypesMetadata, getRuleMetadata, setConditionRecordTypes, setRuleModifier and TypeMethodDescriptionvoidClears the condition record types.voidRemoves the rule.Gets the metadata for the condition record types.Gets the metadata for an associated rule.voidsetConditionRecordTypes(Type[] conditionRecordTypes) Sets the condition record types.voidSets a rule.
-
Method Details
-
getValueSyntaxMetadata
Metadata getValueSyntaxMetadata()Gets the metadata for the value syntax.- Returns:
- metadata for the value syntax
- Compliance:
mandatory- This method must be implemented.
-
setValueSyntax
Sets a value syntax.- Parameters:
syntax- the new value synatx- Throws:
InvalidArgumentException-syntaxis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-syntaxisnull- Compliance:
mandatory- This method must be implemented.
-
clearValueSyntax
void clearValueSyntax()Clears the value syntax.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly() is true- Compliance:
mandatory- This method must be implemented.
-
getValueCoordinateTypeMetadata
Metadata getValueCoordinateTypeMetadata()Gets the metadata for the coordinate type for coordinate values.- Returns:
- metadata for the coordinate type
- Compliance:
mandatory- This method must be implemented.
-
setValueCoordinateType
Sets a coordinate type.- Parameters:
coordinateType- the new coordinate type- Throws:
InvalidArgumentException-coordinateTypeis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-coordinateTypeisnull- Compliance:
mandatory- This method must be implemented.
-
clearValueCoordinateType
void clearValueCoordinateType()Clears the coordinate type.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly() is true- Compliance:
mandatory- This method must be implemented.
-
getValueHeadingTypeMetadata
Metadata getValueHeadingTypeMetadata()Gets the metadata for the heading type for coordinate values.- Returns:
- metadata for the heading type
- Compliance:
mandatory- This method must be implemented.
-
setValueHeadingType
Sets a heading type.- Parameters:
headingType- the new heading type- Throws:
InvalidArgumentException-headingTypeis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-headingTypeisnull- Compliance:
mandatory- This method must be implemented.
-
clearValueHeadingType
void clearValueHeadingType()Clears the heading type.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly() is true- Compliance:
mandatory- This method must be implemented.
-
getValueObjectTypeMetadata
Metadata getValueObjectTypeMetadata()Gets the metadata for the object value type for object values.- Returns:
- metadata for the object type
- Compliance:
mandatory- This method must be implemented.
-
setValueObjectType
Sets an object value type.- Parameters:
objectType- the new object type- Throws:
InvalidArgumentException-objectTypeis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-objectTypeisnull- Compliance:
mandatory- This method must be implemented.
-
clearValueObjectType
void clearValueObjectType()Clears the object value type.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly() is true- Compliance:
mandatory- This method must be implemented.
-
getValueSpatialUnitRecordTypeMetadata
Metadata getValueSpatialUnitRecordTypeMetadata()Gets the metadata for the spatial unit record type for coordinate values.- Returns:
- metadata for the spatial unit record type
- Compliance:
mandatory- This method must be implemented.
-
setValueSpatialUnitRecordType
Sets a spatial unit record type.- Parameters:
spatialUnitRecordType- the new spatial unit record type- Throws:
InvalidArgumentException-spatialUnitRecordTypeis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-spatialUnitRecordTypeisnull- Compliance:
mandatory- This method must be implemented.
-
clearValueSpatialUnitRecordType
void clearValueSpatialUnitRecordType()Clears the spatial unit record type.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly() is true- Compliance:
mandatory- This method must be implemented.
-
getValueVersionSchemeMetadata
Metadata getValueVersionSchemeMetadata()Gets the metadata for the version type for object values.- Returns:
- metadata for the version type
- Compliance:
mandatory- This method must be implemented.
-
setValueVersionScheme
Sets a version type.- Parameters:
versionType- the new version type- Throws:
InvalidArgumentException-versionTypeis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-versionTypeisnull- Compliance:
mandatory- This method must be implemented.
-
clearValueVersionScheme
void clearValueVersionScheme()Clears the version value type.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly() is true- Compliance:
mandatory- This method must be implemented.
-
getValuesShuffledMetadata
Metadata getValuesShuffledMetadata()Gets the metadata for the shuffle type.- Returns:
- metadata for the shuffle flag
- Compliance:
mandatory- This method must be implemented.
-
setValuesShuffled
void setValuesShuffled(boolean shuffle) Sets the shuffle order.- Parameters:
shuffle-trueto shuffle values by weight,falseto order values by index- Throws:
InvalidArgumentException-shuffleis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearValuesShuffled
void clearValuesShuffled()Clears the shuffle flag.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly() is true- Compliance:
mandatory- This method must be implemented.
-
getParameterFormRecord
ParameterFormRecord getParameterFormRecord(Type parameterRecordType) throws OperationFailedException Gets theParameterFormRecordcorresponding to the given parameter recordType.- Parameters:
parameterRecordType- a parameter record type- Returns:
- the parameter form record
- Throws:
NullArgumentException-parameterRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(parameterRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-