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

changeset 286
f50545b5e2f1
parent 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/internalizer/Messages.java	Tue Mar 06 16:09:35 2012 -0800
     1.3 @@ -0,0 +1,85 @@
     1.4 +/*
     1.5 + * Copyright (c) 1997, 2011, 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.internalizer;
    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 +class Messages
    1.38 +{
    1.39 +    /** Loads a string resource and formats it with specified arguments. */
    1.40 +    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 +    static final String ERR_INCORRECT_SCHEMA_REFERENCE = // args:2
    1.46 +        "Internalizer.IncorrectSchemaReference";
    1.47 +    static final String ERR_XPATH_EVAL = // arg:1
    1.48 +        "Internalizer.XPathEvaluationError";
    1.49 +    static final String NO_XPATH_EVAL_TO_NO_TARGET = // arg:1
    1.50 +        "Internalizer.XPathEvaluatesToNoTarget";
    1.51 +    static final String NO_XPATH_EVAL_TOO_MANY_TARGETS = // arg:2
    1.52 +        "Internalizer.XPathEvaulatesToTooManyTargets";
    1.53 +    static final String NO_XPATH_EVAL_TO_NON_ELEMENT = // arg:1
    1.54 +        "Internalizer.XPathEvaluatesToNonElement";
    1.55 +    static final String XPATH_EVAL_TO_NON_SCHEMA_ELEMENT = // arg:2
    1.56 +        "Internalizer.XPathEvaluatesToNonSchemaElement";
    1.57 +    static final String SCD_NOT_ENABLED = // arg:0
    1.58 +        "SCD_NOT_ENABLED";
    1.59 +    static final String ERR_SCD_EVAL = // arg: 1
    1.60 +        "ERR_SCD_EVAL";
    1.61 +    static final String ERR_SCD_EVALUATED_EMPTY = // arg:1
    1.62 +        "ERR_SCD_EVALUATED_EMPTY";
    1.63 +    static final String ERR_SCD_MATCHED_MULTIPLE_NODES = // arg:2
    1.64 +        "ERR_SCD_MATCHED_MULTIPLE_NODES";
    1.65 +    static final String ERR_SCD_MATCHED_MULTIPLE_NODES_FIRST = // arg:1
    1.66 +        "ERR_SCD_MATCHED_MULTIPLE_NODES_FIRST";
    1.67 +    static final String ERR_SCD_MATCHED_MULTIPLE_NODES_SECOND = // arg:1
    1.68 +        "ERR_SCD_MATCHED_MULTIPLE_NODES_SECOND";
    1.69 +    static final String CONTEXT_NODE_IS_NOT_ELEMENT = // arg:0
    1.70 +        "Internalizer.ContextNodeIsNotElement";
    1.71 +    static final String ERR_INCORRECT_VERSION = // arg:0
    1.72 +        "Internalizer.IncorrectVersion";
    1.73 +    static final String ERR_VERSION_NOT_FOUND = // arg:0
    1.74 +        "Internalizer.VersionNotPresent";
    1.75 +    static final String TWO_VERSION_ATTRIBUTES = // arg:0
    1.76 +        "Internalizer.TwoVersionAttributes";
    1.77 +    static final String ORPHANED_CUSTOMIZATION = // arg:1
    1.78 +        "Internalizer.OrphanedCustomization";
    1.79 +    static final String ERR_UNABLE_TO_PARSE = // arg:2
    1.80 +        "AbstractReferenceFinderImpl.UnableToParse";
    1.81 +    static final String ERR_FILENAME_IS_NOT_URI = // arg:0
    1.82 +        "ERR_FILENAME_IS_NOT_URI";
    1.83 +    static final String ERR_GENERAL_SCHEMA_CORRECTNESS_ERROR = // arg:1
    1.84 +        "ERR_GENERAL_SCHEMA_CORRECTNESS_ERROR";
    1.85 +    static final String DOMFOREST_INPUTSOURCE_IOEXCEPTION = // arg:2
    1.86 +        "DOMFOREST_INPUTSOURCE_IOEXCEPTION";
    1.87 +
    1.88 +}

mercurial