|
org.netbeans.modules.project.libraries/1 1.13.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LibraryImplementation
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 |
---|
static final String PROP_NAME
static final String PROP_DESCRIPTION
static final String PROP_CONTENT
Method Detail |
---|
String getType()
String getName()
String getDescription()
String getLocalizingBundle()
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 volumevoid setName(String name)
name
- - the unique name of the library, can't be null.void setDescription(String text)
text
- - the description of the library, may be null.void setLocalizingBundle(String resourceName)
resourceName
- of the bundle without extension, may be null.void addPropertyChangeListener(PropertyChangeListener l)
l
- - the PropertyChangeListenervoid removePropertyChangeListener(PropertyChangeListener l)
l
- - - the PropertyChangeListenervoid 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
|
org.netbeans.modules.project.libraries/1 1.13.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |