author | mkos |
Sun, 30 Dec 2012 00:00:00 +0100 | |
changeset 22678 | ac1ea46be942 |
parent 12009 | 4abb694f273a |
permissions | -rw-r--r-- |
12009 | 1 |
/* |
22678
ac1ea46be942
8029237: Update copyright year to match last edit in jaxws repository for 2012
mkos
parents:
12009
diff
changeset
|
2 |
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
12009 | 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. Oracle designates this |
|
8 |
* particular file as subject to the "Classpath" exception as provided |
|
9 |
* by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
24 |
*/ |
|
25 |
||
26 |
package com.sun.xml.internal.xsom.parser; |
|
27 |
||
28 |
/** |
|
29 |
* Enumeration used to represent the type of the schema component |
|
30 |
* that is being parsed when the AnnotationParser is called. |
|
31 |
* |
|
32 |
* @author |
|
33 |
* Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com) |
|
34 |
*/ |
|
35 |
final public class AnnotationContext { |
|
36 |
||
37 |
/** Display name of the context. */ |
|
38 |
private final String name; |
|
39 |
||
40 |
private AnnotationContext( String _name ) { |
|
41 |
this.name = _name; |
|
42 |
} |
|
43 |
||
44 |
public String toString() { return name; } |
|
45 |
||
46 |
||
47 |
||
48 |
public static final AnnotationContext SCHEMA |
|
49 |
= new AnnotationContext("schema"); |
|
50 |
public static final AnnotationContext NOTATION |
|
51 |
= new AnnotationContext("notation"); |
|
52 |
public static final AnnotationContext ELEMENT_DECL |
|
53 |
= new AnnotationContext("element"); |
|
54 |
public static final AnnotationContext IDENTITY_CONSTRAINT |
|
55 |
= new AnnotationContext("identityConstraint"); |
|
56 |
public static final AnnotationContext XPATH |
|
57 |
= new AnnotationContext("xpath"); |
|
58 |
public static final AnnotationContext MODELGROUP_DECL |
|
59 |
= new AnnotationContext("modelGroupDecl"); |
|
60 |
public static final AnnotationContext SIMPLETYPE_DECL |
|
61 |
= new AnnotationContext("simpleTypeDecl"); |
|
62 |
public static final AnnotationContext COMPLEXTYPE_DECL |
|
63 |
= new AnnotationContext("complexTypeDecl"); |
|
64 |
public static final AnnotationContext PARTICLE |
|
65 |
= new AnnotationContext("particle"); |
|
66 |
public static final AnnotationContext MODELGROUP |
|
67 |
= new AnnotationContext("modelGroup"); |
|
68 |
public static final AnnotationContext ATTRIBUTE_USE |
|
69 |
= new AnnotationContext("attributeUse"); |
|
70 |
public static final AnnotationContext WILDCARD |
|
71 |
= new AnnotationContext("wildcard"); |
|
72 |
public static final AnnotationContext ATTRIBUTE_GROUP |
|
73 |
= new AnnotationContext("attributeGroup"); |
|
74 |
public static final AnnotationContext ATTRIBUTE_DECL |
|
75 |
= new AnnotationContext("attributeDecl"); |
|
76 |
} |