com.surelogic
Annotation Type Layers


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

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

Examples:

Declaring two typesets on the same package (only in a package-info.java file).
 @Layers({
   @Layer("MODEL may refer to UTIL"),
   @Layer("CONTROLLER may refer to MODEL | java.io.File")
 })
 package org.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 Layer("MODEL may refer to UTIL")
  * @annotate Layer("CONTROLLER may refer to MODEL | java.io.File")
  */
 package org.example;
 

See Also:
Layer

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

Element Detail

value

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



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