Class ColorReader

    • Constructor Detail

      • ColorReader

        public ColorReader()
    • 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
      • readColor

        protected Color readColor​(IXmlNode node,
                                  String attributeName,
                                  Version version,
                                  IXmlReadErrorCollector errorCollector)
        Reads color value.
        Parameters:
        node - the color node
        attributeName - the attribute name, cannot be null
        errorCollector - the error collector
        version - the version of importing 1C:Enterprise XML files, cannot be null
        Returns:
        the color or null if empty node text or 'auto'