Interface IXmlReadErrorCollector

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addAllErrorsFrom​(IXmlReadErrorCollector errorCollector)
      Copies all error messages from IXmlReadErrorCollector in this error collector.
      void addError​(String message)
      Adds error message to this error collector.
      void addError​(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, IXmlNode node, String attributeName)
      Adds error to this error collector, that was occurred during value read by the given node path.
      void addError​(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EStructuralFeature feature, Object value, String attributeName, Exception exception)
      Adds error to this error collector, that was occurred during value set to model.
      void addWarning​(String message)
      Adds warning message to this error collector.
      List<String> getErrors()
      Returns the list of error messages.
      List<String> getWarnings()
      Returns the list of warning messages.
      boolean hasErrors()
      Returns true if this collector has one or many error message, false otherwise.
      boolean hasWarnings()
      Returns true if this collector has one or many warnings message, false otherwise.
    • Method Detail

      • addError

        void addError​(org.eclipse.emf.ecore.EObject context,
                      org.eclipse.emf.ecore.EStructuralFeature feature,
                      Object value,
                      String attributeName,
                      Exception exception)
        Adds error to this error collector, that was occurred during value set to model.
        Parameters:
        context - the context EObject, cannot be null
        feature - the referenced EStructuralFeature, cannot be null
        value - the read Object}, can be null
        attributeName - the attribute name, cannot be null
        exception - low-level exception, or null if not applicable
      • addError

        void addError​(org.eclipse.emf.ecore.EObject context,
                      org.eclipse.emf.ecore.EStructuralFeature feature,
                      IXmlNode node,
                      String attributeName)
        Adds error to this error collector, that was occurred during value read by the given node path.
        Parameters:
        context - the context EObject, cannot be null
        feature - the referenced EStructuralFeature, cannot be null
        node - the xml node, cannot be null
        attributeName - the attribute name, can be null if nodePath defines path to text in the given node
      • addError

        void addError​(String message)
        Adds error message to this error collector.
        Parameters:
        message - the error message, cannot be null
      • addWarning

        void addWarning​(String message)
        Adds warning message to this error collector.
        Parameters:
        message - the warning message, cannot be null
      • addAllErrorsFrom

        void addAllErrorsFrom​(IXmlReadErrorCollector errorCollector)
        Copies all error messages from IXmlReadErrorCollector in this error collector.
        Parameters:
        errorCollector - the copy source, cannot be null
      • getErrors

        List<String> getErrors()
        Returns the list of error messages.
        Returns:
        the list of error messages, never null
      • getWarnings

        List<String> getWarnings()
        Returns the list of warning messages.
        Returns:
        the list of warning messages, never null
      • hasErrors

        boolean hasErrors()
        Returns true if this collector has one or many error message, false otherwise.
        Returns:
        true if this collector has one or many error message, false otherwise
      • hasWarnings

        boolean hasWarnings()
        Returns true if this collector has one or many warnings message, false otherwise.
        Returns:
        true if this collector has one or many warnings message, false otherwise