Interface Value
- All Superinterfaces:
Browsable, Extensible, Identifiable, Operable, OsidObject, Subjugateable
This interface specifies the value of a configuration parameter.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the value if it is a boolean.byte[]Gets the value if it is a byte.longGets the value if it is a cardinal.Gets the value if it is a coordinate.Gets the value if it is a currency.Gets the value if it is aDateTime.Gets the value if it is a decimal.Gets the value if it is a display text.Gets the value if it is aDistance.Gets the value if it is aDuration.Gets the value if it is aHeading.Gets the value if it is anId.longGets the value if it is an integer.Gets the value if it is an object.Gets the parameter of this value.Gets the parameterIdof this value.longGets the priority of this value.Gets the value if it is a spatial unit.Gets the value if it is a speed.Gets the value if it is a string.Gets the value if it is a time.Gets the value if it is aType.getValueRecord(Type valueRecordType) Gets the value record corresponding to the givenValuerecordType.This method is used to retrieve an object implementing the requested record.Gets the value if it is a version.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.
-
Method Details
-
getParameterId
Id getParameterId()Gets the parameterIdof this value.- Returns:
- the parameter
Id - Compliance:
mandatory- This method must be implemented.
-
getParameter
Gets the parameter of this value.- Returns:
- the parameter
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getPriority
long getPriority()Gets the priority of this value. If the values for this parameter are not shuffled, the priority indicates a static ordering of the values from lowest to highest. If the values for this parameter are shuffled, the priority effects the weight with greater numbers having greater weights.- Returns:
- the index of this value
- Compliance:
mandatory- This method must be implemented.
-
getBooleanValue
boolean getBooleanValue()Gets the value if it is a boolean.- Returns:
- the value
- Throws:
IllegalStateException-Parameter.getSyntax() != BOOLEAN- Compliance:
mandatory- This method must be implemented.
-
getBytesValue
byte[] getBytesValue()Gets the value if it is a byte.- Returns:
- the value
- Throws:
IllegalStateException-Parameter.getSyntax() != BYTE- Compliance:
mandatory- This method must be implemented.
-
getCardinalValue
long getCardinalValue()Gets the value if it is a cardinal.- Returns:
- the value
- Throws:
IllegalStateException-Parameter.getSyntax() != CARDINAL- Compliance:
mandatory- This method must be implemented.
-
getCoordinateValue
Coordinate getCoordinateValue()Gets the value if it is a coordinate.- Returns:
- the value
- Throws:
IllegalStateException-Parameter.getSyntax() != COORDINATE- Compliance:
mandatory- This method must be implemented.
-
getCurrencyValue
Currency getCurrencyValue()Gets the value if it is a currency.- Returns:
- the value
- Throws:
IllegalStateException-Parameter.getSyntax() != CURRENCY- Compliance:
mandatory- This method must be implemented.
-
getDateTimeValue
DateTime getDateTimeValue()Gets the value if it is aDateTime.- Returns:
- the value
- Throws:
IllegalStateException-Parameter.getSyntax() != DATETIME- Compliance:
mandatory- This method must be implemented.
-
getDecimalValue
BigDecimal getDecimalValue()Gets the value if it is a decimal.- Returns:
- the value
- Throws:
IllegalStateException-Parameter.getSyntax() != DECIMAL- Compliance:
mandatory- This method must be implemented.
-
getDisplayTextValue
DisplayText getDisplayTextValue()Gets the value if it is a display text.- Returns:
- the value
- Throws:
IllegalStateException-Parameter.getSyntax() != DISPLAYTEXT- Compliance:
mandatory- This method must be implemented.
-
getDistanceValue
Distance getDistanceValue()Gets the value if it is aDistance.- Returns:
- the value
- Throws:
IllegalStateException-Parameter.getSyntax() != DISTANCE- Compliance:
mandatory- This method must be implemented.
-
getDurationValue
Duration getDurationValue()Gets the value if it is aDuration.- Returns:
- the value
- Throws:
IllegalStateException-Parameter.getSyntax() != DURATION- Compliance:
mandatory- This method must be implemented.
-
getHeadingValue
Heading getHeadingValue()Gets the value if it is aHeading.- Returns:
- the value
- Throws:
IllegalStateException-Parameter.getSyntax() != HEADING- Compliance:
mandatory- This method must be implemented.
-
getIdValue
Id getIdValue()Gets the value if it is anId.- Returns:
- the value
- Throws:
IllegalStateException-Parameter.getSyntax() != ID- Compliance:
mandatory- This method must be implemented.
-
getIntegerValue
long getIntegerValue()Gets the value if it is an integer.- Returns:
- the value
- Throws:
IllegalStateException-Parameter.getSyntax() != INTEGER- Compliance:
mandatory- This method must be implemented.
-
getObjectValue
Object getObjectValue()Gets the value if it is an object.- Returns:
- the value
- Throws:
IllegalStateException-Parameter.getSyntax() != OBJECT- Compliance:
mandatory- This method must be implemented.
-
getSpatialUnitValue
SpatialUnit getSpatialUnitValue()Gets the value if it is a spatial unit.- Returns:
- the value
- Throws:
IllegalStateException-Parameter.getSyntax() != SPATIALUNIT- Compliance:
mandatory- This method must be implemented.
-
getSpeedValue
Speed getSpeedValue()Gets the value if it is a speed.- Returns:
- the value
- Throws:
IllegalStateException-Parameter.getSyntax() != SPEED- Compliance:
mandatory- This method must be implemented.
-
getStringValue
String getStringValue()Gets the value if it is a string.- Returns:
- the value
- Throws:
IllegalStateException-Parameter.getSyntax() != STRING- Compliance:
mandatory- This method must be implemented.
-
getTimeValue
Time getTimeValue()Gets the value if it is a time.- Returns:
- the value
- Throws:
IllegalStateException-Parameter.getSyntax() != TIME- Compliance:
mandatory- This method must be implemented.
-
getTypeValue
Type getTypeValue()Gets the value if it is aType.- Returns:
- the value
- Throws:
IllegalStateException-Parameter.getSyntax() != TYPE- Compliance:
mandatory- This method must be implemented.
-
getVersionValue
Version getVersionValue()Gets the value if it is a version.- Returns:
- the value
- Throws:
IllegalStateException-Parameter.getSyntax() != VERSION- Compliance:
mandatory- This method must be implemented.
-
getValueRecord
Gets the value record corresponding to the givenValuerecordType.This method is used to retrieve an object implementing the requested record. ThevalueRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(valueRecordType)istrue.- Parameters:
valueRecordType- the type of value record to retrieve- Returns:
- the value record
- Throws:
NullArgumentException-valueRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(valueRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-