KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > lib > jmi > xmi > XmiConstants


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 package org.netbeans.lib.jmi.xmi;
20
21 /**
22  *
23  * @author mareks
24  * @version
25  */

26 public interface XmiConstants {
27
28     //General constants
29
public static final String JavaDoc NS_SEPARATOR = ":";
30     public static final String JavaDoc DOT_SEPARATOR = ".";
31     public static final String JavaDoc XMI_PREFIX = "XMI.";
32
33     //Basic elements
34
public static final String JavaDoc XMI_ROOT = "XMI";
35     public static final String JavaDoc XMI_HEADER = "XMI.header";
36     public static final String JavaDoc XMI_CONTENT = "XMI.content";
37     public static final String JavaDoc XMI_DIFFERENCE = "XMI.difference";
38     public static final String JavaDoc XMI_DELETE = "XMI.delete";
39     public static final String JavaDoc XMI_ADD = "XMI.add";
40     public static final String JavaDoc XMI_REPLACE = "XMI.replace";
41     public static final String JavaDoc XMI_EXTENSION = "XMI.extension";
42     public static final String JavaDoc XMI_EXTENSIONS = "XMI.extensions";
43     
44     //Sub elements for XMI_HEADER
45
public static final String JavaDoc XMI_DOCUMENTATION = "XMI.documentation";
46     public static final String JavaDoc XMI_MODEL = "XMI.model";
47     public static final String JavaDoc XMI_METAMODEL = "XMI.metamodel";
48     public static final String JavaDoc XMI_METAMETAMODEL = "XMI.metametamodel";
49     public static final String JavaDoc XMI_IMPORT = "XMI.import";
50     
51     //Attributes
52
public static final String JavaDoc XMI_ID = "xmi.id";
53     public static final String JavaDoc XMI_UUID = "xmi.uuid";
54     public static final String JavaDoc XMI_LABEL = "xmi.label";
55     public static final String JavaDoc XMI_IDREF = "xmi.idref";
56     public static final String JavaDoc XMI_HREF = "href";
57     public static final String JavaDoc XMI_POSITION = "xmi.position";
58     public static final String JavaDoc XMI_VersionAtt = "xmi.version";
59     public static final String JavaDoc XMI_NameAtt = "xmi.name";
60     public static final String JavaDoc XMI_VALUE = "xmi.value";
61     public static final String JavaDoc XMI_TYPE = "xmi.type";
62     
63     //DataTypes
64
public static final String JavaDoc XMI_CORBA_TYPE_CODE = "XMI.CorbaTypeCode";
65     public static final String JavaDoc XMI_ANY_TYPE = "XMI.any";
66     public static final String JavaDoc XMI_FIELD = "XMI.field";
67
68     // MOF 1.4 primitive types
69
public static final String JavaDoc BOOLEAN_TYPE = "Boolean";
70     public static final String JavaDoc DOUBLE_TYPE = "Double";
71     public static final String JavaDoc FLOAT_TYPE ="Float";
72     public static final String JavaDoc INTEGER_TYPE ="Integer";
73     public static final String JavaDoc LONG_TYPE ="Long";
74     public static final String JavaDoc STRING_TYPE = "String";
75
76     //Corba types
77
public static final String JavaDoc XMICorbaTcField = "XMI.CorbaTcField";
78     public static final String JavaDoc XMI_TCNAME = "xmi.tcName";
79     public static final String JavaDoc XMI_CorbaTcEnumLabel = "XMI.CorbaTcEnumLabel";
80
81     public static final String JavaDoc XMICorbaTcStruct = "XMI.CorbaTcStruct";
82     public static final String JavaDoc XMICorbaTcEnum = "XMI.CorbaTcEnum";
83     public static final String JavaDoc XMICorbaTcUnion = "XMI.CorbaTcUnion";
84     public static final String JavaDoc XMICorbaTcObjRef = "XMI.CorbaTcObjRef";
85     public static final String JavaDoc XMICorbaTcArray = "XMI.CorbaTcArray";
86     public static final String JavaDoc XMICorbaTcAlias = "XMI.CorbaTcAlias";
87     public static final String JavaDoc XMICorbaTcSequence = "XMI.CorbaTcSequence";
88     public static final String JavaDoc XMICorbaTcAny = "XMI.CorbaTcAny";
89     
90     public static final String JavaDoc XMICorbaTcExcept = "XMI.CorbaTcExcept";
91     public static final String JavaDoc XMICorbaTcTypeCode = "XMI.CorbaTcTypeCode";
92     public static final String JavaDoc XMICorbaTcPrincipal = "XMI.CorbaTcPrincipal";
93     public static final String JavaDoc XMICorbaTcNull = "XMI.CorbaTcNull";
94     public static final String JavaDoc XMICorbaTcVoid = "XMI.CorbaTcVoid";
95     
96     public static final String JavaDoc XMICorbaTcShort = "XMI.CorbaTcShort";
97     public static final String JavaDoc XMICorbaTcLong = "XMI.CorbaTcLong";
98     public static final String JavaDoc XMICorbaTcUShort = "XMI.CorbaTcUShort";
99     public static final String JavaDoc XMICorbaTcULong = "XMI.CorbaTcULong";
100     public static final String JavaDoc XMICorbaTcFloat = "XMI.CorbaTcFloat";
101     public static final String JavaDoc XMICorbaTcDouble = "XMI.CorbaTcDouble";
102     public static final String JavaDoc XMICorbaTcBoolean = "XMI.CorbaTcBoolean";
103     public static final String JavaDoc XMICorbaTcChar = "XMI.CorbaTcChar";
104     public static final String JavaDoc XMICorbaTcWChar = "XMI.CorbaTcWChar";
105     public static final String JavaDoc XMICorbaTcOctet = "XMI.CorbaTcOctet";
106     public static final String JavaDoc XMICorbaTcString = "XMI.CorbaTcString";
107     public static final String JavaDoc XMICorbaTcWString = "XMI.CorbaTcWString";
108     public static final String JavaDoc XMICorbaTcLongLong = "XMI.CorbaTcLongLong";
109     public static final String JavaDoc XMICorbaTcULongLong = "XMI.CorbaTcULongLong";
110     public static final String JavaDoc XMICorbaTcLongDouble = "XMI.CorbaTcLongDouble";
111
112     //Packages
113
public static final String JavaDoc PRIMITIVE_TYPES_PACKAGE = "PrimitiveTypes";
114     
115     // Tag ids
116
public static final String JavaDoc TAGID_XMI_NAMESPACE = "org.omg.xmi.namespace";
117     public static final String JavaDoc TAGID_XMI_ENUMERATION_UNPREFIX = "org.omg.xmi.enumerationUnprefix";
118     
119     // XMI 2.0 tags
120
public static final String JavaDoc TAG_SERIALIZE = "org.omg.xmi.serialize";
121     public static final String JavaDoc TAG_ELEMENT = "org.omg.xmi.element";
122     public static final String JavaDoc TAG_REMOTE_ONLY = "org.omg.xmi.remoteOnly";
123     public static final String JavaDoc TAG_XMI_NAME = "org.omg.xmi.xmiName";
124     public static final String JavaDoc TAG_HREF = "org.omg.xmi.href";
125     public static final String JavaDoc TAG_NS_PREFIX = "org.omg.xmi.nsPrefix";
126     public static final String JavaDoc TAG_NS_URI = "org.omg.xmi.nsURI";
127     
128     // XMI 2.0 Schema
129
public static String JavaDoc TAG_ENFORCE_MAX_MULTIPLICITY = "org.omg.xmi.enforceMaximumMultiplicity";
130     public static String JavaDoc TAG_ENFORCE_MIN_MULTIPLICITY = "org.omg.xmi.enforceMinimumMultiplicity";
131     public static String JavaDoc TAG_USE_SCHEMA_EXTENSIONS = "org.omg.xmi.useSchemaExtensions";
132     public static String JavaDoc TAG_CONTENT_TYPE = "org.omg.xmi.contentType";
133     public static String JavaDoc TAG_PROCESS_CONTENTS = "org.omg.xmi.processContents";
134     public static String JavaDoc TAG_INCLUDE_NILS = "org.omg.xmi.includeNils";
135     public static String JavaDoc TAG_SCHEMA_TYPE = "org.omg.xmi.schemaType";
136     public static String JavaDoc TAG_ID_NAME = "org.omg.xmi.idName";
137     public static String JavaDoc TAG_DEFAULT_VALUE = "org.omg.xmi.defaultValue";
138     public static String JavaDoc TAG_FIXED_VALUE = "org.omg.xmi.fixedValue";
139     public static String JavaDoc TAG_FORM = "org.omg.xmi.form";
140     
141     // XMI 2.0 namespace uri
142
public static final String JavaDoc XMI_NAMESPACE_URI = "http://www.omg.org/XMI";
143     // XML Schema namespace uri
144
public static final String JavaDoc XML_SCHEMA_NAMESPACE_URI = "http://www.w3.org/XMLSchema-instance";
145     
146     public static final String JavaDoc XMI20_ID = "id";
147     public static final String JavaDoc XMI20_IDREF = "idref";
148     public static final String JavaDoc XMI20_VERSION = "version";
149     public static final String JavaDoc XMI20_NIL = "nil";
150 }
151
Popular Tags