public class NotifyingParserPool extends XMLParserPoolImpl
namespace declaration listeners of all namespaces declared in the parsed resource (xsi:schemalocation),
then a list of proxy creation listeners of each and every proxy it sees
while loading an XML file as an EMF model.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
containmentOnly
Only set containment reference values, ignore the rest.
|
| Constructor and Description |
|---|
NotifyingParserPool(boolean containmentOnly)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNamespaceDeclarationListener(INamespaceDeclarationListener listener)
Add a namespace declaration listener to this parser pool's list.
|
void |
addProxyListener(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 |
removeNamespaceDeclarationListener(INamespaceDeclarationListener listener)
Remove a namespace declaration listener from this parser pool's list.
|
void |
removeProxyListener(IProxyCreationListener listener)
Remove a proxy creation listener from this parser pool's list.
|
get, makeParser, release, releaseDefaultHandlerprotected final boolean containmentOnly
public NotifyingParserPool(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(IProxyCreationListener listener)
listener - The listener to add to this pool's list.public void removeProxyListener(IProxyCreationListener listener)
listener - The listener to remove from this pool's list.public void addNamespaceDeclarationListener(INamespaceDeclarationListener listener)
listener - The listener to add to this pool's list.public void removeNamespaceDeclarationListener(INamespaceDeclarationListener listener)
listener - The listener to remove from this pool's list.
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.