Primitive Transformations

Summary

There are two categories of primitives used in the OSIDs. Language primitives are defined in the Structure and Definitions of OSIDs specification and do not have interfaces specified in the OSIDs. These language primitives are left to the OSID Language Specification to interpret. The OSIDs designate certain interfaces as OSID Primitives. OSID Primitives have interface definitions expected to be used in the OSID Language Binding. 

This section deals with language primitives.

Mapping Rules

OSID Language PrimitiveMapping to JavaRestrictions
booleanboolean 
bytebyte 
cardinallong>= 0
decimaljava.math.BigDecimalnot null
integerlong 
objectjava.lang.Objectnot null
stringjava.lang.Stringnot null
timestamp1java.util.Date

not null

1 osid.calendaring.DateTime is used in most places needing a date and time. timestamps are used in a few places where the flexibility of the DateTime interface is not desired (this may be short sighted).

See Also

 

Copyright © 2014 Okapia.