com.surelogic
Annotation Type TypeSets


@Documented
@Target(value=PACKAGE)
public @interface TypeSets

Container annotation for multiple TypeSet annotations. It is a modeling error for an entity to have both a TypeSets and a TypeSet annotation.

Examples:

Declaring two typesets on the same package (only in a package-info.java file).
 @TypeSets({
   @TypeSet("UTIL = java.util & !(java.util.{Enumeration, Hashtable, Vector})"),
   @TypeSet("XML = org.jdom+ | UTIL | java.{io, net}")
 })
 package example;
 
 import com.surelogic.*;
 

Javadoc usage notes:

This annotation is not supported in Javadoc because Javadoc supports multiple @annotate tags of the same type (see the example below). Javadoc annotation can be useful for Java 1.4 code which does not include language support for annotations.
 /**
  * @annotate TypeSet("UTIL = java.util & !(java.util.{Enumeration, Hashtable, Vector})")
  * @annotate TypeSet("XML = org.jdom+ | UTIL | java.{io, net}")
  */
 package example;
 

See Also:
TypeSet

Required Element Summary
 TypeSet[] value
          The TypeSet annotations to apply to the package.
 

Element Detail

value

public abstract TypeSet[] value
The TypeSet annotations to apply to the package.



Copyright © 2010 Surelogic, Inc.. All Rights Reserved.