src/share/jaxws_classes/com/sun/tools/internal/xjc/reader/xmlschema/Messages.java

Tue, 09 Apr 2013 14:51:13 +0100

author
alanb
date
Tue, 09 Apr 2013 14:51:13 +0100
changeset 368
0989ad8c0860
parent 0
373ffda63c9a
permissions
-rw-r--r--

8010393: Update JAX-WS RI to 2.2.9-b12941
Reviewed-by: alanb, erikj
Contributed-by: miroslav.kos@oracle.com, martin.grebac@oracle.com

     1 /*
     2  * Copyright (c) 1997, 2010, Oracle and/or its affiliates. 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.  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  */
    26 package com.sun.tools.internal.xjc.reader.xmlschema;
    28 import java.text.MessageFormat;
    29 import java.util.ResourceBundle;
    31 /**
    32  * Formats error messages.
    33  */
    34 public class Messages
    35 {
    36     /** Loads a string resource and formats it with specified arguments. */
    37     public static String format( String property, Object... args ) {
    38         String text = ResourceBundle.getBundle(Messages.class.getPackage().getName() +".MessageBundle").getString(property);
    39         return MessageFormat.format(text,args);
    40     }
    43     static final String WARN_NO_GLOBAL_ELEMENT =
    44         "BGMBuilder.NoGlobalElement";
    46     public static final String WARN_UNUSED_EXPECTED_CONTENT_TYPES =
    47         "UnusedCustomizationChecker.WarnUnusedExpectedContentTypes";
    49     static final String ERR_MULTIPLE_SCHEMA_BINDINGS =
    50         "BGMBuilder.MultipleSchemaBindings"; // arg:1
    52     static final String ERR_MULTIPLE_SCHEMA_BINDINGS_LOCATION =
    53         "BGMBuilder.MultipleSchemaBindings.Location"; // arg:0
    55     static final String JAVADOC_HEADING = // 1 arg
    56         "ClassSelector.JavadocHeading";
    58     static final String ERR_RESERVED_CLASS_NAME = // 1 arg
    59         "ClassSelector.ReservedClassName";
    61     static final String ERR_CLASS_NAME_IS_REQUIRED =
    62         "ClassSelector.ClassNameIsRequired";    // arg:0
    64     static final String ERR_INCORRECT_CLASS_NAME =
    65         "ClassSelector.IncorrectClassName";     // arg:1
    67     static final String ERR_INCORRECT_PACKAGE_NAME =
    68         "ClassSelector.IncorrectPackageName";   // arg:2
    70     static final String ERR_CANNOT_BE_TYPE_SAFE_ENUM =
    71         "ConversionFinder.CannotBeTypeSafeEnum";            // arg:0
    73     static final String ERR_CANNOT_BE_TYPE_SAFE_ENUM_LOCATION =
    74         "ConversionFinder.CannotBeTypeSafeEnum.Location";    // arg:0
    76     static final String ERR_NO_ENUM_NAME_AVAILABLE =
    77         "ConversionFinder.NoEnumNameAvailable"; // arg:0
    79     static final String ERR_NO_ENUM_FACET =
    80         "ConversionFinder.NoEnumFacet"; // arg:0
    82     static final String ERR_ILLEGAL_EXPECTED_MIME_TYPE =
    83         "ERR_ILLEGAL_EXPECTED_MIME_TYPE"; // args:2
    85     static final String ERR_DATATYPE_ERROR =
    86         "DatatypeBuilder.DatatypeError"; // arg:1
    88     static final String ERR_UNABLE_TO_GENERATE_NAME_FROM_MODELGROUP =
    89         "DefaultParticleBinder.UnableToGenerateNameFromModelGroup"; // arg:0
    91     static final String ERR_INCORRECT_FIXED_VALUE =
    92         "FieldBuilder.IncorrectFixedValue"; // arg:1
    94     static final String ERR_INCORRECT_DEFAULT_VALUE =
    95         "FieldBuilder.IncorrectDefaultValue"; // arg:1
    97     static final String ERR_CONFLICT_BETWEEN_USERTYPE_AND_ACTUALTYPE_ATTUSE =
    98         "FieldBuilder.ConflictBetweenUserTypeAndActualType.AttUse"; // arg:2
   100     static final String ERR_CONFLICT_BETWEEN_USERTYPE_AND_ACTUALTYPE_ATTUSE_SOURCE =
   101         "FieldBuilder.ConflictBetweenUserTypeAndActualType.AttUse.Source"; // arg:0
   103     static final String ERR_UNNESTED_JAVATYPE_CUSTOMIZATION_ON_SIMPLETYPE =
   104         "SimpleTypeBuilder.UnnestedJavaTypeCustomization"; // arg:0
   106     static final String JAVADOC_NIL_PROPERTY =
   107         "FieldBuilder.Javadoc.NilProperty"; // arg:1
   109     static final String JAVADOC_LINE_UNKNOWN = // 0 args
   110         "ClassSelector.JavadocLineUnknown";
   112     static final String JAVADOC_VALUEOBJECT_PROPERTY =
   113         "FieldBuilder.Javadoc.ValueObject"; // args:2
   115     static final String MSG_COLLISION_INFO =
   116         "CollisionInfo.CollisionInfo"; // args:3
   118     static final String MSG_UNKNOWN_FILE =
   119         "CollisionInfo.UnknownFile"; // arg:1
   121     static final String MSG_LINE_X_OF_Y =
   122         "CollisionInfo.LineXOfY"; // args:2
   124     static final String MSG_FALLBACK_JAVADOC =
   125         "DefaultParticleBinder.FallbackJavadoc"; // arg:1
   127     static final String ERR_ENUM_MEMBER_NAME_COLLISION =
   128         "ERR_ENUM_MEMBER_NAME_COLLISION";
   129     static final String ERR_ENUM_MEMBER_NAME_COLLISION_RELATED =
   130         "ERR_ENUM_MEMBER_NAME_COLLISION_RELATED";
   131     static final String ERR_CANNOT_GENERATE_ENUM_NAME =
   132         "ERR_CANNOT_GENERATE_ENUM_NAME";
   133     static final String WARN_ENUM_MEMBER_SIZE_CAP =
   134         "WARN_ENUM_MEMBER_SIZE_CAP"; // args: 3
   137     // they are shared from the model
   138     public static final String ERR_UNACKNOWLEDGED_CUSTOMIZATION =
   139         "UnusedCustomizationChecker.UnacknolwedgedCustomization"; // arg:1
   140     public static final String ERR_UNACKNOWLEDGED_CUSTOMIZATION_LOCATION =
   141         "UnusedCustomizationChecker.UnacknolwedgedCustomization.Relevant"; // arg:0
   143     public static final String ERR_MULTIPLE_GLOBAL_BINDINGS =
   144         "ERR_MULTIPLE_GLOBAL_BINDINGS";
   145     public static final String ERR_MULTIPLE_GLOBAL_BINDINGS_OTHER =
   146         "ERR_MULTIPLE_GLOBAL_BINDINGS_OTHER";
   148     public static final String ERR_REFERENCE_TO_NONEXPORTED_CLASS =
   149         "ERR_REFERENCE_TO_NONEXPORTED_CLASS";
   150     public static final String ERR_REFERENCE_TO_NONEXPORTED_CLASS_MAP_FALSE =
   151         "ERR_REFERENCE_TO_NONEXPORTED_CLASS_MAP_FALSE";
   152     public static final String ERR_REFERENCE_TO_NONEXPORTED_CLASS_REFERER =
   153         "ERR_REFERENCE_TO_NONEXPORTED_CLASS_REFERER";
   155     static final String WARN_DEFAULT_VALUE_PRIMITIVE_TYPE =
   156         "WARN_DEFAULT_VALUE_PRIMITIVE_TYPE";
   157 }

mercurial