站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 5.5.0

JMIMapper (NetBeans MDR API) - NetBeans API Javadoc 5.5.0

org.netbeans.api.mdr/1 1.4.22

org.netbeans.api.mdr
Class JMIMapper

java.lang.Object
  extended by 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.


Constructor Summary
JMIMapper()
           
 
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
 

Constructor Detail

JMIMapper

public JMIMapper()
Method Detail

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

org.netbeans.api.mdr/1 1.4.22

Built on May 28 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.