Package org.apache.xalan.xsltc.compiler.util

Examples of org.apache.xalan.xsltc.compiler.util.ErrorMsg


     * @throws IllegalArgumentException
     */
    public void setErrorListener(ErrorListener listener)
  throws IllegalArgumentException {
        if (listener == null) {
      ErrorMsg err = new ErrorMsg(ErrorMsg.ERROR_LISTENER_NULL_ERR,
          "Transformer");
            throw new IllegalArgumentException(err.toString());
  }
        _errorListener = listener;
       
  // Register a message handler to report xsl:messages
    if (_translet != null)
View Full Code Here


     */
    public String getOutputProperty(String name)
  throws IllegalArgumentException
    {
  if (!validOutputProperty(name)) {
      ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_UNKNOWN_PROP_ERR, name);
      throw new IllegalArgumentException(err.toString());
  }
  return _properties.getProperty(name);
    }
View Full Code Here

    if (validOutputProperty(name)) {
        _properties.setProperty(name, properties.getProperty(name));
    }
    else {
        ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_UNKNOWN_PROP_ERR, name);
        throw new IllegalArgumentException(err.toString());
    }
      }
  }
  else {
      _properties = _propertiesClone;
View Full Code Here

     */
    public void setOutputProperty(String name, String value)
  throws IllegalArgumentException
    {
  if (!validOutputProperty(name)) {
      ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_UNKNOWN_PROP_ERR, name);
      throw new IllegalArgumentException(err.toString());
  }
  _properties.setProperty(name, value);
    }
View Full Code Here

     * @param value The value to assign to the parameter
     */
    public void setParameter(String name, Object value) {
       
        if (value == null) {
            ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_INVALID_SET_PARAM_VALUE, name);
            throw new IllegalArgumentException(err.toString());
        }
            
  if (_isIdentity) {
      if (_parameters == null) {
    _parameters = new Hashtable();
View Full Code Here

    public void error(TransformerException e)
  throws TransformerException
    {
        Throwable wrapped = e.getException();
        if (wrapped != null) {
            System.err.println(new ErrorMsg(ErrorMsg.ERROR_PLUS_WRAPPED_MSG,
                                            e.getMessageAndLocation(),
                                            wrapped.getMessage()));
        } else {
            System.err.println(new ErrorMsg(ErrorMsg.ERROR_MSG,
                                            e.getMessageAndLocation()));
        }
        throw e;
    }
View Full Code Here

    public void fatalError(TransformerException e)
  throws TransformerException
    {
        Throwable wrapped = e.getException();
        if (wrapped != null) {
            System.err.println(new ErrorMsg(ErrorMsg.FATAL_ERR_PLUS_WRAPPED_MSG,
                                            e.getMessageAndLocation(),
                                            wrapped.getMessage()));
        } else {
            System.err.println(new ErrorMsg(ErrorMsg.FATAL_ERR_MSG,
                                            e.getMessageAndLocation()));
        }
        throw e;
    }
View Full Code Here

    public void warning(TransformerException e)
  throws TransformerException
    {
        Throwable wrapped = e.getException();
        if (wrapped != null) {
            System.err.println(new ErrorMsg(ErrorMsg.WARNING_PLUS_WRAPPED_MSG,
                                            e.getMessageAndLocation(),
                                            wrapped.getMessage()));
        } else {
            System.err.println(new ErrorMsg(ErrorMsg.WARNING_MSG,
                                            e.getMessageAndLocation()));
        }
    }
View Full Code Here

    public static void printUsage() {
        StringBuffer vers = new StringBuffer("XSLTC version " + VERSION_MAJOR
                + "." + VERSION_MINOR
                + ((VERSION_DELTA > 0) ? ("." + VERSION_DELTA) : ("")));
        System.err.println(vers + "\n"
                + new ErrorMsg(ErrorMsg.COMPILE_USAGE_STR));
    }
View Full Code Here

      boolean compileOK;

      if (useStdIn) {
    if (!classNameSet) {
        System.err.println(new ErrorMsg(ErrorMsg.COMPILE_STDIN_ERR));
    }
    compileOK = xsltc.compile(System.in, xsltc.getClassName());
      }
      else {
    // Generate a vector containg URLs for all stylesheets specified
View Full Code Here

TOP

Related Classes of org.apache.xalan.xsltc.compiler.util.ErrorMsg

Copyright © 2018 www.massapicom. 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.