public class ProxyNotifierParserPool extends XMLParserPoolImpl
proxy
creation listeners of each and every proxy it sees while loading an XML file as an EMF model.| Modifier and Type | Class and Description |
|---|---|
static interface |
ProxyNotifierParserPool.IProxyCreationListener
Describes the contract for a proxy creation listener as can be notifier from this pool's created
parsers.
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
containmentOnly
Only set containment reference values, ignore the rest.
|
| Constructor and Description |
|---|
ProxyNotifierParserPool(boolean containmentOnly)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProxyListener(ProxyNotifierParserPool.IProxyCreationListener listener)
Add a proxy creation listener to this parser pool's list.
|
protected XMLDefaultHandler |
createDefaultHandler(XMLResource resource,
XMLLoad xmlLoad,
XMLHelper helper,
Map<?,?> options)
Create the default (unwrapped) XMLDefaultHandler.
|
XMLDefaultHandler |
getDefaultHandler(XMLResource resource,
XMLLoad xmlLoad,
XMLHelper helper,
Map<?,?> options) |
void |
removeProxyListener(ProxyNotifierParserPool.IProxyCreationListener listener)
Remove a proxy creation listener from this parser pool's list.
|
get, makeParser, release, releaseDefaultHandlerprotected final boolean containmentOnly
public ProxyNotifierParserPool(boolean containmentOnly)
containmentOnly - only set containment reference values. The model will be mostly empty except for its
containment tree.public XMLDefaultHandler getDefaultHandler(XMLResource resource, XMLLoad xmlLoad, XMLHelper helper, Map<?,?> options)
getDefaultHandler in interface XMLParserPoolgetDefaultHandler in class XMLParserPoolImplprotected XMLDefaultHandler createDefaultHandler(XMLResource resource, XMLLoad xmlLoad, XMLHelper helper, Map<?,?> options)
super but can
be sub-classed.resource - The resource to load.xmlLoad - The XML load to pass on tho the handler.helper - The XML helper to pass on tho the handler.options - The load options for this resource.getDefaultHandler(XMLResource, XMLLoad, XMLHelper, Map)public void addProxyListener(ProxyNotifierParserPool.IProxyCreationListener listener)
listener - The listener to add to this pool's list.public void removeProxyListener(ProxyNotifierParserPool.IProxyCreationListener listener)
listener - The listener to remove from this pool's list.
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.