@ParametersAreNonnullByDefault public class EcoreMapper extends AbstractProcessor
Processor
that transforms simple elements to an EMF structure.Constructor and Description |
---|
EcoreMapper() |
Modifier and Type | Method and Description |
---|---|
void |
onAttribute(ProxyAttribute attribute)
Handles an attribute in the current element.
|
void |
onEndElement()
Handles the end of the current element.
|
void |
onReference(ProxyReference reference)
Handles a reference from the current element to another.
|
void |
onStartElement(ProxyElement element)
Handles the start of an element.
|
onComplete, onInitialize
addNext, addNext, notifyAttribute, notifyComplete, notifyEndElement, notifyInitialize, notifyReference, notifyStartElement, supportsMultiTargets
public void onStartElement(ProxyElement element) throws IOException
Handler
onStartElement
in interface Handler
onStartElement
in class AbstractProcessor
element
- the element of the new elementIOException
Handler.onEndElement()
,
Notifier.notifyStartElement(ProxyElement)
public void onAttribute(ProxyAttribute attribute) throws IOException
Handler
onAttribute
in interface Handler
onAttribute
in class AbstractProcessor
attribute
- the new attributeIOException
Handler.onStartElement(ProxyElement)
,
Notifier.notifyAttribute(ProxyAttribute)
public void onReference(ProxyReference reference) throws IOException
Handler
onReference
in interface Handler
onReference
in class AbstractProcessor
reference
- the new referenceIOException
Handler.onStartElement(ProxyElement)
,
Notifier.notifyReference(ProxyReference)
public void onEndElement() throws IOException
Handler
onEndElement
in interface Handler
onEndElement
in class AbstractProcessor
IOException
Handler.onStartElement(ProxyElement)
,
Notifier.notifyEndElement()
Copyright © 2013–2019 Atlanmod. All rights reserved.