325N/A/*
325N/A * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
325N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
325N/A *
325N/A * This code is free software; you can redistribute it and/or modify it
325N/A * under the terms of the GNU General Public License version 2 only, as
325N/A * published by the Free Software Foundation. Oracle designates this
325N/A * particular file as subject to the "Classpath" exception as provided
325N/A * by Oracle in the LICENSE file that accompanied this code.
325N/A *
325N/A * This code is distributed in the hope that it will be useful, but WITHOUT
325N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
325N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
325N/A * version 2 for more details (a copy is included in the LICENSE file that
325N/A * accompanied this code).
325N/A *
325N/A * You should have received a copy of the GNU General Public License version
325N/A * 2 along with this work; if not, write to the Free Software Foundation,
325N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
325N/A *
325N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
325N/A * or visit www.oracle.com if you need additional information or have any
325N/A * questions.
325N/A */
325N/A
325N/Apackage com.sun.tools.internal.xjc.reader.xmlschema;
325N/A
325N/Aimport java.text.MessageFormat;
325N/Aimport java.util.ResourceBundle;
325N/A
325N/A/**
325N/A * Formats error messages.
325N/A */
325N/Apublic class Messages
325N/A{
325N/A /** Loads a string resource and formats it with specified arguments. */
325N/A public static String format( String property, Object... args ) {
325N/A String text = ResourceBundle.getBundle(Messages.class.getPackage().getName() +".MessageBundle").getString(property);
325N/A return MessageFormat.format(text,args);
325N/A }
325N/A
325N/A
325N/A static final String WARN_NO_GLOBAL_ELEMENT =
325N/A "BGMBuilder.NoGlobalElement";
325N/A
325N/A public static final String WARN_UNUSED_EXPECTED_CONTENT_TYPES =
325N/A "UnusedCustomizationChecker.WarnUnusedExpectedContentTypes";
325N/A
325N/A static final String ERR_MULTIPLE_SCHEMA_BINDINGS =
325N/A "BGMBuilder.MultipleSchemaBindings"; // arg:1
325N/A
325N/A static final String ERR_MULTIPLE_SCHEMA_BINDINGS_LOCATION =
325N/A "BGMBuilder.MultipleSchemaBindings.Location"; // arg:0
325N/A
325N/A static final String JAVADOC_HEADING = // 1 arg
325N/A "ClassSelector.JavadocHeading";
325N/A
325N/A static final String ERR_RESERVED_CLASS_NAME = // 1 arg
325N/A "ClassSelector.ReservedClassName";
325N/A
325N/A static final String ERR_CLASS_NAME_IS_REQUIRED =
325N/A "ClassSelector.ClassNameIsRequired"; // arg:0
325N/A
325N/A static final String ERR_INCORRECT_CLASS_NAME =
325N/A "ClassSelector.IncorrectClassName"; // arg:1
325N/A
325N/A static final String ERR_INCORRECT_PACKAGE_NAME =
325N/A "ClassSelector.IncorrectPackageName"; // arg:2
325N/A
325N/A static final String ERR_CANNOT_BE_TYPE_SAFE_ENUM =
325N/A "ConversionFinder.CannotBeTypeSafeEnum"; // arg:0
325N/A
325N/A static final String ERR_CANNOT_BE_TYPE_SAFE_ENUM_LOCATION =
325N/A "ConversionFinder.CannotBeTypeSafeEnum.Location"; // arg:0
325N/A
325N/A static final String ERR_NO_ENUM_NAME_AVAILABLE =
325N/A "ConversionFinder.NoEnumNameAvailable"; // arg:0
325N/A
325N/A static final String ERR_NO_ENUM_FACET =
325N/A "ConversionFinder.NoEnumFacet"; // arg:0
325N/A
325N/A static final String ERR_ILLEGAL_EXPECTED_MIME_TYPE =
325N/A "ERR_ILLEGAL_EXPECTED_MIME_TYPE"; // args:2
325N/A
325N/A static final String ERR_DATATYPE_ERROR =
325N/A "DatatypeBuilder.DatatypeError"; // arg:1
325N/A
325N/A static final String ERR_UNABLE_TO_GENERATE_NAME_FROM_MODELGROUP =
325N/A "DefaultParticleBinder.UnableToGenerateNameFromModelGroup"; // arg:0
325N/A
325N/A static final String ERR_INCORRECT_FIXED_VALUE =
325N/A "FieldBuilder.IncorrectFixedValue"; // arg:1
325N/A
325N/A static final String ERR_INCORRECT_DEFAULT_VALUE =
325N/A "FieldBuilder.IncorrectDefaultValue"; // arg:1
325N/A
325N/A static final String ERR_CONFLICT_BETWEEN_USERTYPE_AND_ACTUALTYPE_ATTUSE =
325N/A "FieldBuilder.ConflictBetweenUserTypeAndActualType.AttUse"; // arg:2
325N/A
325N/A static final String ERR_CONFLICT_BETWEEN_USERTYPE_AND_ACTUALTYPE_ATTUSE_SOURCE =
325N/A "FieldBuilder.ConflictBetweenUserTypeAndActualType.AttUse.Source"; // arg:0
325N/A
325N/A static final String ERR_UNNESTED_JAVATYPE_CUSTOMIZATION_ON_SIMPLETYPE =
325N/A "SimpleTypeBuilder.UnnestedJavaTypeCustomization"; // arg:0
325N/A
325N/A static final String JAVADOC_NIL_PROPERTY =
325N/A "FieldBuilder.Javadoc.NilProperty"; // arg:1
325N/A
325N/A static final String JAVADOC_LINE_UNKNOWN = // 0 args
325N/A "ClassSelector.JavadocLineUnknown";
325N/A
325N/A static final String JAVADOC_VALUEOBJECT_PROPERTY =
325N/A "FieldBuilder.Javadoc.ValueObject"; // args:2
325N/A
325N/A static final String MSG_COLLISION_INFO =
325N/A "CollisionInfo.CollisionInfo"; // args:3
325N/A
325N/A static final String MSG_UNKNOWN_FILE =
325N/A "CollisionInfo.UnknownFile"; // arg:1
325N/A
325N/A static final String MSG_LINE_X_OF_Y =
325N/A "CollisionInfo.LineXOfY"; // args:2
325N/A
325N/A static final String MSG_FALLBACK_JAVADOC =
325N/A "DefaultParticleBinder.FallbackJavadoc"; // arg:1
325N/A
325N/A static final String ERR_ENUM_MEMBER_NAME_COLLISION =
325N/A "ERR_ENUM_MEMBER_NAME_COLLISION";
325N/A static final String ERR_ENUM_MEMBER_NAME_COLLISION_RELATED =
325N/A "ERR_ENUM_MEMBER_NAME_COLLISION_RELATED";
325N/A static final String ERR_CANNOT_GENERATE_ENUM_NAME =
325N/A "ERR_CANNOT_GENERATE_ENUM_NAME";
325N/A static final String WARN_ENUM_MEMBER_SIZE_CAP =
325N/A "WARN_ENUM_MEMBER_SIZE_CAP"; // args: 3
325N/A
325N/A
325N/A // they are shared from the model
325N/A public static final String ERR_UNACKNOWLEDGED_CUSTOMIZATION =
325N/A "UnusedCustomizationChecker.UnacknolwedgedCustomization"; // arg:1
325N/A public static final String ERR_UNACKNOWLEDGED_CUSTOMIZATION_LOCATION =
325N/A "UnusedCustomizationChecker.UnacknolwedgedCustomization.Relevant"; // arg:0
325N/A
325N/A public static final String ERR_MULTIPLE_GLOBAL_BINDINGS =
325N/A "ERR_MULTIPLE_GLOBAL_BINDINGS";
325N/A public static final String ERR_MULTIPLE_GLOBAL_BINDINGS_OTHER =
325N/A "ERR_MULTIPLE_GLOBAL_BINDINGS_OTHER";
325N/A
325N/A public static final String ERR_REFERENCE_TO_NONEXPORTED_CLASS =
325N/A "ERR_REFERENCE_TO_NONEXPORTED_CLASS";
325N/A public static final String ERR_REFERENCE_TO_NONEXPORTED_CLASS_MAP_FALSE =
325N/A "ERR_REFERENCE_TO_NONEXPORTED_CLASS_MAP_FALSE";
325N/A public static final String ERR_REFERENCE_TO_NONEXPORTED_CLASS_REFERER =
325N/A "ERR_REFERENCE_TO_NONEXPORTED_CLASS_REFERER";
325N/A
325N/A static final String WARN_DEFAULT_VALUE_PRIMITIVE_TYPE =
325N/A "WARN_DEFAULT_VALUE_PRIMITIVE_TYPE";
325N/A}