uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Niekler <aniek...@informatik.uni-leipzig.de>
Subject Re: Defining SuperType or Range for Custom Type
Date Wed, 15 Aug 2012 18:40:36 GMT
Hello,

i had a review on the documentation and i still wonder if such things 
can be done:
<typeDescription>
       <name>uima.cpe.DocumentMetadata</name>
       <description>This is a Type to add all Metadata to a document 
that is defined</description>
       <supertypeName>uima.tcas.DocumentAnnotation</supertypeName>
       <features>
         <featureDescription>
           <name>DB_ID</name>
           <description>THE DATABASE ID</description>
<!--IMPORTANT HERE -->
<!--IMPORTANT HERE -->
           <rangeTypeName>org.bson.types.ObjectId</rangeTypeName>
<!--IMPORTANT HERE -->
<!--IMPORTANT HERE -->
         </featureDescription>
       </features>
     </typeDescription>

Thanks for clarification

Andreas

Am 15.08.2012 15:38, schrieb Marshall Schor:
>
> On 8/15/2012 9:17 AM, Andreas Niekler wrote:
>> Hello,
>>
>> right now i'm wondering if it is possible to define a type in the type editor,
>> which is not of a primitive from uima. Instead i want to give it a Class which
>> represents a Database Id.
>>
>> Is it possible to assign other SuperTypes than those in uima.tcas namespace?
>
> The uima types can have arbitrary supertypes, but the supertype chain eventually
> has to inherit from uima.cas.TOP.  See
> http://uima.apache.org/d/uimaj-2.4.0/references.html#ugr.ref.cas.builtin_types
>
> -Marshall
>

-- 
Andreas Niekler, Dipl. Ing. (FH)
NLP Group | Department of Computer Science
University of Leipzig
Johannisgasse 26 | 04103 Leipzig

mail: aniekler@informatik.uni-leipzig.deg.de

Mime
View raw message