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

The following examples show how to use com.sun.org.apache.xalan.internal.xsltc.compiler.util.ErrorMsg#JAXP_INVALID_ATTR_ERR . 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: TransformerFactoryImpl.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
/**
 * javax.xml.transform.sax.TransformerFactory implementation.
 * Returns the value set for a TransformerFactory attribute
 *
 * @param name The attribute name
 * @return An object representing the attribute value
 * @throws IllegalArgumentException
 */
@Override
public Object getAttribute(String name)
    throws IllegalArgumentException
{
    // Return value for attribute 'translet-name'
    if (name.equals(TRANSLET_NAME)) {
        return _transletName;
    }
    else if (name.equals(GENERATE_TRANSLET)) {
        return new Boolean(_generateTranslet);
    }
    else if (name.equals(AUTO_TRANSLET)) {
        return new Boolean(_autoTranslet);
    }
    else if (name.equals(ENABLE_INLINING)) {
        if (_enableInlining)
          return Boolean.TRUE;
        else
          return Boolean.FALSE;
    } else if (name.equals(XalanConstants.SECURITY_MANAGER)) {
        return _xmlSecurityManager;
    } else if (name.equals(XalanConstants.JDK_EXTENSION_CLASSLOADER)) {
       return _extensionClassLoader;
    }

    /** Check to see if the property is managed by the security manager **/
    String propertyValue = (_xmlSecurityManager != null) ?
            _xmlSecurityManager.getLimitAsString(name) : null;
    if (propertyValue != null) {
        return propertyValue;
    } else {
        propertyValue = (_xmlSecurityPropertyMgr != null) ?
            _xmlSecurityPropertyMgr.getValue(name) : null;
        if (propertyValue != null) {
            return propertyValue;
        }
    }

    // Throw an exception for all other attributes
    ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_INVALID_ATTR_ERR, name);
    throw new IllegalArgumentException(err.toString());
}
 
Example 2
Source File: TransformerFactoryImpl.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * javax.xml.transform.sax.TransformerFactory implementation.
 * Returns the value set for a TransformerFactory attribute
 *
 * @param name The attribute name
 * @return An object representing the attribute value
 * @throws IllegalArgumentException
 */
@Override
public Object getAttribute(String name)
    throws IllegalArgumentException
{
    // Return value for attribute 'translet-name'
    if (name.equals(TRANSLET_NAME)) {
        return _transletName;
    }
    else if (name.equals(GENERATE_TRANSLET)) {
        return new Boolean(_generateTranslet);
    }
    else if (name.equals(AUTO_TRANSLET)) {
        return new Boolean(_autoTranslet);
    }
    else if (name.equals(ENABLE_INLINING)) {
        if (_enableInlining)
          return Boolean.TRUE;
        else
          return Boolean.FALSE;
    } else if (name.equals(XalanConstants.SECURITY_MANAGER)) {
        return _xmlSecurityManager;
    } else if (name.equals(XalanConstants.JDK_EXTENSION_CLASSLOADER)) {
       return _extensionClassLoader;
    }

    /** Check to see if the property is managed by the security manager **/
    String propertyValue = (_xmlSecurityManager != null) ?
            _xmlSecurityManager.getLimitAsString(name) : null;
    if (propertyValue != null) {
        return propertyValue;
    } else {
        propertyValue = (_xmlSecurityPropertyMgr != null) ?
            _xmlSecurityPropertyMgr.getValue(name) : null;
        if (propertyValue != null) {
            return propertyValue;
        }
    }

    // Throw an exception for all other attributes
    ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_INVALID_ATTR_ERR, name);
    throw new IllegalArgumentException(err.toString());
}
 
Example 3
Source File: TransformerFactoryImpl.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * javax.xml.transform.sax.TransformerFactory implementation.
 * Returns the value set for a TransformerFactory attribute
 *
 * @param name The attribute name
 * @return An object representing the attribute value
 * @throws IllegalArgumentException
 */
