Return-Path: X-Original-To: apmail-uima-user-archive@www.apache.org Delivered-To: apmail-uima-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A62BA10919 for ; Thu, 13 Feb 2014 21:11:49 +0000 (UTC) Received: (qmail 91043 invoked by uid 500); 13 Feb 2014 21:11:49 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 90986 invoked by uid 500); 13 Feb 2014 21:11:48 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 90978 invoked by uid 99); 13 Feb 2014 21:11:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Feb 2014 21:11:48 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [155.97.131.100] (HELO ipo4hsc.utah.edu) (155.97.131.100) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Feb 2014 21:11:42 +0000 X-SBRS: None X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqAEAMcz/VKbYbVn/2dsb2JhbABWA4QVqz6UEIEwdIIlAQEEAX4LAgEIRiERJQIEE4dxAwkIv2MNV4dlF4xfgWcjFxGDE4EUBJZAgWyMXoVFgy2CKg X-IPAS-Result: AqAEAMcz/VKbYbVn/2dsb2JhbABWA4QVqz6UEIEwdIIlAQEEAX4LAgEIRiERJQIEE4dxAwkIv2MNV4dlF4xfgWcjFxGDE4EUBJZAgWyMXoVFgy2CKg X-IronPort-AV: E=Sophos;i="4.95,840,1384326000"; d="scan'208";a="318435815" Received: from h103.umail.utah.edu (HELO X-HUB3.xds.umail.utah.edu) ([155.97.181.103]) by ipo4smtp.cc.utah.edu with ESMTP/TLS/AES128-SHA; 13 Feb 2014 14:11:22 -0700 Received: from X-MB1.xds.umail.utah.edu ([169.254.1.19]) by X-HUB3.xds.umail.utah.edu ([155.97.181.103]) with mapi id 14.03.0158.001; Thu, 13 Feb 2014 14:11:22 -0700 From: Thomas Ginter To: "" Subject: Re: uima jcas get annotation type from string Thread-Topic: uima jcas get annotation type from string Thread-Index: AQHPKLwQP0CORKW8M0OOI9+/qjMsQ5q0JCqA Date: Thu, 13 Feb 2014 21:11:21 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [155.97.183.136] Content-Type: text/plain; charset="Windows-1252" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org There are a couple of different ways to get a pointer to specific Type obje= ct. =20 jcas.getRequiredType(=93mypackage.AnnotationType=94); (cas|jcas).getTypeSystem.getType(=93mypackage.AnnotationType=94); The question is what do you want to do with the Type object once you have i= t. Thanks, Thomas Ginter 801-448-7676 thomas.ginter@utah.edu On Feb 13, 2014, at 6:03 AM, hannes schantl wr= ote: > Hi, >=20 > Is there a way to get an annotation Type from the cas(or Jcas) from a > string. > For example, i am looking for something like that: > jcas.getCasType("AnnotationName") >=20 > greetings Hannes