Metadata¶
Metadata¶
-
class
dlkit.osid.metadata.Metadata¶ The
Metadatainterface defines a set of methods describing a the syntax and rules for creating and updating a data element inside anOsidForm.This interface provides a means to retrieve special restrictions placed upon data elements such as sizes and ranges that may vary from provider to provider or from object to object.
-
element_id¶ Gets a unique
Idfor the data element.Returns: an IdReturn type: osid.id.Id
-
element_label¶ Gets a display label for the data element.
Returns: a display label Return type: osid.locale.DisplayText
-
instructions¶ Gets instructions for updating this element value.
This is a human readable description of the data element or property that may include special instructions or caveats to the end-user above and beyond what this interface provides.
Returns: instructions Return type: osid.locale.DisplayText
-
syntax¶ Gets the syntax of this data.
Returns: an enumeration indicating thetype of value Return type: osid.Syntax
-
is_array()¶ Tests if this data element is an array.
Returns: trueif this data is an array,falseif a single elementReturn type: boolean
-
is_required()¶ Tests if this data element is required for creating new objects.
Returns: trueif this element value is required,falseotherwiseReturn type: boolean
-
is_read_only()¶ Tests if this data can be updated.
This may indicate the result of a pre-authorization but is not a guarantee that an authorization failure will not occur when the create or update transaction is issued.
Returns: trueif this data is not updatable,falseotherwiseReturn type: boolean
-
is_linked()¶ Tests if this data element is linked to other data in the object.
Updating linked data elements should refresh all metadata and revalidate object elements.
Returns: true if this element is linked, false if updates have no side effect Return type: boolean
-
is_value_known()¶ Tests if an existing value is known for this data element.
If it is known that a value does not exist, then this method returns
true.Returns: trueif the element value is known,falseif the element value is not knownReturn type: boolean
-
has_value()¶ Tests if this data element has a set non-default value.
Returns: trueif this element value has been set,falseotherwiseReturn type: booleanRaise: IllegalState–is_value_known()isfalse
-
units¶ Gets the units of this data for display purposes (‘lbs’, ‘gills’, ‘furlongs’).
Returns: the display units of this data or an empty string if not applicable Return type: osid.locale.DisplayText
-
minimum_elements¶ In the case where an array or list of elements is specified in an
OsidForm,this specifies the minimum number of elements that must be included.Returns: the minimum elements or 1ifis_array()isfalseReturn type: cardinal
-
maximum_elements¶ In the case where an array or list of elements is specified in an
OsidForm,this specifies the maximum number of elements that can be specified.Returns: the maximum elements or 1ifis_array()isfalseReturn type: cardinal
-
minimum_cardinal¶ Gets the minimum cardinal value.
Returns: the minimum cardinal Return type: cardinalRaise: IllegalState– syntax is not aCARDINAL
-
maximum_cardinal¶ Gets the maximum cardinal value.
Returns: the maximum cardinal Return type: cardinalRaise: IllegalState– syntax is not aCARDINAL
-
cardinal_set¶ Gets the set of acceptable cardinal values.
Returns: a set of cardinals or an empty array if not restricted Return type: cardinalRaise: IllegalState– syntax is not aCARDINAL
-
default_cardinal_values¶ Gets the default cardinal values.
These are the values used if the element value is not provided or is cleared. If
is_array()is false, then this method returns at most a single value.Returns: the default cardinal values Return type: cardinalRaise: IllegalState– syntax is not aCARDINALoris_required()istrue
-
existing_cardinal_values¶ Gets the existing cardinal values.
If
has_value()andis_required()arefalse,then these values are the default values ``. If ``is_array()is false, then this method returns at most a single value.Returns: the existing cardinal values Return type: cardinalRaise: IllegalState– syntax is not aCARDINALoris_value_known()isfalse
-
coordinate_types¶ Gets the set of acceptable coordinate types.
Returns: the set of coordinate types Return type: osid.type.TypeRaise: IllegalState– syntax is not aCOORDINATE or SPATIALUNIT
-
supports_coordinate_type(coordinate_type)¶ Tests if the given coordinate type is supported.
Parameters: coordinate_type ( osid.type.Type) – a coordinate TypeReturns: trueif the type is supported,falseotherwiseReturn type: booleanRaise: IllegalState– syntax is not aCOORDINATERaise: NullArgument–coordinate_typeisnull
-
get_axes_for_coordinate_type(coordinate_type)¶ Gets the number of axes for a given supported coordinate type.
Parameters: coordinate_type ( osid.type.Type) – a coordinate TypeReturns: the number of axes Return type: cardinalRaise: IllegalState– syntax is not aCOORDINATERaise: NullArgument–coordinate_typeisnullRaise: Unsupported–supports_coordinate_type(coordinate_type)isfalse
-
get_minimum_coordinate_values(coordinate_type)¶ Gets the minimum coordinate values given supported coordinate type.
Parameters: coordinate_type ( osid.type.Type) – a coordinate TypeReturns: the minimum coordinate values Return type: decimalRaise: IllegalState– syntax is not aCOORDINATERaise: NullArgument–coordinate_typeisnullRaise: Unsupported–supports_coordinate_type(coordinate_type)isfalse
-
get_maximum_coordinate_values(coordinate_type)¶ Gets the maximum coordinate values given supported coordinate type.
Parameters: coordinate_type ( osid.type.Type) – a coordinate TypeReturns: the maximum coordinate values Return type: decimalRaise: IllegalState– syntax is not aCOORDINATERaise: NullArgument–coordinate_typeisnullRaise: Unsupported–supports_coordinate_type(coordinate_type)isfalse
-
coordinate_set¶ Gets the set of acceptable coordinate values.
Returns: a set of coordinates or an empty array if not restricted Return type: osid.mapping.CoordinateRaise: IllegalState– syntax is not aCOORDINATE
-
default_coordinate_values¶ Gets the default coordinate values.
These are the values used if the element value is not provided or is cleared. If
is_array()is false, then this method returns at most a single value.Returns: the default coordinate values Return type: osid.mapping.CoordinateRaise: IllegalState– syntax is not aCOORDINATEoris_required()istrue
-
existing_coordinate_values¶ Gets the existing coordinate values.
If
has_value()andis_required()arefalse,then these values are the default values ``. If ``is_array()is false, then this method returns at most a single value.Returns: the existing coordinate values Return type: osid.mapping.CoordinateRaise: IllegalState– syntax is not aCOORDINATEoris_value_known()isfalse
-
currency_types¶ Gets the set of acceptable currency types.
Returns: the set of currency types Return type: osid.type.TypeRaise: IllegalState– syntax is not aCURRENCY
-
supports_currency_type(currency_type)¶ Tests if the given currency type is supported.
Parameters: currency_type ( osid.type.Type) – a currency TypeReturns: trueif the type is supported,falseotherwiseReturn type: booleanRaise: IllegalState– syntax is not aCURRENCYRaise: NullArgument–currency_typeisnull
-
minimum_currency¶ Gets the minimum currency value.
Returns: the minimum currency Return type: osid.financials.CurrencyRaise: IllegalState– syntax is not aCURRENCY
-
maximum_currency¶ Gets the maximum currency value.
Returns: the maximum currency Return type: osid.financials.CurrencyRaise: IllegalState– syntax is not aCURRENCY
-
currency_set¶ Gets the set of acceptable currency values.
Returns: a set of currencies or an empty array if not restricted Return type: osid.financials.CurrencyRaise: IllegalState– syntax is not aCURRENCY
-
default_currency_values¶ Gets the default currency values.
These are the values used if the element value is not provided or is cleared. If
is_array()is false, then this method returns at most a single value.Returns: the default currency values Return type: osid.financials.CurrencyRaise: IllegalState– syntax is not aCURRENCYoris_required()istrue
-
existing_currency_values¶ Gets the existing currency values.
If
has_value()andis_required()arefalse,then these values are the default values ``. If ``is_array()is false, then this method returns at most a single value.Returns: the existing currency values Return type: osid.financials.CurrencyRaise: IllegalState– syntax is not aCURRENCYoris_value_known()isfalse
-
date_time_resolution¶ Gets the smallest resolution of the date time value.
Returns: the resolution Return type: osid.calendaring.DateTimeResolutionRaise: IllegalState– syntax is not aDATETIME, DURATION, orTIME
-
calendar_types¶ Gets the set of acceptable calendar types.
Returns: the set of calendar types Return type: osid.type.TypeRaise: IllegalState– syntax is not aDATETIMEorDURATION
-
supports_calendar_type(calendar_type)¶ Tests if the given calendar type is supported.
Parameters: calendar_type ( osid.type.Type) – a calendar TypeReturns: trueif the type is supported,falseotherwiseReturn type: booleanRaise: IllegalState– syntax is not aDATETIMEorDURATIONRaise: NullArgument–calendar_typeisnull
-
time_types¶ Gets the set of acceptable time types.
Returns: a set of time types or an empty array if not restricted Return type: osid.type.TypeRaise: IllegalState– syntax is not aDATETIME, DURATION,orTIME
-
supports_time_type(time_type)¶ Tests if the given time type is supported.
Parameters: time_type ( osid.type.Type) – a time TypeReturns: trueif the type is supported,falseotherwiseReturn type: booleanRaise: IllegalState– syntax is not aDATETIME, DURATION,orTIMERaise: NullArgument–time_typeisnull
-
minimum_date_time¶ Gets the minimum date time value.
Returns: the minimum value Return type: osid.calendaring.DateTimeRaise: IllegalState– syntax is not aDATETIME
-
maximum_date_time¶ Gets the maximum date time value.
Returns: the maximum value Return type: osid.calendaring.DateTimeRaise: IllegalState– syntax is not aDATETIME
-
date_time_set¶ Gets the set of acceptable date time values.
Returns: a set of values or an empty array if not restricted Return type: osid.calendaring.DateTimeRaise: IllegalState– syntax is not aDATETIME
-
default_date_time_values¶ Gets the default date time values.
These are the values used if the element value is not provided or is cleared. If
is_array()is false, then this method returns at most a single value.Returns: the default date time values Return type: osid.calendaring.DateTimeRaise: IllegalState– syntax is not aDATETIMEoris_required()istrue
-
existing_date_time_values¶ Gets the existing date time values.
If
has_value()andis_required()arefalse,then these values are the default values ``. If ``is_array()is false, then this method returns at most a single value.Returns: the existing date time values Return type: osid.calendaring.DateTimeRaise: IllegalState– syntax is not aDATETIMEoris_value_known()isfalse
-
decimal_scale¶ Gets the number of digits to the right of the decimal point.
Returns: the scale Return type: cardinalRaise: IllegalState– syntax is not aDECIMAL
-
minimum_decimal¶ Gets the minimum decimal value.
Returns: the minimum decimal Return type: decimalRaise: IllegalState– syntax is not aDECIMAL
-
maximum_decimal¶ Gets the maximum decimal value.
Returns: the maximum decimal Return type: decimalRaise: IllegalState– syntax is not aDECIMAL
-
decimal_set¶ Gets the set of acceptable decimal values.
Returns: a set of decimals or an empty array if not restricted Return type: decimalRaise: IllegalState– syntax is not aDECIMAL
-
default_decimal_values¶ Gets the default decimal values.
These are the values used if the element value is not provided or is cleared. If
is_array()is false, then this method returns at most a single value.Returns: the default decimal values Return type: decimalRaise: IllegalState– syntax is not aDECIMALoris_required()istrue
-
existing_decimal_values¶ Gets the existing decimal values.
If
has_value()andis_required()arefalse,then these values are the default values ``. If ``is_array()is false, then this method returns at most a single value.Returns: the existing decimal values Return type: decimalRaise: IllegalState– syntax is not aDECIMALoris_value_known()isfalse
-
distance_resolution¶ Gets the smallest resolution of the distance value.
Returns: the resolution Return type: osid.mapping.DistanceResolutionRaise: IllegalState– syntax is not aDISTANCE
-
minimum_distance¶ Gets the minimum distance value.
Returns: the minimum value Return type: osid.mapping.DistanceRaise: IllegalState– syntax is not aDISTANCE
-
maximum_distance¶ Gets the maximum distance value.
Returns: the maximum value Return type: osid.mapping.DistanceRaise: IllegalState– syntax is not aDISTANCE
-
distance_set¶ Gets the set of acceptable distance values.
Returns: a set of values or an empty array if not restricted Return type: osid.mapping.DistanceRaise: IllegalState– syntax is not aDISTANCE
-
default_distance_values¶ Gets the default distance values.
These are the values used if the element value is not provided or is cleared. If
is_array()is false, then this method returns at most a single value.Returns: the default distance values Return type: osid.mapping.DistanceRaise: IllegalState– syntax is not aDISTANCEoris_required()istrue
-
existing_distance_values¶ Gets the existing distance values.
If
has_value()andis_required()arefalse,then these values are the default values ``. If ``is_array()is false, then this method returns at most a single value.Returns: the existing distance values Return type: osid.mapping.DistanceRaise: IllegalState– syntax is not aDISTANCEoris_value_known()isfalse
-
minimum_duration¶ Gets the minimum duration.
Returns: the minimum duration Return type: osid.calendaring.DurationRaise: IllegalState– syntax is not aDURATION
-
maximum_duration¶ Gets the maximum duration.
Returns: the maximum duration Return type: osid.calendaring.DurationRaise: IllegalState– syntax is not aDURATION
-
duration_set¶ Gets the set of acceptable duration values.
Returns: a set of durations or an empty array if not restricted Return type: osid.calendaring.DurationRaise: IllegalState– syntax is not aDURATION
-
default_duration_values¶ Gets the default duration values.
These are the values used if the element value is not provided or is cleared. If
is_array()is false, then this method returns at most at most a single value.Returns: the default duration values Return type: osid.calendaring.DurationRaise: IllegalState– syntax is not a DURATION oris_required()istrue
-
existing_duration_values¶ Gets the existing duration values.
If
has_value()andis_required()arefalse,then these values are the default values ``. If ``is_array()is false, then this method returns at most a single value.Returns: the existing duration values Return type: osid.calendaring.DurationRaise: IllegalState– syntax is not aDURATIONoris_value_known()isfalse
-
heading_types¶ Gets the set of acceptable heading types.
Returns: a set of heading types or an empty array if not restricted Return type: osid.type.TypeRaise: IllegalState– syntax is not aHEADING
-
supports_heading_type(heading_type)¶ Tests if the given heading type is supported.
Parameters: heading_type ( osid.type.Type) – a heading TypeReturns: trueif the type is supported,falseotherwiseReturn type: booleanRaise: IllegalState– syntax is not aHEADINGRaise: NullArgument–heading_typeisnull
-
get_axes_for_heading_type(heading_type)¶ Gets the number of axes for a given supported heading type.
Parameters: heading_type ( osid.type.Type) – a heading TypeReturns: the number of axes Return type: cardinalRaise: IllegalState– syntax is not aHEADINGRaise: NullArgument–heading_typeisnullRaise: Unsupported–supports_heading_type(heading_type)isfalse
-
get_minimum_heading_values(heading_type)¶ Gets the minimum heading values given supported heading type.
Parameters: heading_type ( osid.type.Type) – a heading TypeReturns: the minimum heading values Return type: decimalRaise: IllegalState– syntax is not aHEADINGRaise: NullArgument–heading_typeisnullRaise: Unsupported–supports_heading_type(heading_type)isfalse
-
get_maximum_heading_values(heading_type)¶ Gets the maximum heading values given supported heading type.
Parameters: heading_type ( osid.type.Type) – a heading TypeReturns: the maximum heading values Return type: decimalRaise: IllegalState– syntax is not aHEADINGRaise: NullArgument–heading_typeisnullRaise: Unsupported–supports_heading_type(heading_type)isfalse
-
heading_set¶ Gets the set of acceptable heading values.
Returns: the set of heading Return type: osid.mapping.HeadingRaise: IllegalState– syntax is not aHEADING
-
default_heading_values¶ Gets the default heading values.
These are the values used if the element value is not provided or is cleared. If
is_array()is false, then this method returns at most a single value.Returns: the default heading values Return type: osid.mapping.HeadingRaise: IllegalState– syntax is not aHEADINGoris_required()istrue
-
existing_heading_values¶ Gets the existing heading values.
If
has_value()andis_required()arefalse,then these values are the default values ``. If ``is_array()is false, then this method returns at most a single value.Returns: the existing heading values Return type: osid.mapping.HeadingRaise: IllegalState– syntax is not aHEADINGoris_value_known()isfalse
-
id_set¶ Gets the set of acceptable
Ids.Returns: a set of Idsor an empty array if not restrictedReturn type: osid.id.IdRaise: IllegalState– syntax is not anID
-
default_id_values¶ Gets the default
Idvalues.These are the values used if the element value is not provided or is cleared. If
is_array()is false, then this method returns at most a single value.Returns: the default IdvaluesReturn type: osid.id.IdRaise: IllegalState– syntax is not anIDoris_required()istrue
-
existing_id_values¶ Gets the existing
Idvalues.If
has_value()andis_required()arefalse,then these values are the default values ``. If ``is_array()is false, then this method returns at most a single value.Returns: the existing IdvaluesReturn type: osid.id.IdRaise: IllegalState– syntax is not anID
-
minimum_integer¶ Gets the minimum integer value.
Returns: the minimum value Return type: integerRaise: IllegalState– syntax is not anINTEGER
-
maximum_integer¶ Gets the maximum integer value.
Returns: the maximum value Return type: integerRaise: IllegalState– syntax is not anINTEGER
-
integer_set¶ Gets the set of acceptable integer values.
Returns: a set of values or an empty array if not restricted Return type: integerRaise: IllegalState– syntax is not anINTEGER
-
default_integer_values¶ Gets the default integer values.
These are the values used if the element value is not provided or is cleared. If
is_array()is false, then this method returns at most a single value.Returns: the default integer values Return type: integerRaise: IllegalState– syntax is not anINTEGERoris_required()istrue
-
existing_integer_values¶ Gets the existing integer values.
If
has_value()andis_required()arefalse,then these values are the default values ``. If ``is_array()is false, then this method returns at most a single value.Returns: the existing integer values Return type: integerRaise: IllegalState– syntax is not aINTEGERor isValueKnown() is false
-
object_types¶ Gets the set of acceptable
Typesfor an arbitrary object.Returns: a set of Typesor an empty array if not restrictedReturn type: osid.type.TypeRaise: IllegalState– syntax is not anOBJECT
-
supports_object_type(object_type)¶ Tests if the given object type is supported.
Parameters: object_type ( osid.type.Type) – an object TypeReturns: trueif the type is supported,falseotherwiseReturn type: booleanRaise: IllegalState– syntax is not anOBJECTRaise: NullArgument–object_typeisnull
-
object_set¶ Gets the set of acceptable object values.
Returns: a set of values or an empty array if not restricted Return type: objectRaise: IllegalState– syntax is not anOBJECT
-
default_object_values¶ Gets the default object values.
These are the values used if the element value is not provided or is cleared. If
is_array()is false, then this method returns at most a single value.Returns: the default object values Return type: objectRaise: IllegalState– syntax is not anOBJECToris_required()istrue
-
existing_object_values¶ Gets the existing object values.
If
has_value()andis_required()arefalse,then these values are the default values ``. If ``is_array()is false, then this method returns at most a single value.Returns: the existing object values Return type: objectRaise: IllegalState– syntax is not an OBJECT oris_value_known()isfalse
-
spatial_unit_record_types¶ Gets the set of acceptable spatial unit record types.
Returns: the set of spatial unit types Return type: osid.type.TypeRaise: IllegalState– syntax is notSPATIALUNIT
-
supports_spatial_unit_record_type(spatial_unit_record_type)¶ Tests if the given spatial unit record type is supported.
Parameters: spatial_unit_record_type ( osid.type.Type) – a spatial unit record TypeReturns: trueif the type is supported,falseotherwiseReturn type: booleanRaise: IllegalState– syntax is not anSPATIALUNITRaise: NullArgument–spatial_unit_record_typeisnull
-
spatial_unit_set¶ Gets the set of acceptable spatial unit values.
Returns: a set of spatial units or an empty array if not restricted Return type: osid.mapping.SpatialUnitRaise: IllegalState– syntax is not aSPATIALUNIT
-
default_spatial_unit_values¶ Gets the default spatial unit values.
These are the values used if the element value is not provided or is cleared. If
is_array()is false, then this method returns at most a single value.Returns: the default spatial unit values Return type: osid.mapping.SpatialUnitRaise: IllegalState– syntax is not aSPATIALUNIToris_required()istrue
-
existing_spatial_unit_values¶ Gets the existing spatial unit values.
If
has_value()andis_required()arefalse,then these values are the default values ``. If ``is_array()is false, then this method returns at most a single value.Returns: the existing spatial unit values Return type: osid.mapping.SpatialUnitRaise: IllegalState– syntax is not a SPATIALUNIT oris_value_known()isfalse
-
minimum_speed¶ Gets the minimum speed value.
Returns: the minimum speed Return type: osid.mapping.SpeedRaise: IllegalState– syntax is not aSPEED
-
maximum_speed¶ Gets the maximum speed value.
Returns: the maximum speed Return type: osid.mapping.SpeedRaise: IllegalState– syntax is not aSPEED
-
speed_set¶ Gets the set of acceptable speed values.
Returns: a set of speeds or an empty array if not restricted Return type: osid.mapping.SpeedRaise: IllegalState– syntax is not aSPEED
-
default_speed_values¶ Gets the default speed values.
These are the values used if the element value is not provided or is cleared. If
is_array()is false, then this method returns at most a single value.Returns: the default speed values Return type: osid.mapping.SpeedRaise: IllegalState– syntax is not aSPEEDoris_required()istrue
-
existing_speed_values¶ Gets the existing speed values.
If
has_value()andis_required()arefalse,then these values are the default values ``. If ``is_array()is false, then this method returns at most a single value.Returns: the existing speed values Return type: osid.mapping.SpeedRaise: IllegalState– syntax is not aSPEEDoris_value_known()isfalse
-
minimum_string_length¶ Gets the minimum string length.
Returns: the minimum string length Return type: cardinalRaise: IllegalState– syntax is not aSTRING
-
maximum_string_length¶ Gets the maximum string length.
Returns: the maximum string length Return type: cardinalRaise: IllegalState– syntax is not aSTRING
-
string_match_types¶ Gets the set of valid string match types for use in validating a string.
If the string match type indicates a regular expression then
get_string_expression()returns a regular expression.Returns: the set of string match types Return type: osid.type.TypeRaise: IllegalState– syntax is not aSTRING
-
supports_string_match_type(string_match_type)¶ Tests if the given string match type is supported.
Parameters: string_match_type ( osid.type.Type) – a string match typeReturns: trueif the given string match type Is supported,falseotherwiseReturn type: booleanRaise: IllegalState– syntax is not aSTRINGRaise: NullArgument–string_match_typeisnull
-
get_string_expression(string_match_type)¶ Gets the regular expression of an acceptable string for the given string match type.
Parameters: string_match_type ( osid.type.Type) – a string match typeReturns: the regular expression Return type: stringRaise: NullArgument–string_match_typeisnullRaise: IllegalState– syntax is not aSTRINGRaise: Unsupported–supports_string_match_type(string_match_type) isfalse
-
string_format_types¶ Gets the set of valid string formats.
Returns: the set of valid text format types Return type: osid.type.TypeRaise: IllegalState– syntax is not aSTRING
-
string_set¶ Gets the set of acceptable string values.
Returns: a set of strings or an empty array if not restricted Return type: stringRaise: IllegalState– syntax is not aSTRING
-
default_string_values¶ Gets the default string values.
These are the values used if the element value is not provided or is cleared. If
is_array()is false, then this method returns at most a single value.Returns: the default string values Return type: stringRaise: IllegalState– syntax is not aSTRINGoris_required()istrue
-
existing_string_values¶ Gets the existing string values.
If
has_value()andis_required()arefalse,then these values are the default values ``. If ``is_array()is false, then this method returns at most a single value.Returns: the existing string values Return type: stringRaise: IllegalState– syntax is not aSTRINGoris_value_known()isfalse
-
minimum_time¶ Gets the minimum time value.
Returns: the minimum time Return type: osid.calendaring.TimeRaise: IllegalState– syntax is not aTIME
-
maximum_time¶ Gets the maximum time value.
Returns: the maximum time Return type: osid.calendaring.TimeRaise: IllegalState– syntax is not aTIME
-
time_set¶ Gets the set of acceptable time values.
Returns: a set of times or an empty array if not restricted Return type: osid.calendaring.TimeRaise: IllegalState– syntax is not aTIME
-
default_time_values¶ Gets the default time values.
These are the values used if the element value is not provided or is cleared. If
is_array()is false, then this method returns at most a single value.Returns: the default time values Return type: osid.calendaring.TimeRaise: IllegalState– syntax is not aTIMEoris_required()istrue
-
existing_time_values¶ Gets the existing time values.
If
has_value()andis_required()arefalse,then these values are the default values ``. If ``is_array()is false, then this method returns at most a single value.Returns: the existing time values Return type: osid.calendaring.TimeRaise: IllegalState– syntax is not aTIMEoris_value_known()isfalse
-
type_set¶ Gets the set of acceptable
Types.Returns: a set of Typesor an empty array if not restrictedReturn type: osid.type.TypeRaise: IllegalState– syntax is not aTYPE
-
default_type_values¶ Gets the default type values.
These are the values used if the element value is not provided or is cleared. If
is_array()is false, then this method returns at most a single value.Returns: the default type values Return type: osid.type.TypeRaise: IllegalState– syntax is not aTYPEoris_required()istrue
-
existing_type_values¶ Gets the existing type values.
If
has_value()andis_required()arefalse,then these values are the default values ``. If ``is_array()is false, then this method returns at most a single value.Returns: the existing type values Return type: osid.type.TypeRaise: IllegalState– syntax is not aTYPEoris_value_known()isfalse
-
version_types¶ Gets the set of acceptable version types.
Returns: the set of version types Return type: osid.type.TypeRaise: IllegalState– syntax is not aVERSION
-
supports_version_type(version_type)¶ Tests if the given version type is supported.
Parameters: version_type ( osid.type.Type) – a version TypeReturns: trueif the type is supported,falseotherwiseReturn type: booleanRaise: IllegalState– syntax is not aVERSIONRaise: NullArgument–version_typeisnull
-
minimum_version¶ Gets the minumim acceptable
Version.Returns: the minumim VersionReturn type: osid.installation.VersionRaise: IllegalState– syntax is not aVERSION
-
maximum_version¶ Gets the maximum acceptable
Version.Returns: the maximum VersionReturn type: osid.installation.VersionRaise: IllegalState– syntax is not aVERSION
-
version_set¶ Gets the set of acceptable
Versions.Returns: a set of Versionsor an empty array if not restrictedReturn type: osid.installation.VersionRaise: IllegalState– syntax is not aVERSION
-
default_version_values¶ Gets the default version values.
These are the values used if the element value is not provided or is cleared. If
is_array()is false, then this method returns at most a single value.Returns: the default version values Return type: osid.installation.VersionRaise: IllegalState– syntax is not a TIME or isValueKnown() is false
-
existing_version_values¶ Gets the existing version values.
If
has_value()andis_required()arefalse,then these values are the default values ``. If ``is_array()is false, then this method returns at most a single value.Returns: the existing version values Return type: osid.installation.VersionRaise: IllegalState– syntax is not aVERSIONoris_value_known()isfalse
-