public interface IParserErrorHandler
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IParserErrorHandler.IParseLocation
For now this is an empty interface.
|
| Modifier and Type | Method and Description |
|---|---|
void |
containedResourceWithNoId(IParserErrorHandler.IParseLocation theLocation)
Invoked when a contained resource is parsed that has no ID specified (and is therefore invalid)
|
void |
incorrectJsonType(IParserErrorHandler.IParseLocation theLocation,
String theElementName,
JsonLikeValue.ValueType theExpectedValueType,
JsonLikeValue.ScalarType theExpectedScalarType,
JsonLikeValue.ValueType theFoundValueType,
JsonLikeValue.ScalarType theFoundScalarType)
Invoked if the wrong type of element is found while parsing JSON.
|
void |
invalidValue(IParserErrorHandler.IParseLocation theLocation,
String theValue,
String theError)
The parser detected an atttribute value that was invalid (such as: empty "" values are not permitted)
|
void |
missingRequiredElement(IParserErrorHandler.IParseLocation theLocation,
String theElementName)
Resource was missing a required element
|
void |
unexpectedRepeatingElement(IParserErrorHandler.IParseLocation theLocation,
String theElementName)
Invoked when an element repetition (e.g.
|
void |
unknownAttribute(IParserErrorHandler.IParseLocation theLocation,
String theAttributeName)
Invoked when an unknown element is found in the document.
|
void |
unknownElement(IParserErrorHandler.IParseLocation theLocation,
String theElementName)
Invoked when an unknown element is found in the document.
|
void |
unknownReference(IParserErrorHandler.IParseLocation theLocation,
String theReference)
Resource contained a reference that could not be resolved and needs to be resolvable (e.g.
|
void containedResourceWithNoId(IParserErrorHandler.IParseLocation theLocation)
theLocation - The location in the document. WILL ALWAYS BE NULL currently, as this is not yet implemented, but this parameter is included so that locations can be added in the future without
changing the API.void incorrectJsonType(IParserErrorHandler.IParseLocation theLocation, String theElementName, JsonLikeValue.ValueType theExpectedValueType, JsonLikeValue.ScalarType theExpectedScalarType, JsonLikeValue.ValueType theFoundValueType, JsonLikeValue.ScalarType theFoundScalarType)
theLocation - The location in the document. Note that this may be null as the ParseLocation feature is experimental. Use with caution, as the API may change.theElementName - The name of the element that was found.theExpectedValueType - The datatype that was expected at this locationtheExpectedScalarType - If theExpectedValueType is JsonLikeValue.ValueType.SCALAR, this is the specific scalar type expected. Otherwise this parameter will be null.theFoundValueType - The datatype that was found at this locationtheFoundScalarType - If theFoundValueType is JsonLikeValue.ValueType.SCALAR, this is the specific scalar type found. Otherwise this parameter will be null.void invalidValue(IParserErrorHandler.IParseLocation theLocation, String theValue, String theError)
theLocation - The location in the document. Note that this may be null as the ParseLocation feature is experimental. Use with caution, as the API may change.theValue - The actual valuetheError - A description of why the value was invalidvoid missingRequiredElement(IParserErrorHandler.IParseLocation theLocation, String theElementName)
theLocation - The location in the document. Note that this may be null as the ParseLocation feature is experimental. Use with caution, as the API may change.theReference - The actual invalid reference (e.g. "#3")void unexpectedRepeatingElement(IParserErrorHandler.IParseLocation theLocation, String theElementName)
theLocation - The location in the document. Note that this may be null as the ParseLocation feature is experimental. Use with caution, as the API may change.theElementName - The name of the element that was found.void unknownAttribute(IParserErrorHandler.IParseLocation theLocation, String theAttributeName)
theLocation - The location in the document. Note that this may be null as the ParseLocation feature is experimental. Use with caution, as the API may change.theAttributeName - The name of the attribute that was found.void unknownElement(IParserErrorHandler.IParseLocation theLocation, String theElementName)
theLocation - The location in the document. Note that this may be null as the ParseLocation feature is experimental. Use with caution, as the API may change.theElementName - The name of the element that was found.void unknownReference(IParserErrorHandler.IParseLocation theLocation, String theReference)
theLocation - The location in the document. Note that this may be null as the ParseLocation feature is experimental. Use with caution, as the API may change.theReference - The actual invalid reference (e.g. "#3")Copyright © 2014–2017 University Health Network. All rights reserved.