当前页面:
在线文档首页 >
NetBeans API Javadoc 4.1.0
XMIInputConfig (NetBeans MDR API) - NetBeans API Javadoc 4.1.0
org.netbeans.api.xmi
Class XMIInputConfig
java.lang.Object
org.netbeans.api.xmi.XMIInputConfig
- public abstract class XMIInputConfig
- extends Object
Configuration class for objects taking XMI as input (e.g. XMIReader
).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMIInputConfig
public XMIInputConfig()
setReferenceResolver
public abstract void setReferenceResolver(XMIReferenceResolver resolver)
- Sets reference resolver to be used for resolving hrefs when reading XMI.
XMIReader/Consumer should call
XMIReferenceResolver.register(java.lang.String, java.lang.String, javax.jmi.reflect.RefObject)
for each
object deserialized from XMI that has an xmi id associated with it.
At the end of the XMI document, the XMI reader/consumer should call
XMIReferenceResolver.resolve(org.netbeans.api.xmi.XMIReferenceResolver.Client, javax.jmi.reflect.RefPackage, java.lang.String, org.netbeans.api.xmi.XMIInputConfig, java.util.Collection)
passing all of unresolved
external references (hrefs).
For immutable configurations this method throws
UnsupportedOperationException
.
- Parameters:
resolver
- Resolver to be used.
getReferenceResolver
public abstract XMIReferenceResolver getReferenceResolver()
- Returns a reference resolver to be used.
This method should never return
null
for a configuration
associated with an XMIReader/Consumer. Otherwise if
null
is returned, the default reference resolver
will be used.
- Returns:
- Reference resolver to be used or
null
.