Oracle Content Management SDK

oracle.ifs.beans.parsers
Interface ParserCallback


Deprecated. iFS 9.0.3 see release notes for more information

public interface ParserCallback

A ParserCallback allows an application to interact with a Parser.

If a ParserCallback is specified in calling Parser.parse, the Parser will invoke ParserCallback methods as parsing is performed, allowing limited well-defined interaction between the application and the Parser.


Method Summary
 void postOperation(LibraryObject libobj)
          Deprecated. Invoked immediately after performing an operation on a LibraryObject.
 LibraryObjectDefinition preOperation(LibraryObject libobj, LibraryObjectDefinition lodef)
          Deprecated. Invoked immediately prior to performing an operation on a LibraryObject.
 void signalException(IfsException exception)
          Deprecated. Signals a parsing-related exception.
 

Method Detail


preOperation

public LibraryObjectDefinition preOperation(LibraryObject libobj,
                                            LibraryObjectDefinition lodef)
                                     throws IfsException
Deprecated. 
Invoked immediately prior to performing an operation on a LibraryObject.
Parameters:
libobj - the LibraryObject on which the operation will be performed; null if the operation will create a new LibraryObject
lodef - the operation proposed by the Parser
Returns:
the operation mandated by the application. To accept the operation proposed by the Parser, simply return def. To specify a different operation, either return an altered def or construct and return a different definition. Return null to cancel the operation altogether.
Throws:
IfsException - if the operation fails; this will abort parsing

postOperation

public void postOperation(LibraryObject libobj)
                   throws IfsException
Deprecated. 
Invoked immediately after performing an operation on a LibraryObject.
Parameters:
libobj - the LibraryObject
Throws:
IfsException - if the operation fails; this will abort parsing

signalException

public void signalException(IfsException exception)
                     throws IfsException
Deprecated. 
Signals a parsing-related exception.

The ParserCallback implementation can either throw the exception, or simply return, in which case parsing continues.

Parameters:
exception - the potential exception
Throws:
IfsException - this will abort parsing

Oracle Content Management SDK

(c) 2002 Copyright Oracle Corporation. All rights reserved.