Class BaseValueXmlPartReader

    • Constructor Detail

      • BaseValueXmlPartReader

        public BaseValueXmlPartReader()
    • 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
      • readValue

        protected Value readValue​(IXmlNode node,
                                  String typePrefix,
                                  String type,
                                  Version version,
                                  IXmlReadErrorCollector errorCollector)
        Read Value from XML node with specifed prefix:type and Version
        Parameters:
        node - the source IXmlNode, cannot be null
        typePrefix - the xml type prefix of read value, cannot be null
        type - the type of read value, cannot be null
        version - the version of importing 1C:Enterprise XML files, cannot be null
        errorCollector - IXmlReadErrorCollector in which will be added error if it occur, cannot be null
        Returns:
        read value or null specifed value type not support