@Override
public Object getAttribute(String name)
    throws IllegalArgumentException
{
    // Return value for attribute 'translet-name'
    if (name.equals(TRANSLET_NAME)) {
        return _transletName;
    }
    else if (name.equals(GENERATE_TRANSLET)) {
        return new Boolean(_generateTranslet);
    }
    else if (name.equals(AUTO_TRANSLET)) {
        return new Boolean(_autoTranslet);
    }
    else if (name.equals(ENABLE_INLINING)) {
        if (_enableInlining)
          return Boolean.TRUE;
        else
          return Boolean.FALSE;
    } else if (name.equals(XalanConstants.SECURITY_MANAGER)) {
        return _xmlSecurityManager;
    } else if (name.equals(XalanConstants.JDK_EXTENSION_CLASSLOADER)) {
       return _extensionClassLoader;
    }

    /** Check to see if the property is managed by the security manager **/
    String propertyValue = (_xmlSecurityManager != null) ?
            _xmlSecurityManager.getLimitAsString(name) : null;
    if (propertyValue != null) {
        return propertyValue;
    } else {
        propertyValue = (_xmlSecurityPropertyMgr != null) ?
            _xmlSecurityPropertyMgr.getValue(name) : null;
        if (propertyValue != null) {
            return propertyValue;
        }
    }

    // Throw an exception for all other attributes
    ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_INVALID_ATTR_ERR, name);
    throw new IllegalArgumentException(err.toString());
}
 
Example 4
Source File: TransformerFactoryImpl.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
/**
 * javax.xml.transform.sax.TransformerFactory implementation.
 * Returns the value set for a TransformerFactory attribute
 *
 * @param name The attribute name
 * @return An object representing the attribute value
 * @throws IllegalArgumentException
 */
@Override
public Object getAttribute(String name)
    throws IllegalArgumentException
{
    // Return value for attribute 'translet-name'
    if (name.equals(TRANSLET_NAME)) {
        return _transletName;
    }
    else if (name.equals(GENERATE_TRANSLET)) {
        return new Boolean(_generateTranslet);
    }
    else if (name.equals(AUTO_TRANSLET)) {
        return new Boolean(_autoTranslet);
    }
    else if (name.equals(ENABLE_INLINING)) {
        if (_enableInlining)
          return Boolean.TRUE;
        else
          return Boolean.FALSE;
    } else if (name.equals(XalanConstants.SECURITY_MANAGER)) {
        return _xmlSecurityManager;
    } else if (name.equals(XalanConstants.JDK_EXTENSION_CLASSLOADER)) {
       return _extensionClassLoader;
    }

    /** Check to see if the property is managed by the security manager **/
    String propertyValue = (_xmlSecurityManager != null) ?
            _xmlSecurityManager.getLimitAsString(name) : null;
    if (propertyValue != null) {
        return propertyValue;
    } else {
        propertyValue = (_xmlSecurityPropertyMgr != null) ?
            _xmlSecurityPropertyMgr.getValue(name) : null;
        if (propertyValue != null) {
            return propertyValue;
        }
    }

    // Throw an exception for all other attributes
    ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_INVALID_ATTR_ERR, name);
    throw new IllegalArgumentException(err.toString());
}
 
Example 5
Source File: TransformerFactoryImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/**
 * javax.xml.transform.sax.TransformerFactory implementation.
 * Returns the value set for a TransformerFactory attribute
 *
 * @param name The attribute name
 * @return An object representing the attribute value
 * @throws IllegalArgumentException
 */
@Override
public Object getAttribute(String name)
    throws IllegalArgumentException
{
    // Return value for attribute 'translet-name'
    if (name.equals(TRANSLET_NAME)) {
        return _transletName;
    }
    else if (name.equals(GENERATE_TRANSLET)) {
        return new Boolean(_generateTranslet);
    }
    else if (name.equals(AUTO_TRANSLET)) {
        return new Boolean(_autoTranslet);
    }
    else if (name.equals(ENABLE_INLINING)) {
        if (_enableInlining)
          return Boolean.TRUE;
        else
          return Boolean.FALSE;
    } else if (name.equals(XalanConstants.SECURITY_MANAGER)) {
        return _xmlSecurityManager;
    } else if (name.equals(XalanConstants.JDK_EXTENSION_CLASSLOADER)) {
       return _extensionClassLoader;
    }

    /** Check to see if the property is managed by the security manager **/
    String propertyValue = (_xmlSecurityManager != null) ?
            _xmlSecurityManager.getLimitAsString(name) : null;
    if (propertyValue != null) {
        return propertyValue;
    } else {
        propertyValue = (_xmlSecurityPropertyMgr != null) ?
            _xmlSecurityPropertyMgr.getValue(name) : null;
        if (propertyValue != null) {
            return propertyValue;
        }
    }

    // Throw an exception for all other attributes
    ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_INVALID_ATTR_ERR, name);
    throw new IllegalArgumentException(err.toString());
}
 
