public class NoNotificationParserPool extends NotifyingParserPool
XMLParserPool
aims at disabling all
notifications when the option
is set, including the notifications
at the very end of parsing.
This is one of the steps that allows EMF Compare to bypass UML's CacheAdapter when loading UML models from the logical model.
containmentOnly
Constructor and Description |
---|
NoNotificationParserPool(boolean containmentOnly)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected XMLDefaultHandler |
createDefaultHandler(XMLResource resource,
XMLLoad xmlLoad,
XMLHelper helper,
Map<?,?> options)
Create the default (unwrapped) XMLDefaultHandler.
|
addNamespaceDeclarationListener, addProxyListener, getDefaultHandler, removeNamespaceDeclarationListener, removeProxyListener
get, makeParser, release, releaseDefaultHandler
public NoNotificationParserPool(boolean containmentOnly)
containmentOnly
- only set containment reference values. The model will be mostly empty except for its
containment tree.protected XMLDefaultHandler createDefaultHandler(XMLResource resource, XMLLoad xmlLoad, XMLHelper helper, Map<?,?> options)
NotifyingParserPool
super
but can
be sub-classed.createDefaultHandler
in class NotifyingParserPool
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.NotifyingParserPool.getDefaultHandler(XMLResource, XMLLoad, XMLHelper, Map)
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.