当前位置: 首页>>代码示例>>Java>>正文


Java ErrorMsg.JAXP_UNKNOWN_PROP_ERR属性代码示例

本文整理汇总了Java中com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg.JAXP_UNKNOWN_PROP_ERR属性的典型用法代码示例。如果您正苦于以下问题:Java ErrorMsg.JAXP_UNKNOWN_PROP_ERR属性的具体用法?Java ErrorMsg.JAXP_UNKNOWN_PROP_ERR怎么用?Java ErrorMsg.JAXP_UNKNOWN_PROP_ERR使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg的用法示例。


在下文中一共展示了ErrorMsg.JAXP_UNKNOWN_PROP_ERR属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getOutputProperty

/**
 * Implements JAXP's Transformer.getOutputProperty().
 * Get an output property that is in effect for the transformation. The
 * property specified may be a property that was set with setOutputProperty,
 * or it may be a property specified in the stylesheet.
 *
 * @param name A non-null string that contains the name of the property
 * @throws IllegalArgumentException if the property name is not known
 */
@Override
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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:19,代码来源:TransformerImpl.java

示例2: setOutputProperties

/**
 * Implements JAXP's Transformer.setOutputProperties().
 * Set the output properties for the transformation. These properties
 * will override properties set in the Templates with xsl:output.
 * Unrecognised properties will be quitely ignored.
 *
 * @param properties The properties to use for the Transformer
 * @throws IllegalArgumentException Never, errors are ignored
 */
@Override
public void setOutputProperties(Properties properties)
    throws IllegalArgumentException
{
    if (properties != null) {
        final Enumeration names = properties.propertyNames();

        while (names.hasMoreElements()) {
            final String name = (String) names.nextElement();

            // Ignore lower layer properties
            if (isDefaultProperty(name, properties)) continue;

            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;
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:35,代码来源:TransformerImpl.java

示例3: setOutputProperty

/**
 * Implements JAXP's Transformer.setOutputProperty().
 * Get an output property that is in effect for the transformation. The
 * property specified may be a property that was set with
 * setOutputProperty(), or it may be a property specified in the stylesheet.
 *
 * @param name The name of the property to set
 * @param value The value to assign to the property
 * @throws IllegalArgumentException Never, errors are ignored
 */
@Override
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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:20,代码来源:TransformerImpl.java


注:本文中的com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg.JAXP_UNKNOWN_PROP_ERR属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。