Class CmiXmlReaderProvider

    • Constructor Detail

      • CmiXmlReaderProvider

        public CmiXmlReaderProvider()
    • Method Detail

      • isAppropriate

        public boolean isAppropriate​(Document document,
                                     File file,
                                     org.eclipse.emf.ecore.EClass eClass,
                                     Version version)
        Description copied from interface: IXmlFileReaderProvider
        Returns whether this provider may provide XML file reader for the given parsed XML document to object, model object class and 1C:Enterprise runtime version.
        Specified by:
        isAppropriate in interface IXmlFileReaderProvider
        Parameters:
        document - the XML document parsed from file, cannot be null
        file - the file with XML document, cannot be null
        eClass - the class to read object with, cannot be null
        version - the version of importing 1C:Enterprise XML files, cannot be null
        Returns:
        whether this provider may provide XML file reader
      • getReader

        public IXmlFileReader getReader​(Document document,
                                        File file,
                                        org.eclipse.emf.ecore.EClass eClass,
                                        Version version)
        Description copied from interface: IXmlFileReaderProvider
        Get XML file reader that may read the given parsed XML document to object to the model object of the provided class and the 1C:Enterprise runtime version.
        Specified by:
        getReader in interface IXmlFileReaderProvider
        Parameters:
        document - the XML document parsed from file, cannot be null
        file - the file with XML document, cannot be null
        eClass - the class to read object with, cannot be null
        version - the version of importing 1C:Enterprise XML files, cannot be null
        Returns:
        the XML file reader, never null