src/share/jaxws_classes/com/sun/xml/internal/ws/resources/StreamingMessages.java

Tue, 06 Mar 2012 16:09:35 -0800

author
ohair
date
Tue, 06 Mar 2012 16:09:35 -0800
changeset 286
f50545b5e2f1
child 368
0989ad8c0860
permissions
-rw-r--r--

7150322: Stop using drop source bundles in jaxws
Reviewed-by: darcy, ohrstrom

     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  */
    27 package com.sun.xml.internal.ws.resources;
    29 import com.sun.xml.internal.ws.util.localization.Localizable;
    30 import com.sun.xml.internal.ws.util.localization.LocalizableMessageFactory;
    31 import com.sun.xml.internal.ws.util.localization.Localizer;
    34 /**
    35  * Defines string formatting method for each constant in the resource file
    36  *
    37  */
    38 public final class StreamingMessages {
    40     private final static LocalizableMessageFactory messageFactory = new LocalizableMessageFactory("com.sun.xml.internal.ws.resources.streaming");
    41     private final static Localizer localizer = new Localizer();
    43     public static Localizable localizableFASTINFOSET_DECODING_NOT_ACCEPTED() {
    44         return messageFactory.getMessage("fastinfoset.decodingNotAccepted");
    45     }
    47     /**
    48      * Fast Infoset decoding is not accepted
    49      *
    50      */
    51     public static String FASTINFOSET_DECODING_NOT_ACCEPTED() {
    52         return localizer.localize(localizableFASTINFOSET_DECODING_NOT_ACCEPTED());
    53     }
    55     public static Localizable localizableSTAX_CANT_CREATE() {
    56         return messageFactory.getMessage("stax.cantCreate");
    57     }
    59     /**
    60      * Unable to create StAX reader or writer
    61      *
    62      */
    63     public static String STAX_CANT_CREATE() {
    64         return localizer.localize(localizableSTAX_CANT_CREATE());
    65     }
    67     public static Localizable localizableSTREAMING_IO_EXCEPTION(Object arg0) {
    68         return messageFactory.getMessage("streaming.ioException", arg0);
    69     }
    71     /**
    72      * XML parsing error: {0}
    73      *
    74      */
    75     public static String STREAMING_IO_EXCEPTION(Object arg0) {
    76         return localizer.localize(localizableSTREAMING_IO_EXCEPTION(arg0));
    77     }
    79     public static Localizable localizableSOURCEREADER_INVALID_SOURCE(Object arg0) {
    80         return messageFactory.getMessage("sourcereader.invalidSource", arg0);
    81     }
    83     /**
    84      * Unable to create reader from source "{0}"
    85      *
    86      */
    87     public static String SOURCEREADER_INVALID_SOURCE(Object arg0) {
    88         return localizer.localize(localizableSOURCEREADER_INVALID_SOURCE(arg0));
    89     }
    91     public static Localizable localizableXMLREADER_UNEXPECTED_STATE(Object arg0, Object arg1) {
    92         return messageFactory.getMessage("xmlreader.unexpectedState", arg0, arg1);
    93     }
    95     /**
    96      * unexpected XML reader state. expected: {0} but found: {1}
    97      *
    98      */
    99     public static String XMLREADER_UNEXPECTED_STATE(Object arg0, Object arg1) {
   100         return localizer.localize(localizableXMLREADER_UNEXPECTED_STATE(arg0, arg1));
   101     }
   103     public static Localizable localizableXMLREADER_IO_EXCEPTION(Object arg0) {
   104         return messageFactory.getMessage("xmlreader.ioException", arg0);
   105     }
   107     /**
   108      * XML reader error: {0}
   109      *
   110      */
   111     public static String XMLREADER_IO_EXCEPTION(Object arg0) {
   112         return localizer.localize(localizableXMLREADER_IO_EXCEPTION(arg0));
   113     }
   115     public static Localizable localizableFASTINFOSET_NO_IMPLEMENTATION() {
   116         return messageFactory.getMessage("fastinfoset.noImplementation");
   117     }
   119     /**
   120      * Unable to locate compatible implementation of Fast Infoset in classpath
   121      *
   122      */
   123     public static String FASTINFOSET_NO_IMPLEMENTATION() {
   124         return localizer.localize(localizableFASTINFOSET_NO_IMPLEMENTATION());
   125     }
   127     public static Localizable localizableXMLWRITER_IO_EXCEPTION(Object arg0) {
   128         return messageFactory.getMessage("xmlwriter.ioException", arg0);
   129     }
   131     /**
   132      * XML writer error: {0}
   133      *
   134      */
   135     public static String XMLWRITER_IO_EXCEPTION(Object arg0) {
   136         return localizer.localize(localizableXMLWRITER_IO_EXCEPTION(arg0));
   137     }
   139     public static Localizable localizableXMLREADER_UNEXPECTED_CHARACTER_CONTENT(Object arg0) {
   140         return messageFactory.getMessage("xmlreader.unexpectedCharacterContent", arg0);
   141     }
   143     /**
   144      * XML reader error: unexpected character content: "{0}"
   145      *
   146      */
   147     public static String XMLREADER_UNEXPECTED_CHARACTER_CONTENT(Object arg0) {
   148         return localizer.localize(localizableXMLREADER_UNEXPECTED_CHARACTER_CONTENT(arg0));
   149     }
   151     public static Localizable localizableSTREAMING_PARSE_EXCEPTION(Object arg0) {
   152         return messageFactory.getMessage("streaming.parseException", arg0);
   153     }
   155     /**
   156      * XML parsing error: {0}
   157      *
   158      */
   159     public static String STREAMING_PARSE_EXCEPTION(Object arg0) {
   160         return localizer.localize(localizableSTREAMING_PARSE_EXCEPTION(arg0));
   161     }
   163     public static Localizable localizableXMLWRITER_NO_PREFIX_FOR_URI(Object arg0) {
   164         return messageFactory.getMessage("xmlwriter.noPrefixForURI", arg0);
   165     }
   167     /**
   168      * XML writer error: no prefix for URI: "{0}"
   169      *
   170      */
   171     public static String XMLWRITER_NO_PREFIX_FOR_URI(Object arg0) {
   172         return localizer.localize(localizableXMLWRITER_NO_PREFIX_FOR_URI(arg0));
   173     }
   175     public static Localizable localizableXMLREADER_NESTED_ERROR(Object arg0) {
   176         return messageFactory.getMessage("xmlreader.nestedError", arg0);
   177     }
   179     /**
   180      * XML reader error: {0}
   181      *
   182      */
   183     public static String XMLREADER_NESTED_ERROR(Object arg0) {
   184         return localizer.localize(localizableXMLREADER_NESTED_ERROR(arg0));
   185     }
   187     public static Localizable localizableSTAXREADER_XMLSTREAMEXCEPTION(Object arg0) {
   188         return messageFactory.getMessage("staxreader.xmlstreamexception", arg0);
   189     }
   191     /**
   192      * XML stream reader exception: {0}
   193      *
   194      */
   195     public static String STAXREADER_XMLSTREAMEXCEPTION(Object arg0) {
   196         return localizer.localize(localizableSTAXREADER_XMLSTREAMEXCEPTION(arg0));
   197     }
   199     public static Localizable localizableXMLWRITER_NESTED_ERROR(Object arg0) {
   200         return messageFactory.getMessage("xmlwriter.nestedError", arg0);
   201     }
   203     /**
   204      * XML writer error: {0}
   205      *
   206      */
   207     public static String XMLWRITER_NESTED_ERROR(Object arg0) {
   208         return localizer.localize(localizableXMLWRITER_NESTED_ERROR(arg0));
   209     }
   211     public static Localizable localizableXMLREADER_ILLEGAL_STATE_ENCOUNTERED(Object arg0) {
   212         return messageFactory.getMessage("xmlreader.illegalStateEncountered", arg0);
   213     }
   215     /**
   216      * XML reader internal error: illegal state ({0})
   217      *
   218      */
   219     public static String XMLREADER_ILLEGAL_STATE_ENCOUNTERED(Object arg0) {
   220         return localizer.localize(localizableXMLREADER_ILLEGAL_STATE_ENCOUNTERED(arg0));
   221     }
   223     public static Localizable localizableXMLREADER_UNEXPECTED_STATE_TAG(Object arg0, Object arg1) {
   224         return messageFactory.getMessage("xmlreader.unexpectedState.tag", arg0, arg1);
   225     }
   227     /**
   228      * unexpected XML tag. expected: {0} but found: {1}
   229      *
   230      */
   231     public static String XMLREADER_UNEXPECTED_STATE_TAG(Object arg0, Object arg1) {
   232         return localizer.localize(localizableXMLREADER_UNEXPECTED_STATE_TAG(arg0, arg1));
   233     }
   235     public static Localizable localizableXMLREADER_UNEXPECTED_STATE_MESSAGE(Object arg0, Object arg1, Object arg2) {
   236         return messageFactory.getMessage("xmlreader.unexpectedState.message", arg0, arg1, arg2);
   237     }
   239     /**
   240      * unexpected XML reader state. expected: {0} but found: {1}. {2}
   241      *
   242      */
   243     public static String XMLREADER_UNEXPECTED_STATE_MESSAGE(Object arg0, Object arg1, Object arg2) {
   244         return localizer.localize(localizableXMLREADER_UNEXPECTED_STATE_MESSAGE(arg0, arg1, arg2));
   245     }
   247     public static Localizable localizableXMLREADER_PARSE_EXCEPTION(Object arg0) {
   248         return messageFactory.getMessage("xmlreader.parseException", arg0);
   249     }
   251     /**
   252      * XML parsing error: {0}
   253      *
   254      */
   255     public static String XMLREADER_PARSE_EXCEPTION(Object arg0) {
   256         return localizer.localize(localizableXMLREADER_PARSE_EXCEPTION(arg0));
   257     }
   259     public static Localizable localizableXMLRECORDER_RECORDING_ENDED() {
   260         return messageFactory.getMessage("xmlrecorder.recording.ended");
   261     }
   263     /**
   264      * no more recorded elements available
   265      *
   266      */
   267     public static String XMLRECORDER_RECORDING_ENDED() {
   268         return localizer.localize(localizableXMLRECORDER_RECORDING_ENDED());
   269     }
   271 }

mercurial