8
|
1 |
/*
|
|
2 |
* Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.
|
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
4 |
*
|
|
5 |
* This code is free software; you can redistribute it and/or modify it
|
|
6 |
* under the terms of the GNU General Public License version 2 only, as
|
|
7 |
* published by the Free Software Foundation. Sun designates this
|
|
8 |
* particular file as subject to the "Classpath" exception as provided
|
|
9 |
* by Sun in the LICENSE file that accompanied this code.
|
|
10 |
*
|
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT
|
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that
|
|
15 |
* accompanied this code).
|
|
16 |
*
|
|
17 |
* You should have received a copy of the GNU General Public License version
|
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation,
|
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
20 |
*
|
|
21 |
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
|
|
22 |
* CA 95054 USA or visit www.sun.com if you need additional information or
|
|
23 |
* have any questions.
|
|
24 |
*/
|
|
25 |
|
|
26 |
//Copyright Sun Microsystems Inc. 2004 - 2005.
|
|
27 |
|
|
28 |
package javax.annotation;
|
|
29 |
import java.lang.annotation.*;
|
|
30 |
import static java.lang.annotation.ElementType.*;
|
|
31 |
import static java.lang.annotation.RetentionPolicy.*;
|
|
32 |
|
|
33 |
/**
|
|
34 |
* The Generated annoation is used to mark source code that has been generated.
|
|
35 |
* It can also be used to differentiate user written code from generated code
|
|
36 |
* in a single file. When used, the value element must have the name of the
|
|
37 |
* code generator. The recommended convention is to use the fully qualified
|
|
38 |
* name of the code generator in the value field .
|
|
39 |
* For example: com.company.package.classname.
|
|
40 |
* The date element is used to indicate the date the source was generated.
|
|
41 |
* The date element must follow the ISO 8601 standard. For example the date
|
|
42 |
* element would have the following value 2001-07-04T12:08:56.235-0700
|
|
43 |
* which represents 2001-07-04 12:08:56 local time in the U.S. Pacific
|
|
44 |
* Time time zone.
|
|
45 |
* The comment element is a place holder for any comments that the code
|
|
46 |
* generator may want to include in the generated code.
|
|
47 |
*
|
|
48 |
* @since Common Annotations 1.0
|
|
49 |
*/
|
|
50 |
|
|
51 |
@Documented
|
|
52 |
@Retention(SOURCE)
|
|
53 |
@Target({PACKAGE, TYPE, ANNOTATION_TYPE, METHOD, CONSTRUCTOR, FIELD,
|
|
54 |
LOCAL_VARIABLE, PARAMETER})
|
|
55 |
public @interface Generated {
|
|
56 |
/**
|
|
57 |
* This is used by the code generator to mark the generated classes
|
|
58 |
* and methods.
|
|
59 |
*/
|
|
60 |
String[] value();
|
|
61 |
|
|
62 |
/**
|
|
63 |
* Date when the source was generated.
|
|
64 |
*/
|
|
65 |
String date() default "";
|
|
66 |
|
|
67 |
/**
|
|
68 |
* A place holder for any comments that the code generator may want to
|
|
69 |
* include in the generated code.
|
|
70 |
*/
|
|
71 |
String comments() default "";
|
|
72 |
}
|