Interface Parameter
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, Subjugateable
A Parameter specifies a variable substitution in the string of
a Text to produce an Idiom .
-
Method Summary
Modifier and TypeMethodDescriptionlongGets the input position for this parameter as supplied to the text.getParameterRecord(Type parameterRecordType) Gets the parameter record corresponding to the givenParameterrecordType.Gets the syntax of the parameter.getText()Gets the text.Gets the textId.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 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
-
getTextId
Id getTextId()Gets the textId.- Returns:
- the text
Id - Compliance:
mandatory- This method must be implemented.
-
getText
Gets the text.- Returns:
- the text
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getSyntax
Syntax getSyntax()Gets the syntax of the parameter.- Returns:
- the syntax
- Compliance:
mandatory- This method must be implemented.
-
getInputPosition
long getInputPosition()Gets the input position for this parameter as supplied to the text.- Returns:
- the position
- 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.
-