308 return _errorListener; 309 } 310 311 /** 312 * javax.xml.transform.sax.TransformerFactory implementation. 313 * Returns the value set for a TransformerFactory attribute 314 * 315 * @param name The attribute name 316 * @return An object representing the attribute value 317 * @throws IllegalArgumentException 318 */ 319 @Override 320 public Object getAttribute(String name) 321 throws IllegalArgumentException 322 { 323 // Return value for attribute 'translet-name' 324 if (name.equals(TRANSLET_NAME)) { 325 return _transletName; 326 } 327 else if (name.equals(GENERATE_TRANSLET)) { 328 return new Boolean(_generateTranslet); 329 } 330 else if (name.equals(AUTO_TRANSLET)) { 331 return new Boolean(_autoTranslet); 332 } 333 else if (name.equals(ENABLE_INLINING)) { 334 if (_enableInlining) 335 return Boolean.TRUE; 336 else 337 return Boolean.FALSE; 338 } else if (name.equals(XalanConstants.SECURITY_MANAGER)) { 339 return _xmlSecurityManager; 340 } else if (name.equals(XalanConstants.JDK_EXTENSION_CLASSLOADER)) { 341 return _extensionClassLoader; 342 } 343 344 /** Check to see if the property is managed by the security manager **/ 345 String propertyValue = (_xmlSecurityManager != null) ? 346 _xmlSecurityManager.getLimitAsString(name) : null; 347 if (propertyValue != null) { 348 return propertyValue; 349 } else { 350 propertyValue = (_xmlSecurityPropertyMgr != null) ? 351 _xmlSecurityPropertyMgr.getValue(name) : null; | 308 return _errorListener; 309 } 310 311 /** 312 * javax.xml.transform.sax.TransformerFactory implementation. 313 * Returns the value set for a TransformerFactory attribute 314 * 315 * @param name The attribute name 316 * @return An object representing the attribute value 317 * @throws IllegalArgumentException 318 */ 319 @Override 320 public Object getAttribute(String name) 321 throws IllegalArgumentException 322 { 323 // Return value for attribute 'translet-name' 324 if (name.equals(TRANSLET_NAME)) { 325 return _transletName; 326 } 327 else if (name.equals(GENERATE_TRANSLET)) { 328 return _generateTranslet; 329 } 330 else if (name.equals(AUTO_TRANSLET)) { 331 return _autoTranslet; 332 } 333 else if (name.equals(ENABLE_INLINING)) { 334 if (_enableInlining) 335 return Boolean.TRUE; 336 else 337 return Boolean.FALSE; 338 } else if (name.equals(XalanConstants.SECURITY_MANAGER)) { 339 return _xmlSecurityManager; 340 } else if (name.equals(XalanConstants.JDK_EXTENSION_CLASSLOADER)) { 341 return _extensionClassLoader; 342 } 343 344 /** Check to see if the property is managed by the security manager **/ 345 String propertyValue = (_xmlSecurityManager != null) ? 346 _xmlSecurityManager.getLimitAsString(name) : null; 347 if (propertyValue != null) { 348 return propertyValue; 349 } else { 350 propertyValue = (_xmlSecurityPropertyMgr != null) ? 351 _xmlSecurityPropertyMgr.getValue(name) : null; |