DomainEntity.java from Texai at Krugle
Show DomainEntity.java syntax highlighted
/*
* DomainEntity.java
*
* Created on October 30, 2006, 6:23 PM
*
* Description: Indicates that the annotated class is a domain entity, whose
* associations are mapped into the Texai knowledge base. If the term does
* not currently exist in the knowledge base, it will be created.
*
* Copyright (C) 2006 Stephen L. Reed.
*
* This program is free software; you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program;
* if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
package org.texai.kb.persistence;
import java.lang.annotation.Documented;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
*
* @author reed
*/
@Target(TYPE)
@Documented
@Retention(RUNTIME)
public @interface DomainEntity {
/** (Optional) Defines the name of this domain entity class and defaults to the qualified class name. */
String className() default "";
/** (Optional) Defines the types of this domain entity. Each value must name an existing class in the knowledge base. */
String[] typeOf() default {};
/** (Optional) Defines the super classes of this domain entity. Each value must name an existing class in the knowledge base. */
String[] subClassOf() default {};
}
See more files for this project here