Examples of formatMessage()


Examples of org.apache.batik.i18n.LocalizableSupport.formatMessage()

            cl = base.getClass().getClassLoader();
        } catch (SecurityException se) {
        }
        LocalizableSupport ls;
        ls = new LocalizableSupport(MESSAGE_RSRC, base.getClass(), cl);
        return ls.formatMessage(code, params);
    }

    public Filter getBrokenLinkImage(Object base,
                                     String code, Object [] params) {
        synchronized (DefaultBrokenLinkProvider.class) {
View Full Code Here

Examples of org.apache.flex.forks.batik.dom.AbstractDocument.formatMessage()

    protected EventException createEventException(short code,
                                                  String key,
                                                  Object[] args) {
        try {
            AbstractDocument doc = (AbstractDocument) node.getOwnerDocument();
            return new EventException(code, doc.formatMessage(key, args));
        } catch (Exception e) {
            return new EventException(code, key);
        }
    }
View Full Code Here

Examples of org.apache.flex.forks.batik.i18n.LocalizableSupport.formatMessage()

            // of base's class loader to this class's class loader.
            cl = base.getClass().getClassLoader();
        } catch (SecurityException se) {
        }
        LocalizableSupport ls = new LocalizableSupport(res, cl);
        return ls.formatMessage(code, params);
    }

    public Filter getBrokenLinkImage(Object base,
                                     String code, Object [] params) {
        synchronized (DefaultBrokenLinkProvider.class) {
View Full Code Here

Examples of org.apache.xerces.util.MessageFormatter.formatMessage()

        SAXParseException spe;

        MessageFormatter msgFormatter = (MessageFormatter) fMessageFormatters.get(domain);

        spe = new SAXParseException(msgFormatter.formatMessage(fLocale, key, arguments), fLocator);

        // default error handling  
        if (fErrorHandler == null) {
            if ( severity == SEVERITY_FATAL_ERROR
                 && !fContinueAfterFatalError) {
View Full Code Here

Examples of org.apache.xerces.util.MessageFormatter.formatMessage()

       
        // format error message and create parse exception
        MessageFormatter messageFormatter = getMessageFormatter(domain);
        String message;
        if (messageFormatter != null) {
            message = messageFormatter.formatMessage(fLocale, key, arguments);
        }
        else {
            StringBuffer str = new StringBuffer();
            str.append(domain);
            str.append('#');
View Full Code Here

Examples of org.apache.xerces.util.MessageFormatter.formatMessage()

            // attempt to include a fallback if there is one.
            if (javaEncoding == null) {
              MessageFormatter aFormatter =
                    fErrorReporter.getMessageFormatter(XMLMessageFormatter.XML_DOMAIN);
              Locale aLocale = fErrorReporter.getLocale();
              throw new IOException( aFormatter.formatMessage( aLocale,
                  "EncodingDeclInvalid",
                    new Object[] {encoding} ) );
            }           
           
            return new InputStreamReader(stream, javaEncoding);
View Full Code Here

Examples of org.apache.xerces.util.MessageFormatter.formatMessage()

       
        // format error message and create parse exception
        MessageFormatter messageFormatter = getMessageFormatter(domain);
        String message;
        if (messageFormatter != null) {
            message = messageFormatter.formatMessage(fLocale, key, arguments);
        }
        else {
            StringBuffer str = new StringBuffer();
            str.append(domain);
            str.append('#');
View Full Code Here

Examples of org.apache.xerces.util.MessageFormatter.formatMessage()

       
        // format error message and create parse exception
        MessageFormatter messageFormatter = getMessageFormatter(domain);
        String message;
        if (messageFormatter != null) {
            message = messageFormatter.formatMessage(fLocale, key, arguments);
        }
        else {
            StringBuffer str = new StringBuffer();
            str.append(domain);
            str.append('#');
View Full Code Here

Examples of org.apache.xerces.util.MessageFormatter.formatMessage()

            // attempt to include a fallback if there is one.
            if (javaEncoding == null) {
                MessageFormatter aFormatter =
                    fErrorReporter.getMessageFormatter(XMLMessageFormatter.XML_DOMAIN);
                Locale aLocale = fErrorReporter.getLocale();
                throw new IOException( aFormatter.formatMessage( aLocale,
                    "EncodingDeclInvalid",
                    new Object[] {encoding} ) );
            }
            else if (javaEncoding.equals("ASCII")) {
                return createASCIIReader(stream);
View Full Code Here

Examples of org.apache.xerces.util.MessageFormatter.formatMessage()

        ) {
            // Not an Object[], String[], File[], InputStream[], InputSource[]
            MessageFormatter mf = fErrorReporter.getMessageFormatter(XSMessageFormatter.SCHEMA_DOMAIN);
            throw new XMLConfigurationException(
                    XMLConfigurationException.NOT_SUPPORTED,
                    mf.formatMessage(fErrorReporter.getLocale(), "jaxp12-schema-source-type.2",
                    new Object [] {componentType.getName()}));
        }
       
        // JAXP spec. allow []s of type String, File, InputStream,
        // InputSource also, apart from [] of type Object.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.