All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gate.jape.constraint.SimpleAnnotationAccessor Maven / Gradle / Ivy

Go to download

ANNIE is a general purpose information extraction system that provides the building blocks of many other GATE applications.

The newest version!
/*
 *  Copyright (c) 1995-2012, The University of Sheffield. See the file
 *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
 *
 *  This file is part of GATE (see http://gate.ac.uk/), and is free
 *  software, licenced under the GNU Library General Public License,
 *  Version 2, June 1991 (in the distribution as file licence.html,
 *  and also available at http://gate.ac.uk/gate/licence.html).
 *
 *  Eric Sword, 09/03/08
 *
 *  $Id$
 */
package gate.jape.constraint;

import gate.Annotation;
import gate.AnnotationSet;

/**
 * Accessor that returns the annotation itself
 *
 * @author esword
 */
public class SimpleAnnotationAccessor extends MetaPropertyAccessor {

  private static final long serialVersionUID = 5875035087239642161L;

  @Override
  public Object getValue(Annotation annot, AnnotationSet context) {
    return annot;
  }

  @Override
  public Object getKey() {
    return null;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy