当前页面:
在线文档首页 >
NetBeans API Javadoc 4.1.0
JMIMapper (NetBeans MDR API) - NetBeans API Javadoc 4.1.0
org.netbeans.api.mdr
Class JMIMapper
java.lang.Object
org.netbeans.api.mdr.JMIMapper
- public abstract class JMIMapper
- extends Object
JMI mapping utility. Generates JMI interfaces for a given metamodel.
Use getDefault()
method to obtain the default instance.
Method Summary |
abstract void |
generate(JMIStreamFactory sf,
javax.jmi.reflect.RefBaseObject object)
Generates JMI interfaces for the specified object
and the objects contained in it. |
static JMIMapper |
getDefault()
Returns the default JMI mapping utility in the system |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMIMapper
public JMIMapper()
generate
public abstract void generate(JMIStreamFactory sf,
javax.jmi.reflect.RefBaseObject object)
throws IOException
- Generates JMI interfaces for the specified object
and the objects contained in it.
- Parameters:
sf
- Implementation of JMIStreamFactory
interface.object
- Top-level object for interface generation. There are two possible kinds of objects that can be passed:
- RefObject (instance) - interfaces for this instance together with interfaces for all transitively contained instances are generated.
- RefPackage (package extent) - interfaces for all instances contained transitively in this package extent are generated.
- Throws:
IOException
- I/O error during interfaces generation.
getDefault
public static JMIMapper getDefault()
- Returns the default JMI mapping utility in the system
- Returns:
- default JMI mapping utility