Interface Parameter
- All Superinterfaces:
Browsable, Extensible, Identifiable, Operable, OsidObject, OsidRule
A parameter is used to map configuration values to an identifier and
syntax. The type of the value must be used across all values of the same
parameter. The values associated with a parameter should be queried
through the ValueLookupSession .
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if if the values assigned to this parameter will be shuffled or values are sorted by index.getParameterRecord(Type parameterRecordType) Gets the parameter record corresponding to the givenParameterrecordType.Gets the type of the value if the syntax is a coordinate.Gets the type of the value if the syntax is a heading.Gets the type of the value if the syntax is an object.Gets the type of the value if the syntax is a spatial unit.Gets the syntax for the values of this parameter.Gets the type of the value if the syntax is a version.booleanimplementsValueCoordinateType(Type coordinateType) Tests if the coordinate supports the given coordinateType.booleanimplementsValueHeadingType(Type headingType) Tests if the heading supports the given headingType.booleanimplementsValueObjectType(Type valueType) Tests if the object supports the givenType.This method should be checked before retrieving the object value.booleanimplementsValueSpatialUnitRecordType(Type spatialUnitRecordType) Tests if the spatial unit supports the given recordType.booleanimplementsValueVersionScheme(Type versionType) Tests if the version supports the given versionType.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record 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 Operable
isActive, isDisabled, isEnabled, isOperationalModifier and TypeMethodDescriptionbooleanisActive()Tests if this operable is active.booleanTests if this operable is administravely disabled.booleanTests if this operable is administravely enabled.booleanTests if thisOperableis operational.Methods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.Methods inherited from interface OsidRule
getConditionRecordTypes, getRule, getRuleId, hasRule
-
Method Details
-
getValueSyntax
Syntax getValueSyntax()Gets the syntax for the values of this parameter.- Returns:
- the syntax of the values
- Compliance:
mandatory- This method must be implemented.
-
getValueCoordinateType
Type getValueCoordinateType()Gets the type of the value if the syntax is a coordinate.- Returns:
- the type of the values
- Throws:
IllegalStateException-getValueSyntax() != COORDINATE- Compliance:
mandatory- This method must be implemented.
-
implementsValueCoordinateType
Tests if the coordinate supports the given coordinateType.- Parameters:
coordinateType- a coordinate type- Returns:
trueif the coordinate values associated with this parameter implement the given coordinateType,falseotherwise- Throws:
IllegalStateException-getValueSyntax() != COORDINATENullArgumentException-coordinateTypeisnull- Compliance:
mandatory- This method must be implemented.
-
getValueHeadingType
Type getValueHeadingType()Gets the type of the value if the syntax is a heading.- Returns:
- the type of the values
- Throws:
IllegalStateException-getValueSyntax() != HEADING- Compliance:
mandatory- This method must be implemented.
-
implementsValueHeadingType
Tests if the heading supports the given headingType.- Parameters:
headingType- a heading type- Returns:
trueif the heading values associated with this parameter implement the given headingType,falseotherwise- Throws:
IllegalStateException-getValueSyntax() != HEADINGNullArgumentException-headingTypeisnull- Compliance:
mandatory- This method must be implemented.
-
getValueObjectType
Type getValueObjectType()Gets the type of the value if the syntax is an object.- Returns:
- the type of the values
- Throws:
IllegalStateException-getValueSyntax() != OBJECT- Compliance:
mandatory- This method must be implemented.
-
implementsValueObjectType
Tests if the object supports the givenType.This method should be checked before retrieving the object value.- Parameters:
valueType- a type- Returns:
trueif the obect values associated with this parameter implement the givenType,falseotherwise- Throws:
IllegalStateException-getValueSyntax() != OBJECTNullArgumentException-valueTypeisnull- Compliance:
mandatory- This method must be implemented.
-
getValueSpatialUnitRecordType
Type getValueSpatialUnitRecordType()Gets the type of the value if the syntax is a spatial unit.- Returns:
- the type of the values
- Throws:
IllegalStateException-getValueSyntax() != SPATIALUNIT- Compliance:
mandatory- This method must be implemented.
-
implementsValueSpatialUnitRecordType
Tests if the spatial unit supports the given recordType.- Parameters:
spatialUnitRecordType- a spatial unit record type- Returns:
trueif the spatial unit values associated with this parameter implement the given recordType,falseotherwise- Throws:
IllegalStateException-getValueSyntax() != SPATIALUNITNullArgumentException-spatialUnitRecordTYpeisnull- Compliance:
mandatory- This method must be implemented.
-
getValueVersionScheme
Type getValueVersionScheme()Gets the type of the value if the syntax is a version.- Returns:
- the type of the values
- Throws:
IllegalStateException-getValueSyntax() != VERSION- Compliance:
mandatory- This method must be implemented.
-
implementsValueVersionScheme
Tests if the version supports the given versionType.- Parameters:
versionType- a version type- Returns:
trueif the version values associated with this parameter implement the given versionType,falseotherwise- Throws:
IllegalStateException-getValueSyntax() != VERSIONNullArgumentException-versionTypeisnull- Compliance:
mandatory- This method must be implemented.
-
areValuesShuffled
boolean areValuesShuffled()Tests if if the values assigned to this parameter will be shuffled or values are sorted by index.- Returns:
trueif the values are shuffled,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getParameterRecord
Gets the parameter record corresponding to the givenParameterrecordType. This method is used to retrieve an object implementing the requested record. TheparameterRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(parameterRecordType)istrue.- Parameters:
parameterRecordType- the type of parameter record to retrieve- Returns:
- the parameter record
- Throws:
NullArgumentException-parameterRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(parameterRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-