Class XmlReadHelper

    • Constructor Detail

      • XmlReadHelper

        public XmlReadHelper()
    • Method Detail

      • setValue

        public void setValue​(org.eclipse.emf.ecore.EObject context,
                             org.eclipse.emf.ecore.EStructuralFeature feature,
                             Object value,
                             String attributeName,
                             Version version,
                             IXmlReadErrorCollector errorCollector)
        Description copied from interface: IXmlReadHelper
        Set value in the provided feature of the provided object.
        Specified by:
        setValue in interface IXmlReadHelper
        Parameters:
        context - the EObject to set value to, cannot be null
        feature - the EStructuralFeature to set value to, cannot be null
        value - the value to set, can be null
        attributeName - the attribute name, can be null
        version - the version of importing 1C:Enterprise XML files, cannot be null
        errorCollector - the IXmlReadErrorCollector to report error to, cannot be null
      • setUnresolvedReference

        public void setUnresolvedReference​(org.eclipse.emf.ecore.EObject context,
                                           org.eclipse.emf.ecore.EReference feature,
                                           String ref,
                                           String attributeName,
                                           Version version,
                                           IXmlReadErrorCollector errorCollector)
        Description copied from interface: IXmlReadHelper
        Create a proxy object in "unresolved:/" scheme and set in the provided feature of the provided object.
        Specified by:
        setUnresolvedReference in interface IXmlReadHelper
        Parameters:
        context - the EObject to set reference to, cannot be null
        feature - the EStructuralFeature to set reference to, cannot be null
        ref - the reference, cannot be null
        attributeName - the attribute name, can be null
        version - the version of importing 1C:Enterprise XML files, cannot be null
        errorCollector - the IXmlReadErrorCollector to report error to, cannot be null
      • getCollectionValue

        protected Collection<Object> getCollectionValue​(org.eclipse.emf.ecore.EObject context,
                                                        org.eclipse.emf.ecore.EStructuralFeature feature,
                                                        String attributeName,
                                                        Version version,
                                                        IXmlReadErrorCollector errorCollector)
        Get collection value of the provided feature from then context object.
        Parameters:
        object - the EObject to get collection value, cannot be null
        feature - the EStructuralFeature to get collection value, cannot be null
        attributeName - the attribute name, can be null
        version - the version of importing 1C:Enterprise XML files, cannot be null
        errorCollector - the IXmlReadErrorCollector to report error to, cannot be null
        Returns:
        the collection value, never null
      • setSimpleValue

        protected void setSimpleValue​(org.eclipse.emf.ecore.EObject context,
                                      org.eclipse.emf.ecore.EStructuralFeature feature,
                                      Object value,
                                      String attributeName,
                                      Version version,
                                      IXmlReadErrorCollector errorCollector)
        Set simple value to the provided feature of the context object.
        Parameters:
        object - the EObject to set value to, cannot be null
        feature - the EStructuralFeature to set value to, cannot be null
        value - the value to set, can be null
        attributeName - the attribute name, can be null
        version - the version of importing 1C:Enterprise XML files, cannot be null
        errorCollector - the IXmlReadErrorCollector to report error to, cannot be null