|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public java.lang.Class recognize(java.net.URL url)
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
url
- unique URL
identifying the document.
Class
.public LogPage create(java.net.URL url, java.lang.Class type) throws java.lang.IllegalAccessException, java.lang.InstantiationException
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.
url
- unique URL
identifying the document.type
- the data Class
.
java.lang.IllegalAccessException
java.lang.InstantiationException
public URLFilter getFilter()
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.
URLFilter
the filter of the LogRecognizer
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.