/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.stanbol.enhancer.engines.celi.ner.impl; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for NamedEntity complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="NamedEntity"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="id" type="{http://www.w3.org/2001/XMLSchema}long"/> * <element name="type" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/> * <element name="source" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="formKind" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="morphosyntacticFeatures" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="from" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/> * <element name="to" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "NamedEntity", namespace = "http://linguagrid.org/ns/namedentityrecognition/v0u0", propOrder = { "id", "type", "source", "formKind", "morphosyntacticFeatures", "from", "to" }) public class NamedEntity { protected long id; @XmlSchemaType(name = "anyURI") protected String type; protected String source; protected String formKind; protected String morphosyntacticFeatures; protected Long from; protected Long to; /** * Gets the value of the id property. * */ public long getId() { return id; } /** * Sets the value of the id property. * */ public void setId(long value) { this.id = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link String } * */ public String getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link String } * */ public void setType(String value) { this.type = value; } /** * Gets the value of the source property. * * @return * possible object is * {@link String } * */ public String getSource() { return source; } /** * Sets the value of the source property. * * @param value * allowed object is * {@link String } * */ public void setSource(String value) { this.source = value; } /** * Gets the value of the formKind property. * * @return * possible object is * {@link String } * */ public String getFormKind() { return formKind; } /** * Sets the value of the formKind property. * * @param value * allowed object is * {@link String } * */ public void setFormKind(String value) { this.formKind = value; } /** * Gets the value of the morphosyntacticFeatures property. * * @return * possible object is * {@link String } * */ public String getMorphosyntacticFeatures() { return morphosyntacticFeatures; } /** * Sets the value of the morphosyntacticFeatures property. * * @param value * allowed object is * {@link String } * */ public void setMorphosyntacticFeatures(String value) { this.morphosyntacticFeatures = value; } /** * Gets the value of the from property. * * @return * possible object is * {@link Long } * */ public Long getFrom() { return from; } /** * Sets the value of the from property. * * @param value * allowed object is * {@link Long } * */ public void setFrom(Long value) { this.from = value; } /** * Gets the value of the to property. * * @return * possible object is * {@link Long } * */ public Long getTo() { return to; } /** * Sets the value of the to property. * * @param value * allowed object is * {@link Long } * */ public void setTo(Long value) { this.to = value; } }