public interface LibraryImplementation
LibraryTypeProvider
implementor should rather use
LibrariesSupport.createLibraryImplementation(java.lang.String, java.lang.String[])
factory method to create default LibraryImplementation than to implement this interface.Modifier and Type | Field and Description |
---|---|
static String |
PROP_CONTENT |
static String |
PROP_DESCRIPTION |
static String |
PROP_NAME |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Adds PropertyChangeListener
|
List<URL> |
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<URL> 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
|
static final String PROP_NAME
static final String PROP_DESCRIPTION
static final String PROP_CONTENT
String getType()
String getName()
String getDescription()
String getLocalizingBundle()
List<URL> 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<URL> path) throws IllegalArgumentException
volumeType
- the type of volume for which the content should be setpath
- the list of resource URLsIllegalArgumentException
- if the library does not support given volumeTypeBuilt on June 4 2024. | Copyright © 2017-2024 Apache Software Foundation. All Rights Reserved.