站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

MimeDataProvider (MIME Lookup API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.mimelookup/1 1.6

org.netbeans.spi.editor.mimelookup
Interface MimeDataProvider


public interface MimeDataProvider

Provides a Lookup for the specific MimePath.

The implementations of this interface should be registered among the services in the default lookup, for details look at META-INF/services registration.


Method Summary
 Lookup getLookup(MimePath mimePath)
          Retrieves a Lookup for the given MimePath.
 

Method Detail

getLookup

Lookup getLookup(MimePath mimePath)
Retrieves a Lookup for the given MimePath.

The Lookup returned by this method should hold a reference to the MimePath it was created for.

The implementors should consider caching of the Lookup instances returned by this method for performance reasons. The MimePath object can be used as a stable key for such a cache, because it implements its equals and hashCode method in the suitable way.

Parameters:
mimePath - The mime path to get the Lookup for. The mime path passed in can't be null, but it can be the MimePath.EMPTY mime path.
Returns:
The Lookup for the given MimePath or null if there is no lookup available for this mime path.

org.netbeans.modules.editor.mimelookup/1 1.6

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.