Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EEAD1200B3B for ; Mon, 11 Jul 2016 15:20:51 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id ED282160A78; Mon, 11 Jul 2016 13:20:51 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 40F0D160A62 for ; Mon, 11 Jul 2016 15:20:51 +0200 (CEST) Received: (qmail 56426 invoked by uid 500); 11 Jul 2016 13:20:45 -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 56412 invoked by uid 99); 11 Jul 2016 13:20:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jul 2016 13:20:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C10E5C146E for ; Mon, 11 Jul 2016 13:20:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.807 X-Spam-Level: X-Spam-Status: No, score=-1.807 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.287] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id fTF3d01x2Ur3 for ; Mon, 11 Jul 2016 13:20:41 +0000 (UTC) Received: from smtp.uniroma2.it (smtp.uniroma2.it [160.80.6.23]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A12CF5FD6B for ; Mon, 11 Jul 2016 13:20:40 +0000 (UTC) Received: from [160.80.84.144] (athena.info.uniroma2.it [160.80.84.144]) by smtp-2015.uniroma2.it (8.14.4/8.14.4/Debian-8) with ESMTP id u6BDKUpQ018212 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Mon, 11 Jul 2016 15:20:30 +0200 Subject: Re: Type in an FSList starting from the TypeSystem To: user@uima.apache.org References: <578379FD.8090007@info.uniroma2.it> <7A36CCCB-5F43-46E9-ADD1-6834B6A8FD44@apache.org> From: Andrea Turbati Message-ID: <57839D44.4010307@info.uniroma2.it> Date: Mon, 11 Jul 2016 15:21:08 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <7A36CCCB-5F43-46E9-ADD1-6834B6A8FD44@apache.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.98.6 at smtp-2015 X-Virus-Status: Clean archived-at: Mon, 11 Jul 2016 13:20:52 -0000 Yes, I've looked the source code and it seems to me that it should works only for Arrays . Is there no other way to see the the Type contained in a FSList ? Thanks, Andrea Il 11/07/2016 13:55, Richard Eckart de Castilho ha scritto: > Sounds like it may be a bug. The TypeSystemUtil.feature2FeatureDescription() method seems to set elementType only for array-type features and only if the elementType is not TOP. > > Cheers, > > -- Richard > >> On 11.07.2016, at 12:50, Andrea Turbati wrote: >> >> Hi, >> is there a way to access the type of a FSList from the TypeSystem? >> I've tried with the following code: >> >> FeatureDescription featureDescription = TypeSystemUtil.feature2FeatureDescription(feature); >> String typeStringOfList = featureDescription.getElementType(); >> >> but I always get a null in the variable typeStringOfList, even if the description of such method is: >> >> "For a feature with a range type that is an array or list, gets the expected type of the elements of that array or list. This is optional; if ommitted the array or list can contain any type. There is currently no guarantee that the framework will enforce this type restriction. This property should not be set for features whose range type is not an array or list." >> >> Thanks in advance for your feedback, >> >> Andrea > -- ------------------------------------------------- Dott. Andrea Turbati, PhD AI Research Group, Dept. of Enterprise Engineering University of Roma, Tor Vergata Via del Politecnico 1 00133 ROMA (ITALY) tel: +39 06 7259 7334 lab: +39 06 7259 7332 e_mail: turbati@info.uniroma2.it home page: http://art.uniroma2.it/turbati/ --------------------------------------------------