xmltransformerfactory.java

来自「高质量Java程序设计 源代码」· Java 代码 · 共 48 行

JAVA
48
字号
package net.betterjava.sample.xml.bind;

import java.io.FileNotFoundException;

import net.betterjava.sample.xml.bind.builder.XMLTransformerFactoryImpl;

/**
 * Defines a factory API that enables applications to obtain a transformer that 
 * produces xml from bl data. 
 */
public abstract class XMLTransformerFactory {

	/**
		* @roseuid 3CE400F0008D
		*/
	protected XMLTransformerFactory() {

	}
	/**
		* Creates a new instance of a XMLTransformer using the currently configured 
		* parameters.		
		*/
	public abstract XMLTransformer newXMLTransformer() throws FileNotFoundException;
	/**
		* Obtain a new instance of a XMLTransformerFactory. This static method creates 
		* a new factory instance. 		
		*/
	public static XMLTransformerFactory newInstance() {
		return new XMLTransformerFactoryImpl();
	}
	/**
		* Allows the application to set specific attributes on the underlying 
		* implementation.	
		*/
	public abstract Void setAttribute(MappingRulesConstants key, Object value)
		throws IllegalArgumentException;
	/**
		* Allows the application to set specific attributes on the underlying 
		* implementation.	
		*/
	public abstract Void setAttribute(String key, Object value)
		throws IllegalArgumentException;
	/**
	 * set the path of schema 
	 */
	public abstract void setSchemaPath(java.lang.String newSchemaPath);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?