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

changeset 0
373ffda63c9a
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/share/jaxws_classes/com/sun/tools/internal/xjc/reader/xmlschema/Messages.java	Wed Apr 27 01:27:09 2016 +0800
     1.3 @@ -0,0 +1,157 @@
     1.4 +/*
     1.5 + * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
     1.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.7 + *
     1.8 + * This code is free software; you can redistribute it and/or modify it
     1.9 + * under the terms of the GNU General Public License version 2 only, as
    1.10 + * published by the Free Software Foundation.  Oracle designates this
    1.11 + * particular file as subject to the "Classpath" exception as provided
    1.12 + * by Oracle in the LICENSE file that accompanied this code.
    1.13 + *
    1.14 + * This code is distributed in the hope that it will be useful, but WITHOUT
    1.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.16 + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    1.17 + * version 2 for more details (a copy is included in the LICENSE file that
    1.18 + * accompanied this code).
    1.19 + *
    1.20 + * You should have received a copy of the GNU General Public License version
    1.21 + * 2 along with this work; if not, write to the Free Software Foundation,
    1.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1.23 + *
    1.24 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    1.25 + * or visit www.oracle.com if you need additional information or have any
    1.26 + * questions.
    1.27 + */
    1.28 +
    1.29 +package com.sun.tools.internal.xjc.reader.xmlschema;
    1.30 +
    1.31 +import java.text.MessageFormat;
    1.32 +import java.util.ResourceBundle;
    1.33 +
    1.34 +/**
    1.35 + * Formats error messages.
    1.36 + */
    1.37 +public class Messages
    1.38 +{
    1.39 +    /** Loads a string resource and formats it with specified arguments. */
    1.40 +    public static String format( String property, Object... args ) {
    1.41 +        String text = ResourceBundle.getBundle(Messages.class.getPackage().getName() +".MessageBundle").getString(property);
    1.42 +        return MessageFormat.format(text,args);
    1.43 +    }
    1.44 +
    1.45 +
    1.46 +    static final String WARN_NO_GLOBAL_ELEMENT =
    1.47 +        "BGMBuilder.NoGlobalElement";
    1.48 +
    1.49 +    public static final String WARN_UNUSED_EXPECTED_CONTENT_TYPES =
    1.50 +        "UnusedCustomizationChecker.WarnUnusedExpectedContentTypes";
    1.51 +
    1.52 +    static final String ERR_MULTIPLE_SCHEMA_BINDINGS =
    1.53 +        "BGMBuilder.MultipleSchemaBindings"; // arg:1
    1.54 +
    1.55 +    static final String ERR_MULTIPLE_SCHEMA_BINDINGS_LOCATION =
    1.56 +        "BGMBuilder.MultipleSchemaBindings.Location"; // arg:0
    1.57 +
    1.58 +    static final String JAVADOC_HEADING = // 1 arg
    1.59 +        "ClassSelector.JavadocHeading";
    1.60 +
    1.61 +    static final String ERR_RESERVED_CLASS_NAME = // 1 arg
    1.62 +        "ClassSelector.ReservedClassName";
    1.63 +
    1.64 +    static final String ERR_CLASS_NAME_IS_REQUIRED =
    1.65 +        "ClassSelector.ClassNameIsRequired";    // arg:0
    1.66 +
    1.67 +    static final String ERR_INCORRECT_CLASS_NAME =
    1.68 +        "ClassSelector.IncorrectClassName";     // arg:1
    1.69 +
    1.70 +    static final String ERR_INCORRECT_PACKAGE_NAME =
    1.71 +        "ClassSelector.IncorrectPackageName";   // arg:2
    1.72 +
    1.73 +    static final String ERR_CANNOT_BE_TYPE_SAFE_ENUM =
    1.74 +        "ConversionFinder.CannotBeTypeSafeEnum";            // arg:0
    1.75 +
    1.76 +    static final String ERR_CANNOT_BE_TYPE_SAFE_ENUM_LOCATION =
    1.77 +        "ConversionFinder.CannotBeTypeSafeEnum.Location";    // arg:0
    1.78 +
    1.79 +    static final String ERR_NO_ENUM_NAME_AVAILABLE =
    1.80 +        "ConversionFinder.NoEnumNameAvailable"; // arg:0
    1.81 +
    1.82 +    static final String ERR_NO_ENUM_FACET =
    1.83 +        "ConversionFinder.NoEnumFacet"; // arg:0
    1.84 +
    1.85 +    static final String ERR_ILLEGAL_EXPECTED_MIME_TYPE =
    1.86 +        "ERR_ILLEGAL_EXPECTED_MIME_TYPE"; // args:2
    1.87 +
    1.88 +    static final String ERR_DATATYPE_ERROR =
    1.89 +        "DatatypeBuilder.DatatypeError"; // arg:1
    1.90 +
    1.91 +    static final String ERR_UNABLE_TO_GENERATE_NAME_FROM_MODELGROUP =
    1.92 +        "DefaultParticleBinder.UnableToGenerateNameFromModelGroup"; // arg:0
    1.93 +
    1.94 +    static final String ERR_INCORRECT_FIXED_VALUE =
    1.95 +        "FieldBuilder.IncorrectFixedValue"; // arg:1
    1.96 +
    1.97 +    static final String ERR_INCORRECT_DEFAULT_VALUE =
    1.98 +        "FieldBuilder.IncorrectDefaultValue"; // arg:1
    1.99 +
   1.100 +    static final String ERR_CONFLICT_BETWEEN_USERTYPE_AND_ACTUALTYPE_ATTUSE =
   1.101 +        "FieldBuilder.ConflictBetweenUserTypeAndActualType.AttUse"; // arg:2
   1.102 +
   1.103 +    static final String ERR_CONFLICT_BETWEEN_USERTYPE_AND_ACTUALTYPE_ATTUSE_SOURCE =
   1.104 +        "FieldBuilder.ConflictBetweenUserTypeAndActualType.AttUse.Source"; // arg:0
   1.105 +
   1.106 +    static final String ERR_UNNESTED_JAVATYPE_CUSTOMIZATION_ON_SIMPLETYPE =
   1.107 +        "SimpleTypeBuilder.UnnestedJavaTypeCustomization"; // arg:0
   1.108 +
   1.109 +    static final String JAVADOC_NIL_PROPERTY =
   1.110 +        "FieldBuilder.Javadoc.NilProperty"; // arg:1
   1.111 +
   1.112 +    static final String JAVADOC_LINE_UNKNOWN = // 0 args
   1.113 +        "ClassSelector.JavadocLineUnknown";
   1.114 +
   1.115 +    static final String JAVADOC_VALUEOBJECT_PROPERTY =
   1.116 +        "FieldBuilder.Javadoc.ValueObject"; // args:2
   1.117 +
   1.118 +    static final String MSG_COLLISION_INFO =
   1.119 +        "CollisionInfo.CollisionInfo"; // args:3
   1.120 +
   1.121 +    static final String MSG_UNKNOWN_FILE =
   1.122 +        "CollisionInfo.UnknownFile"; // arg:1
   1.123 +
   1.124 +    static final String MSG_LINE_X_OF_Y =
   1.125 +        "CollisionInfo.LineXOfY"; // args:2
   1.126 +
   1.127 +    static final String MSG_FALLBACK_JAVADOC =
   1.128 +        "DefaultParticleBinder.FallbackJavadoc"; // arg:1
   1.129 +
   1.130 +    static final String ERR_ENUM_MEMBER_NAME_COLLISION =
   1.131 +        "ERR_ENUM_MEMBER_NAME_COLLISION";
   1.132 +    static final String ERR_ENUM_MEMBER_NAME_COLLISION_RELATED =
   1.133 +        "ERR_ENUM_MEMBER_NAME_COLLISION_RELATED";
   1.134 +    static final String ERR_CANNOT_GENERATE_ENUM_NAME =
   1.135 +        "ERR_CANNOT_GENERATE_ENUM_NAME";
   1.136 +    static final String WARN_ENUM_MEMBER_SIZE_CAP =
   1.137 +        "WARN_ENUM_MEMBER_SIZE_CAP"; // args: 3
   1.138 +
   1.139 +
   1.140 +    // they are shared from the model
   1.141 +    public static final String ERR_UNACKNOWLEDGED_CUSTOMIZATION =
   1.142 +        "UnusedCustomizationChecker.UnacknolwedgedCustomization"; // arg:1
   1.143 +    public static final String ERR_UNACKNOWLEDGED_CUSTOMIZATION_LOCATION =
   1.144 +        "UnusedCustomizationChecker.UnacknolwedgedCustomization.Relevant"; // arg:0
   1.145 +
   1.146 +    public static final String ERR_MULTIPLE_GLOBAL_BINDINGS =
   1.147 +        "ERR_MULTIPLE_GLOBAL_BINDINGS";
   1.148 +    public static final String ERR_MULTIPLE_GLOBAL_BINDINGS_OTHER =
   1.149 +        "ERR_MULTIPLE_GLOBAL_BINDINGS_OTHER";
   1.150 +
   1.151 +    public static final String ERR_REFERENCE_TO_NONEXPORTED_CLASS =
   1.152 +        "ERR_REFERENCE_TO_NONEXPORTED_CLASS";
   1.153 +    public static final String ERR_REFERENCE_TO_NONEXPORTED_CLASS_MAP_FALSE =
   1.154 +        "ERR_REFERENCE_TO_NONEXPORTED_CLASS_MAP_FALSE";
   1.155 +    public static final String ERR_REFERENCE_TO_NONEXPORTED_CLASS_REFERER =
   1.156 +        "ERR_REFERENCE_TO_NONEXPORTED_CLASS_REFERER";
   1.157 +
   1.158 +    static final String WARN_DEFAULT_VALUE_PRIMITIVE_TYPE =
   1.159 +        "WARN_DEFAULT_VALUE_PRIMITIVE_TYPE";
   1.160 +}

mercurial