Class MdXmlFileReaderProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.md.import_.xml.reader.MdXmlFileReaderProvider
-
- All Implemented Interfaces:
IXmlFileReaderProvider
public class MdXmlFileReaderProvider extends Object implements IXmlFileReaderProvider
Implementation ofIXmlFileReaderProvider
for metadata objects.
-
-
Field Summary
Fields Modifier and Type Field Description static String
MD_XML_FILE_READERS
Metadata readers map Guice naming key.
-
Constructor Summary
Constructors Constructor Description MdXmlFileReaderProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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.
-
-
-
Field Detail
-
MD_XML_FILE_READERS
public static final String MD_XML_FILE_READERS
Metadata readers map Guice naming key.- See Also:
- Constant Field Values
-
-
Method Detail
-
isAppropriate
public boolean isAppropriate(Document document, Path path, 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 interfaceIXmlFileReaderProvider
- Parameters:
document
- the XML document parsed fromfile
, cannot benull
path
- the file path with XML document, cannot benull
eClass
- the class to read object with, cannot benull
version
- the version of importing 1C:Enterprise XML files, cannot benull
- Returns:
- whether this provider may provide XML file reader
-
getReader
public IXmlFileReader getReader(Document document, Path path, 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 interfaceIXmlFileReaderProvider
- Parameters:
document
- the XML document parsed fromfile
, cannot benull
path
- the file path with XML document, cannot benull
eClass
- the class to read object with, cannot benull
version
- the version of importing 1C:Enterprise XML files, cannot benull
- Returns:
- the XML file reader, never
null
-
-