Interface IXmlFileReaderProvider

All Known Implementing Classes:
AdditionalIndexesXmlReaderProvider, AggregatesXmlReaderProvider, ClientApplicationInterfaceXmlReaderProvider, CmiXmlReaderProvider, FormXmlFileReaderProvider, GeographicalSchemaXmlReaderProvider, GraphicalSchemeXmlReaderProvider, HpwaXmlReaderProvider, MdXmlFileReaderProvider, ScheduleXmlReaderProvider, StandaloneContentXmlReaderProvider, StyleXmlReaderProvider

public interface IXmlFileReaderProvider
XML file readers provider. Provides XML file readers for the parsed XML document to object, model object class and 1C:Enterprise runtime version.

XML file reader providers are defined by extensions. Following is an example definition of an XML file reader provider extension:

 <extension point="com._1c.g5.v8.dt.import.xml.xmlFileReaderProviders">
     <readerProvider
           class="com._1c.g5.v8.dt.someModel.import_.xml.reader.SomeModelXmlFileReaderProvider">
     </readerProvider>
 </extension>
 

This interface is intended to be implemented and registered by clients. Instances are not intended to be explicitly used by client. Clients may use IHierarchyImporterContext.getXmlFileReader() instead.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    getReader(Document document, Path path, org.eclipse.emf.ecore.EClass eClass, Version version)
    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.
    boolean
    isAppropriate(Document document, Path path, org.eclipse.emf.ecore.EClass eClass, Version version)
    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.
  • Method Details

    • isAppropriate

      boolean isAppropriate(Document document, Path path, org.eclipse.emf.ecore.EClass eClass, Version version)
      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.
      Parameters:
      document - the XML document parsed from file, cannot be null
      path - the file path 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

      IXmlFileReader getReader(Document document, Path path, org.eclipse.emf.ecore.EClass eClass, Version version)
      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.
      Parameters:
      document - the XML document parsed from file, cannot be null
      path - the file path 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