|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Base SPI interface for library. This SPI class is used as a model by the libraries framework. The LibraryTypeProvider implementor should rather use org.netbeans.spi.project.libraries.support.LibrariesSupport.createLibraryImplementation factory method to create default LibraryImplementation than to implement this interface.
Field Summary | |
static String |
PROP_CONTENT
|
static String |
PROP_DESCRIPTION
|
static String |
PROP_NAME
|
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener l)
Adds PropertyChangeListener |
List |
getContent(String volumeType)
Returns List of resources contained in the given volume. |
String |
getDescription()
Get a description of the library. |
String |
getLocalizingBundle()
Returns the resource name of the bundle which is used for localizing the name and description. |
String |
getName()
Returns name of the library |
String |
getType()
Returns type of library, the LibraryTypeProvider creates libraries of given unique type. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes PropertyChangeListener |
void |
setContent(String volumeType,
List path)
Sets content of given volume |
void |
setDescription(String text)
Sets the description of the library, called by LibrariesStorage while reading the library The description is more detailed information about the library. |
void |
setLocalizingBundle(String resourceName)
Sets the localizing bundle. |
void |
setName(String name)
Sets the name of the library, called by LibrariesStorage while reading the library |
Field Detail |
public static final String PROP_NAME
public static final String PROP_DESCRIPTION
public static final String PROP_CONTENT
Method Detail |
public String getType()
public String getName()
public String getDescription()
public String getLocalizingBundle()
public List getContent(String volumeType) throws IllegalArgumentException
volumeType
- the type of volume for which the content should be returned.
IllegalArgumentException
- if the library does not support given type of volumepublic void setName(String name)
name
- - the unique name of the library, can't be null.public void setDescription(String text)
text
- - the description of the library, may be null.public void setLocalizingBundle(String resourceName)
resourceName
- of the bundle without extension, may be null.public void addPropertyChangeListener(PropertyChangeListener l)
l
- - the PropertyChangeListenerpublic void removePropertyChangeListener(PropertyChangeListener l)
l
- - - the PropertyChangeListenerpublic void setContent(String volumeType, List path) throws IllegalArgumentException
volumeType
- the type of volume for which the content should be setpath
- the List<URL> the list of resoruces
IllegalArgumentException
- if the library does not support given volumeType
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |