Return-Path: Delivered-To: apmail-incubator-uima-user-archive@minotaur.apache.org Received: (qmail 71181 invoked from network); 5 Dec 2009 02:57:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Dec 2009 02:57:10 -0000 Received: (qmail 69964 invoked by uid 500); 5 Dec 2009 02:57:09 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 69885 invoked by uid 500); 5 Dec 2009 02:57:08 -0000 Mailing-List: contact uima-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: uima-user@incubator.apache.org Delivered-To: mailing list uima-user@incubator.apache.org Delivered-To: moderator for uima-user@incubator.apache.org Received: (qmail 5645 invoked by uid 99); 5 Dec 2009 00:56:23 -0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brainiac86@gmail.com designates 209.85.210.174 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=ivuzFT4lXIQSDHWLZ8tmEDqknZE3m1vk9dqKF0scJkY=; b=qUQLuablc4SbsTfvDnd2XuSev84bhscTDqrZrF/pAf9lDJZ4MQM2U7glNnnZBhs/8Q wG9Zau55czvB0VWzD+rdGBoDV1PMb+ZKLPKYozpQeMQ0BOtKCp0vDi5QSy77Vmc9/lv1 wv1R80jx4EE+RGXFOH47DheKSnz6JO48C4OaU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=edMIZWzXmEDVR1NXdUUs2tQarMM3HkFUm2T/Qd0X6QU9gbtFlfR022bWgarM2WoUuY WvL7s0MaJ9hdop2F/3CUs2YZRSBGyqzcPeSq78T2x6vsCeo+sAx1pGdzJ2mBRJY/AM38 4zjxQ3LPFUiH17Puis6DNK5r9SKNUicoioK+4= MIME-Version: 1.0 Date: Fri, 4 Dec 2009 16:55:58 -0800 Message-ID: <3c77b7840912041655t53331af1mf1fc54c06c33ee0b@mail.gmail.com> Subject: Implementing a Map as a custom feature for annotation From: Anton Shuster To: uima-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Hello all, I tried my best to search for an answer to this topic but came up short. I'm creating an Annotation type and I want to give it a feature that is a Map (a HashMap or any other implementation). I looked through the documentation, but there is no information on creating your own type such as this. All the documentation seems to talk about is creating features which inherit the built-in types or which inherit other features defined this way. Please let me know what's the right way to go about this. One usage scenario would be for annotating HTML tags. For example, an HTML tag annotation could contain a label String and an attributes Map. There are other scenarios as well, but this one is the most obvious. Thanks for any help, --Anton