public interface XMLParserCallback
MdmMetadataProvider.importXML
method produces a metadata object from an XML object definition or as a SyntaxObject.fromSyntax
method produces a SyntaxObject
. An application passes an implementation of this interface to an importXML
or fromSyntax
method. If an error occurs, Oracle OLAP calls a method of the XMLParserCallback
. The method processes the error and returns one of the constants defined by this interface.
An application can also specify an XMLParserCallback
for a UserSession
. The Oracle OLAP server uses that XMLParserCallback
if it gets a metadata object for the application and the metadata object is invalid. The ERROR_BY_EXCEPTION
constant does not apply to an XMLParserCallback
for a UserSession
.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ERROR_BY
A constant that represents the default manner of handling error conditions.
|
static int |
ERROR_BY_EXCEPTION
A constant that directs Oracle OLAP to throw an exception after returning from the callback method.
|
static int |
ERROR_BY_INVALIDATING
A constant that directs Oracle OLAP to mark the property as invalid and to continue parsing.
|
static int |
ERROR_BY_SET_TO_NULL
A constant that directs Oracle OLAP to set the property to
null and to continuing parsing. |
Modifier and Type | Method and Description |
---|---|
int |
processError(java.lang.String objectID, java.lang.String attribute, java.lang.String value)
Processes errors that occur as an
MdmMetadataProvider.importXML method produces a metadata object from an XML object definition or as a SyntaxObject.fromSyntax method produces a SyntaxObject . |
int |
processSyntaxIdentifiersError(java.lang.String value, java.lang.String[] identifiers)
Processes syntax identifier errors that occur as a
SyntaxObject.fromSyntax method produces a SyntaxObject . |
int |
processSyntaxIdentifiersError(java.lang.String objectID, java.lang.String attribute, java.lang.String value, java.lang.String[] identifiers)
Processes syntax identifier errors that occur as a
SyntaxObject.fromSyntax method produces a SyntaxObject . |
static final int DEFAULT_ERROR_BY
static final int ERROR_BY_EXCEPTION
static final int ERROR_BY_SET_TO_NULL
null
and to continuing parsing.static final int ERROR_BY_INVALIDATING
processSyntaxIdentifiersError
methods.int processError(java.lang.String objectID, java.lang.String attribute, java.lang.String value)
MdmMetadataProvider.importXML
method produces a metadata object from an XML object definition or as a SyntaxObject.fromSyntax
method produces a SyntaxObject
.objectID
- A String
that contains the identifier of an object.attribute
- A String
that contains an XML attribute of the object.value
- A String
that contains the value of the attribute.ERROR_BY_INVALIDATING
.int processSyntaxIdentifiersError(java.lang.String objectID, java.lang.String attribute, java.lang.String value, java.lang.String[] identifiers)
SyntaxObject.fromSyntax
method produces a SyntaxObject
.objectID
- A String
that contains the identifier of an object.attribute
- A String
that contains an XML attribute of the object.value
- A String
that contains the syntax expression.identifiers
- An array of String
objects that contain identifiers.int processSyntaxIdentifiersError(java.lang.String value, java.lang.String[] identifiers)
SyntaxObject.fromSyntax
method produces a SyntaxObject
.value
- A String
that contains the syntax expression.identifiers
- An array of String
objects that contain identifiers.