Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

oracle.ide.log
Interface LogRecognizer


public interface LogRecognizer

The LogRecognizer is used when attempting to create a log page by opening a file in the LogWindow. After the user selects a file in the URLChooser the LogManager cycles through all registered LogRecognizers to find one that recognizes the file and can create itself from the file.


Method Summary
 LogPage create(java.net.URL url, java.lang.Class type)
          Creates an instance of the LogPage associated with the specified URL.
 URLFilter getFilter()
          Gets the URLFilter for the LogRecognizer.
 java.lang.Class recognize(java.net.URL url)
          Gets the Class of the data item associated with the specified URL.
 

Method Detail

recognize

java.lang.Class recognize(java.net.URL url)
Gets the Class of the data item associated with the specified URL. Implementations must return null if the URL is not recognized. The Class returned must be the data model class. This value is passed to the create(URL, Class) method which will create the LogPage

Parameters:
url - unique URL identifying the document.
Returns:
the data Class.

create

LogPage create(java.net.URL url,
               java.lang.Class type)
               throws java.lang.IllegalAccessException,
                      java.lang.InstantiationException
Creates an instance of the LogPage associated with the specified URL. This method is called by the LogManager. This method must return a LogPage instance. The type parameter specifies the Class of the data object.

Parameters:
url - unique URL identifying the document.
type - the data Class.
Returns:
log page
Throws:
java.lang.IllegalAccessException
java.lang.InstantiationException

getFilter

URLFilter getFilter()
Gets the URLFilter for the LogRecognizer. The URLFilter is used to limit what file types can be opened in the LogWindow so the user won't try to open file types that there is no chance of a LogPage displaying.

Returns:
URLFilter the filter of the LogRecognizer

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

Copyright © 1997, 2011, Oracle. All rights reserved.