Changes between Version 23 and Version 24 of openEHR XML-schemas - Release 1.0.1
- Timestamp:
- Aug 9, 2007, 11:39:08 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
openEHR XML-schemas - Release 1.0.1
v23 v24 88 88 Generic types 89 89 90 openEHRの参照モデルによってgeneric型を使うことができる。generic型には DV_INTERVAL<T>(Data90 openEHRの参照モデルによってgeneric型を使うことができる。generic型にはたとえばDV_INTERVAL<T>(IMデータ型)とVERSION<T>(IM共通)がある。generic型はC#やJavaでも利用することができるようになったので,これは実装仕様を満たす必要がある。generic型はXMLスキーマで利用することができないので,'XS_'で始まる特殊な型を精製して同じように制約を加える必要がある。 91 91 92 92 The openEHR reference model makes use of generic types - including DV_INTERVAL<T> (Data types IM) and VERSION<T> (Common IM) for example. As generic types are now available in C# and Java this is warranted for implementation specifications. Generic types are not available in XML Schema, so specific types prefixed with 'XS_' have been created to provide the same constraints. … … 99 99 ||Interval<DateTime>||IntervalOfDateTime (BaseTypes.xsd)|| 100 100 ||Interval<Duration>||IntervalOfDuration (BaseTypes.xsd)|| 101 ||DV_INTERVAL<DV_ORDERED>|| only one type is used, namely DV_INTERVAL, with lower and upper of type DV_ORDERED. Software implementations of the relevant generic types (DV_INTERVAL<DV_DATE> etc) are expected to implement further typing sensibly.(BaseTypes.xsd)||101 ||DV_INTERVAL<DV_ORDERED>||DV_INTERVALただひとつだけが用いられている。only one type is used, namely DV_INTERVAL, with lower and upper of type DV_ORDERED. Software implementations of the relevant generic types (DV_INTERVAL<DV_DATE> etc) are expected to implement further typing sensibly.(BaseTypes.xsd)|| 102 102 ||VERSION<T>||only one type is used, namely VERSION. The subtype ORIGINAL_VERSION has its data attribute of type LOCATABLE (Version.xsd)|| 103 103 104 == Multiple Inheritance == 104 == 多重継承 == 105 Multiple Inheritance 106 107 openEHRの参照モデルでは,多重継承を使っているところがいくつかある。すべての場合で,単一継承によるサブタイプで代替可能な関係(たとえば'is-a')ではあるが,ほかの 105 108 106 109 There are a couple of places where multiple inheritance occurs in the openEHR reference model. In all cases, only one inheritance branch corresponds to subtyping in the substitutability (i.e. 'is-a') sense; the other branches are always 'facility' or 'mix-in' inheritance. In the RM, classes inheriting in this way include rm.data_types.quantity.DV_INTERVAL and the rm.data_types.quantity.date_time classes. The latter inherit only interface, which has no visibility in XML-schema. For the former, the inheritance of Interval<T> by DV_INTERVAL<T> is done in the schema simply by direct inclusion, since the other branch of inheritance (of DATA_VALUE) is the one which must be visible to schema processing.