Example 6
Source File: TransformerFactoryImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/**
 * javax.xml.transform.sax.TransformerFactory implementation.
 * Returns the value set for a TransformerFactory attribute
 *
 * @param name The attribute name
 * @return An object representing the attribute value
 * @throws IllegalArgumentException
 */
@Override
public Object getAttribute(String name)
    throws IllegalArgumentException
{
    // Return value for attribute 'translet-name'
    if (name.equals(TRANSLET_NAME)) {
        return _transletName;
    }
    else if (name.equals(GENERATE_TRANSLET)) {
        return new Boolean(_generateTranslet);
    }
    else if (name.equals(AUTO_TRANSLET)) {
        return new Boolean(_autoTranslet);
    }
    else if (name.equals(ENABLE_INLINING)) {
        if (_enableInlining)
          return Boolean.TRUE;
        else
          return Boolean.FALSE;
    } else if (name.equals(XalanConstants.SECURITY_MANAGER)) {
        return _xmlSecurityManager;
    } else if (name.equals(XalanConstants.JDK_EXTENSION_CLASSLOADER)) {
       return _extensionClassLoader;
    }

    /** Check to see if the property is managed by the security manager **/
    String propertyValue = (_xmlSecurityManager != null) ?
            _xmlSecurityManager.getLimitAsString(name) : null;
    if (propertyValue != null) {
        return propertyValue;
    } else {
        propertyValue = (_xmlSecurityPropertyMgr != null) ?
            _xmlSecurityPropertyMgr.getValue(name) : null;
        if (propertyValue != null) {
            return propertyValue;
        }
    }

    // Throw an exception for all other attributes
    ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_INVALID_ATTR_ERR, name);
    throw new IllegalArgumentException(err.toString());
}
 
Example 7
Source File: TransformerFactoryImpl.java    From Bytecoder with Apache License 2.0 4 votes vote down vote up
/**
 * javax.xml.transform.sax.TransformerFactory implementation.
 * Returns the value set for a TransformerFactory attribute
 *
 * @param name The attribute name
 * @return An object representing the attribute value
 * @throws IllegalArgumentException
 */
@Override
public Object getAttribute(String name)
    throws IllegalArgumentException
{
    // Return value for attribute 'translet-name'
    if (name.equals(TRANSLET_NAME)) {
        return _transletName;
    }
    else if (name.equals(GENERATE_TRANSLET)) {
        return _generateTranslet;
    }
    else if (name.equals(AUTO_TRANSLET)) {
        return _autoTranslet;
    }
    else if (name.equals(ENABLE_INLINING)) {
        if (_enableInlining)
          return Boolean.TRUE;
        else
          return Boolean.FALSE;
    } else if (name.equals(XalanConstants.SECURITY_MANAGER)) {
        return _xmlSecurityManager;
    } else if (name.equals(XalanConstants.JDK_EXTENSION_CLASSLOADER)) {
       return _extensionClassLoader;
    } else if (JdkXmlUtils.CATALOG_FILES.equals(name)) {
        return _catalogFiles;
    } else if (JdkXmlUtils.CATALOG_DEFER.equals(name)) {
        return _catalogDefer;
    } else if (JdkXmlUtils.CATALOG_PREFER.equals(name)) {
        return _catalogPrefer;
    } else if (JdkXmlUtils.CATALOG_RESOLVE.equals(name)) {
        return _catalogResolve;
    } else if (JdkXmlFeatures.CATALOG_FEATURES.equals(name)) {
        return buildCatalogFeatures();
    } else if (JdkXmlUtils.CDATA_CHUNK_SIZE.equals(name)) {
        return _cdataChunkSize;
    }

    /** Check to see if the property is managed by the security manager **/
    String propertyValue = (_xmlSecurityManager != null) ?
            _xmlSecurityManager.getLimitAsString(name) : null;
    if (propertyValue != null) {
        return propertyValue;
    } else {
        propertyValue = (_xmlSecurityPropertyMgr != null) ?
            _xmlSecurityPropertyMgr.getValue(name) : null;
        if (propertyValue != null) {
            return propertyValue;
        }
    }

    // Throw an exception for all other attributes
    ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_INVALID_ATTR_ERR, name);
    throw new IllegalArgumentException(err.toString());
}
 
