Class AbstractMdXmlPartReader

    • Constructor Detail

      • AbstractMdXmlPartReader

        public AbstractMdXmlPartReader()
    • Method Detail

      • read

        public void read​(org.eclipse.emf.ecore.EObject context,
                         org.eclipse.emf.ecore.EStructuralFeature feature,
                         IXmlNode node,
                         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 context EObject, cannot be null
        feature - the EStructuralFeature, cannot be null
        node - the source IXmlNode, cannot be null
        attributeName - the name of attribute to set as value in model, or null to use text from node
        version - the version of importing 1C:Enterprise XML files, cannot be null
        errorCollector - the IXmlReadErrorCollector to add occurred errors
      • readContains

        protected abstract void readContains​(org.eclipse.emf.ecore.EObject context,
                                             org.eclipse.emf.ecore.EStructuralFeature feature,
                                             IXmlNode node,
                                             String attributeName,
                                             Version version,
                                             IXmlReadErrorCollector errorCollector)
        Read and convert node named attribute content to value in context-feature.
        Parameters:
        context - the context EObject, cannot be null
        feature - the containment EStructuralFeature, cannot be null
        node - the source IXmlNode, cannot be null
        attributeName - the name of attribute to set as value in model, or null to use text from node
        version - the version of importing 1C:Enterprise XML files, cannot be null
        errorCollector - the IXmlReadErrorCollector to add occurred errors
      • readReference

        protected void readReference​(org.eclipse.emf.ecore.EObject context,
                                     org.eclipse.emf.ecore.EStructuralFeature feature,
                                     IXmlNode node,
                                     String attributeName,
                                     Version version,
                                     IXmlReadErrorCollector errorCollector)
        Read and convert node named attribute content to value in context-feature.
        Parameters:
        context - the context EObject, cannot be null
        feature - the reference EStructuralFeature, cannot be null
        node - the source IXmlNode, cannot be null
        attributeName - the name of attribute to set as value in model, or null to use text from node
        version - the version of importing 1C:Enterprise XML files, cannot be null
        errorCollector - the IXmlReadErrorCollector to add occurred errors
      • readMdObject

        protected void readMdObject​(IXmlNode node,
                                    MdObject mdObject,
                                    Version version,
                                    IXmlReadErrorCollector errorCollector)
        Read node to target metadata object
        Parameters:
        node - the source IXmlNode, cannot be null
        mdObject - target object to fill from xml, cannot be null
        version - the version of importing 1C:Enterprise XML files, cannot be null
        errorCollector - the IXmlReadErrorCollector to add occurred errors, cannot be null
      • readBasicDbObject

        protected void readBasicDbObject​(IXmlNode node,
                                         BasicDbObject dbObject,
                                         Version version,
                                         IXmlReadErrorCollector errorCollector)
        Read node to target metadata basic db object
        Parameters:
        node - the source IXmlNode, cannot be null
        dbObject - target object to fill from xml, cannot be null
        version - the version of importing 1C:Enterprise XML files, cannot be null
        errorCollector - the IXmlReadErrorCollector to add occurred errors, cannot be null
      • readBasicFeature

        protected void readBasicFeature​(IXmlNode node,
                                        BasicFeature basicFeature,
                                        Version version,
                                        IXmlReadErrorCollector errorCollector)
        Read node to target metadata basic feature object
        Parameters:
        node - the source IXmlNode, cannot be null
        basicFeature - target object to fill from xml, cannot be null
        version - the version of importing 1C:Enterprise XML files, cannot be null
        errorCollector - the IXmlReadErrorCollector to add occurred errors, cannot be null
      • readBasicForm

        protected void readBasicForm​(IXmlNode node,
                                     BasicForm form,
                                     Version version,
                                     IXmlReadErrorCollector errorCollector)
        Read node to target metadata basic form object
        Parameters:
        node - the source IXmlNode, cannot be null
        form - target object to fill from xml, cannot be null
        version - the version of importing 1C:Enterprise XML files, cannot be null
        errorCollector - the IXmlReadErrorCollector to add occurred errors, cannot be null