Interface IXmlReadErrorCollector
-
- All Known Implementing Classes:
ConfigurationXmlReaderResult
,FormXmlReaderResult
,XmlReaderResult
public interface IXmlReadErrorCollector
Error collector interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addAllErrorsFrom(IXmlReadErrorCollector errorCollector)
Copies all error messages fromIXmlReadErrorCollector
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()
Returnstrue
if this collector has one or many error message,false
otherwise.boolean
hasWarnings()
Returnstrue
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 contextEObject
, cannot benull
feature
- the referencedEStructuralFeature
, cannot benull
value
- the readObject
}, can benull
attributeName
- the attribute name, cannot benull
exception
- low-level exception, ornull
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 contextEObject
, cannot benull
feature
- the referencedEStructuralFeature
, cannot benull
node
- the xml node, cannot benull
attributeName
- the attribute name, can benull
ifnodePath
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 benull
-
addWarning
void addWarning(String message)
Adds warning message to this error collector.- Parameters:
message
- the warning message, cannot benull
-
addAllErrorsFrom
void addAllErrorsFrom(IXmlReadErrorCollector errorCollector)
Copies all error messages fromIXmlReadErrorCollector
in this error collector.- Parameters:
errorCollector
- the copy source, cannot benull
-
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()
Returnstrue
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()
Returnstrue
if this collector has one or many warnings message,false
otherwise.- Returns:
true
if this collector has one or many warnings message,false
otherwise
-
-