OSFI-Java
3.9.3
OpenSF Integration Library
|
Classes | |
class | Builder |
class | Event |
Public Member Functions | |
boolean | hasEvents (int minSeverity) |
R | unwrap (final int minThrowSeverity) throws XmlParseException |
R | unwrap () throws XmlParseException |
Public Attributes | |
final String | source |
final R | result |
final List< Event > | loadEvents |
Static Public Attributes | |
static final int | SEV_INFO = 10 |
static final int | SEV_WARNING = 20 |
static final int | SEV_ERROR = 30 |
static final int | SEV_FATAL = 40 |
Immutable type that represents the result of a "load" operation, either from ParamReader loading some configuration file, or raw parsing/validation of an XML file. It encapsulates the actual result together with a list of events of varying severities, e.g. warnings and errors collected during validation.
<R> | Type of the result object |
boolean esa.opensf.osfi.LoadResult< R >.hasEvents | ( | int | minSeverity | ) |
minSeverity | cutoff value, events below this level are not considered. |
R esa.opensf.osfi.LoadResult< R >.unwrap | ( | ) | throws XmlParseException |
Equivalent to calling unwrap(int) with SEV_ERROR.
XmlParseException | if any event with severity equal or higher than the argument exists |
R esa.opensf.osfi.LoadResult< R >.unwrap | ( | final int | minThrowSeverity | ) | throws XmlParseException |
If no events at or above the given severity level exist, return result. Otherwise, throw a XmlParseException with the first such event as its cause.
minThrowSeverity | Events below this level will be ignored in the check. |
XmlParseException | if any event with severity equal or higher than the argument exists |
References esa.opensf.osfi.LoadResult< R >.result.
final List<Event> esa.opensf.osfi.LoadResult< R >.loadEvents |
Events recorded during the process. May be empty but never null.
final R esa.opensf.osfi.LoadResult< R >.result |
Result of the load operation. May be null if errors stopped the process.
|
static |
Partially recoverable problems with the data source that imply a certain loss of data but which do not prevent further processing. For example, a <parameter> element of MATRIX type that contains an invalid number of columns in a row. The parameter itself cannot be parsed and is lost, but the rest of the file can be parsed.
|
static |
Unrecoverable problems with the data source that stop all processing. For example, malformed XML in a configuration file will often prevent further parsing, and no results can be extracted.
|
static |
General reports that do not represent any problem with the data source.
|
static |
Recoverable issues with the data source e.g. a <parameter> element that still stores its data in the deprecated
attribute.
final String esa.opensf.osfi.LoadResult< R >.source |
Data source for the operation, e.g. a file. Never null.