Example 8
Source File: TransformerFactoryImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * javax.xml.transform.sax.TransformerFactory implementation.
 * Returns the value set for a TransformerFactory attribute
 *
 * @param name The attribute name
 * @return An object representing the attribute value
 * @throws IllegalArgumentException
 */
@Override
public Object getAttribute(String name)
    throws IllegalArgumentException
{
    // Return value for attribute 'translet-name'
    if (name.equals(TRANSLET_NAME)) {
        return _transletName;
    }
    else if (name.equals(GENERATE_TRANSLET)) {
        return _generateTranslet;
    }
    else if (name.equals(AUTO_TRANSLET)) {
        return _autoTranslet;
    }
    else if (name.equals(ENABLE_INLINING)) {
        if (_enableInlining)
          return Boolean.TRUE;
        else
          return Boolean.FALSE;
    } else if (name.equals(XalanConstants.SECURITY_MANAGER)) {
        return _xmlSecurityManager;
    } else if (name.equals(XalanConstants.JDK_EXTENSION_CLASSLOADER)) {
       return _extensionClassLoader;
    } else if (JdkXmlUtils.CATALOG_FILES.equals(name)) {
        return _catalogFiles;
    } else if (JdkXmlUtils.CATALOG_DEFER.equals(name)) {
        return _catalogDefer;
    } else if (JdkXmlUtils.CATALOG_PREFER.equals(name)) {
        return _catalogPrefer;
    } else if (JdkXmlUtils.CATALOG_RESOLVE.equals(name)) {
        return _catalogResolve;
    } else if (JdkXmlFeatures.CATALOG_FEATURES.equals(name)) {
        return buildCatalogFeatures();
    } else if (JdkXmlUtils.CDATA_CHUNK_SIZE.equals(name)) {
        return _cdataChunkSize;
    }

    /** Check to see if the property is managed by the security manager **/
    String propertyValue = (_xmlSecurityManager != null) ?
            _xmlSecurityManager.getLimitAsString(name) : null;
    if (propertyValue != null) {
        return propertyValue;
    } else {
        propertyValue = (_xmlSecurityPropertyMgr != null) ?
            _xmlSecurityPropertyMgr.getValue(name) : null;
        if (propertyValue != null) {
            return propertyValue;
        }
    }

    // Throw an exception for all other attributes
    ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_INVALID_ATTR_ERR, name);
    throw new IllegalArgumentException(err.toString());
}
 
Example 9
Source File: TransformerFactoryImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * javax.xml.transform.sax.TransformerFactory implementation.
 * Returns the value set for a TransformerFactory attribute
 *
 * @param name The attribute name
 * @return An object representing the attribute value
 * @throws IllegalArgumentException
 */
