| 
 | org.netbeans.modules.editor.mimelookup/1 1.3.31 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MimeLookupInitializer
Provides an initialization of MimeLookup on either global or mime-type
  specific level.
  
  The implementations of this class should be registed to default lookup by 
   META-INF/services registration.
  
  Such registered instance serves as a global level initializer
  which can further be asked for children by child(String)
  which will lead to forming of a tree initializers hierarchy.
  
  The contents provided by lookup() of the global-level initializer
  (the one registered in the layer) will automatically appear
  in all the results returned by MimeLookup for any particular mime type.
  
  Once someone asks for a MimeLookup for a specific mime-type
  by using MimeLookup.getMimeLookup(String)
  the global level initializer will be asked for child(String)
  and the lookup() on the returned children
  will define the result data (together with the global-level initializer's lookup).
  
  This process can be arbitrarily nested for embedded mime-types.
  
 
An example implementation of MimeLookupInitializer that works over xml layer file system can be found at mime lookup module implementation LayerMimeLookupInitializer
| Method Summary | |
|---|---|
|  Lookup.Result | child(String mimeType)Retrieves a Lookup.Result of MimeLookupInitializers for the given sub-mimeType. | 
|  Lookup | lookup()Lookup providing mime-type sensitive or global-level data depending on which level this initializer is defined. | 
| Method Detail | 
|---|
Lookup lookup()
Lookup.Result child(String mimeType)
mimeType - mime-type string representation e.g. "text/x-java"
| 
 | org.netbeans.modules.editor.mimelookup/1 1.3.31 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||