Class EventHandlerXmlPartReader
- java.lang.Object
-
- com._1c.g5.v8.dt.import_.xml.reader.AbstractXmlPartReader
-
- com._1c.g5.v8.dt.form.import_.xml.reader.part.EventHandlerXmlPartReader
-
- All Implemented Interfaces:
IXmlPartReader
public class EventHandlerXmlPartReader extends AbstractXmlPartReader
XML part reader for event handlers fromEventHandlerContainer
.Note that, for correct determine host of events it is necessary that the object and its extension information object were connected.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.import_.xml.reader.AbstractXmlPartReader
xmlReadHelper
-
Fields inherited from interface com._1c.g5.v8.dt.import_.xml.reader.IXmlPartReader
XML_PART_READERS
-
-
Constructor Summary
Constructors Constructor Description EventHandlerXmlPartReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addEventHandler(String eventHandlerName, Event event, List<EventHandler> handlers, org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, IXmlNode node, String attributeName, IXmlReadErrorCollector errorCollector)
Creates and adds the event handler for the provided event with the provided name to the collection of already existing handlers.void
read(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, IXmlNode eventNodes, String attributeName, Version version, IXmlReadErrorCollector errorCollector)
Read and convert node named attribute content to value in context-feature.-
Methods inherited from class com._1c.g5.v8.dt.import_.xml.reader.AbstractXmlPartReader
getWrongAttributeValueMessage, getXmlElementRequiredMessage, read, setRefers, setValue
-
-
-
-
Method Detail
-
read
public void read(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, IXmlNode eventNodes, String attributeName, Version version, IXmlReadErrorCollector errorCollector)
Description copied from interface:IXmlPartReader
Read and convert node named attribute content to value in context-feature.- Parameters:
context
- the contextEObject
, cannot benull
feature
- theEStructuralFeature
, cannot benull
eventNodes
- the sourceIXmlNode
, cannot benull
attributeName
- the name of attribute to set as value in model, ornull
to use text from nodeversion
- the version of importing 1C:Enterprise XML files, cannot benull
errorCollector
- theIXmlReadErrorCollector
to add occurred errors
-
addEventHandler
protected void addEventHandler(String eventHandlerName, Event event, List<EventHandler> handlers, org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, IXmlNode node, String attributeName, IXmlReadErrorCollector errorCollector)
Creates and adds the event handler for the provided event with the provided name to the collection of already existing handlers.- Parameters:
eventHandlerName
- the event handler name, cannot benull
event
- the event, cannot benull
handlers
- the collection of already existing handlers, cannot benull
context
- the contextEObject
, cannot benull
feature
- theEStructuralFeature
, cannot benull
node
- the XML node with event handler content, cannot benull
attributeName
- the name of attribute to set as value in model, ornull
to use text from nodeerrorCollector
- theIXmlReadErrorCollector
to collect occurred errors
-
-