Java Code Examples for com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg#JAXP_INVALID_SET_PARAM_VALUE

The following examples show how to use com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg#JAXP_INVALID_SET_PARAM_VALUE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TransformerImpl.java    From jdk1.8-source-analysis with Apache License 2.0 6 votes vote down vote up
/**
 * Implements JAXP's Transformer.setParameter()
 * Add a parameter for the transformation. The parameter is simply passed
 * on to the translet - no validation is performed - so any unused
 * parameters are quitely ignored by the translet.
 *
 * @param name The name of the parameter
 * @param value The value to assign to the parameter
 */
@Override
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 HashMap<>();
        }
        _parameters.put(name, value);
    }
    else {
        _translet.addParameter(name, value);
    }
}
 
Example 2
Source File: TransformerImpl.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Implements JAXP's Transformer.setParameter()
 * Add a parameter for the transformation. The parameter is simply passed
 * on to the translet - no validation is performed - so any unused
 * parameters are quitely ignored by the translet.
 *
 * @param name The name of the parameter
 * @param value The value to assign to the parameter
 */
@Override
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 HashMap<>();
        }
        _parameters.put(name, value);
    }
    else {
        _translet.addParameter(name, value);
    }
}
 
Example 3
Source File: TransformerImpl.java    From JDKSourceCode1.8 with MIT License 6 votes vote down vote up
/**
 * Implements JAXP's Transformer.setParameter()
 * Add a parameter for the transformation. The parameter is simply passed
 * on to the translet - no validation is performed - so any unused
 * parameters are quitely ignored by the translet.
 *
 * @param name The name of the parameter
 * @param value The value to assign to the parameter
 */
@Override
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 HashMap<>();
        }
        _parameters.put(name, value);
    }
    else {
        _translet.addParameter(name, value);
    }
}
 
Example 4
Source File: TransformerImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Implements JAXP's Transformer.setParameter()
 * Add a parameter for the transformation. The parameter is simply passed
 * on to the translet - no validation is performed - so any unused
 * parameters are quitely ignored by the translet.
 *
 * @param name The name of the parameter
 * @param value The value to assign to the parameter
 */
@Override
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 HashMap<>();
        }
        _parameters.put(name, value);
    }
    else {
        _translet.addParameter(name, value);
    }
}
 
Example 5
Source File: TransformerImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Implements JAXP's Transformer.setParameter()
 * Add a parameter for the transformation. The parameter is simply passed
 * on to the translet - no validation is performed - so any unused
 * parameters are quitely ignored by the translet.
 *
 * @param name The name of the parameter
 * @param value The value to assign to the parameter
 */
@Override
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 HashMap<>();
        }
        _parameters.put(name, value);
    }
    else {
        _translet.addParameter(name, value);
    }
}
 
Example 6
Source File: TransformerImpl.java    From Bytecoder with Apache License 2.0 6 votes vote down vote up
/**
 * Implements JAXP's Transformer.setParameter()
 * Add a parameter for the transformation. The parameter is simply passed
 * on to the translet - no validation is performed - so any unused
 * parameters are quitely ignored by the translet.
 *
 * @param name The name of the parameter
 * @param value The value to assign to the parameter
 */
@Override
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 HashMap<>();
        }
        _parameters.put(name, value);
    }
    else {
        _translet.addParameter(name, value);
    }
}
 
Example 7
Source File: TransformerImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Implements JAXP's Transformer.setParameter()
 * Add a parameter for the transformation. The parameter is simply passed
 * on to the translet - no validation is performed - so any unused
 * parameters are quitely ignored by the translet.
 *
 * @param name The name of the parameter
 * @param value The value to assign to the parameter
 */
@Override
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 HashMap<>();
        }
        _parameters.put(name, value);
    }
    else {
        _translet.addParameter(name, value);
    }
}
 
Example 8
Source File: TransformerImpl.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Implements JAXP's Transformer.setParameter()
 * Add a parameter for the transformation. The parameter is simply passed
 * on to the translet - no validation is performed - so any unused
 * parameters are quitely ignored by the translet.
 *
 * @param name The name of the parameter
 * @param value The value to assign to the parameter
 */
@Override
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 HashMap<>();
        }
        _parameters.put(name, value);
    }
    else {
        _translet.addParameter(name, value);
    }
}