@Override
public Object getAttribute(String name)
    throws IllegalArgumentException
{
    // Return value for attribute 'translet-name'
    if (name.equals(TRANSLET_NAME)) {
        return _transletName;
    }
    else if (name.equals(GENERATE_TRANSLET)) {
        return new Boolean(_generateTranslet);
    }
    else if (name.equals(AUTO_TRANSLET)) {
        return new Boolean(_autoTranslet);
    }
    else if (name.equals(ENABLE_INLINING)) {
        if (_enableInlining)
          return Boolean.TRUE;
        else
          return Boolean.FALSE;
    } else if (name.equals(XalanConstants.SECURITY_MANAGER)) {
        return _xmlSecurityManager;
    } else if (name.equals(XalanConstants.JDK_EXTENSION_CLASSLOADER)) {
       return _extensionClassLoader;
    }

    /** Check to see if the property is managed by the security manager **/
    String propertyValue = (_xmlSecurityManager != null) ?
            _xmlSecurityManager.getLimitAsString(name) : null;
    if (propertyValue != null) {
        return propertyValue;
    } else {
        propertyValue = (_xmlSecurityPropertyMgr != null) ?
            _xmlSecurityPropertyMgr.getValue(name) : null;
        if (propertyValue != null) {
            return propertyValue;
        }
    }

    // Throw an exception for all other attributes
    ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_INVALID_ATTR_ERR, name);
    throw new IllegalArgumentException(err.toString());
}
 
Example 10
Source File: TransformerFactoryImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/**
 * javax.xml.transform.sax.TransformerFactory implementation.
 * Returns the value set for a TransformerFactory attribute
 *
 * @param name The attribute name
 * @return An object representing the attribute value
 * @throws IllegalArgumentException
 */
@Override
public Object getAttribute(String name)
    throws IllegalArgumentException
{
    // Return value for attribute 'translet-name'
    if (name.equals(TRANSLET_NAME)) {
        return _transletName;
    }
    else if (name.equals(GENERATE_TRANSLET)) {
        return new Boolean(_generateTranslet);
    }
    else if (name.equals(AUTO_TRANSLET)) {
        return new Boolean(_autoTranslet);
    }
    else if (name.equals(ENABLE_INLINING)) {
        if (_enableInlining)
          return Boolean.TRUE;
        else
          return Boolean.FALSE;
    } else if (name.equals(XalanConstants.SECURITY_MANAGER)) {
        return _xmlSecurityManager;
    }

    /** Check to see if the property is managed by the security manager **/
    String propertyValue = (_xmlSecurityManager != null) ?
            _xmlSecurityManager.getLimitAsString(name) : null;
    if (propertyValue != null) {
        return propertyValue;
    } else {
        propertyValue = (_xmlSecurityPropertyMgr != null) ?
            _xmlSecurityPropertyMgr.getValue(name) : null;
        if (propertyValue != null) {
            return propertyValue;
        }
    }

    // Throw an exception for all other attributes
    ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_INVALID_ATTR_ERR, name);
    throw new IllegalArgumentException(err.toString());
}
 
Example 11
Source File: TransformerFactoryImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * javax.xml.transform.sax.TransformerFactory implementation.
 * Returns the value set for a TransformerFactory attribute
 *
 * @param name The attribute name
 * @return An object representing the attribute value
 * @throws IllegalArgumentException
 */
@Override
public Object getAttribute(String name)
    throws IllegalArgumentException
{
    // Return value for attribute 'translet-name'
    if (name.equals(TRANSLET_NAME)) {
        return _transletName;
    }
    else if (name.equals(GENERATE_TRANSLET)) {
        return new Boolean(_generateTranslet);
    }
    else if (name.equals(AUTO_TRANSLET)) {
        return new Boolean(_autoTranslet);
    }
    else if (name.equals(ENABLE_INLINING)) {
        if (_enableInlining)
          return Boolean.TRUE;
        else
          return Boolean.FALSE;
    } else if (name.equals(XalanConstants.SECURITY_MANAGER)) {
        return _xmlSecurityManager;
    }

    /** Check to see if the property is managed by the security manager **/
    String propertyValue = (_xmlSecurityManager != null) ?
            _xmlSecurityManager.getLimitAsString(name) : null;
    if (propertyValue != null) {
        return propertyValue;
    } else {
        propertyValue = (_xmlSecurityPropertyMgr != null) ?
            _xmlSecurityPropertyMgr.getValue(name) : null;
        if (propertyValue != null) {
            return propertyValue;
        }
    }

    // Throw an exception for all other attributes
    ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_INVALID_ATTR_ERR, name);
    throw new IllegalArgumentException(err.toString());
}