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

gr.iti.mklab.framework.common.domain.NamedEntity Maven / Gradle / Ivy

package gr.iti.mklab.framework.common.domain;

import org.mongodb.morphia.annotations.Embedded;
import org.mongodb.morphia.annotations.Entity;

/**
*
* @author Manos Schinas - [email protected]
* 
*/
@Entity(noClassnameStored = true)
@Embedded
public class NamedEntity extends JSONable {

    /**
	 * 
	 */
	private static final long serialVersionUID = -8567813006640515534L;
	
    private String name;
    private Integer count = 1;
    private Type type;

    public NamedEntity() {
    	
    }
    
    public NamedEntity(String name, Type type) {
        this.name = name;
        this.type = type;
    }

    public NamedEntity(String name, int count, Type type) {
        this.name = name;
        this.count = count;
        this.type = type;
    }
    
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public enum Type {
        PERSON, LOCATION, ORGANIZATION
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy