| UIMA > Index > ToDo > MergeJCasType |
The basic idea is to have one source file for both the Xyz and Xyz_Type classes. The methodology is to have the _Type class be a static inner class of the Type class.
The JCas initialization code would be modified to load the Xyz$Xyz_Type which would be the new name.
The user can still get access to the _Type class instance for a particular type and (j)cas by doing the same source code expression; only the import would change. The source code expression is
(MyParticularType_Type)aJCas.getType(MyParticularType.type). The import for this _Type would reference the outer class.innerclass_Type.
We would migrate the existing JCas cover classes for existing types in the current format of two separate classes to the new form of one source class.