L
- the LibraryImplementation
typepublic interface WritableLibraryProvider<L extends LibraryImplementation> extends LibraryProvider<L>
PROP_LIBRARIES
Modifier and Type | Method and Description |
---|---|
boolean |
addLibrary(L library)
Adds a new library.
|
boolean |
removeLibrary(L library)
Removes a library.
|
boolean |
updateLibrary(L oldLibrary,
L newLibrary)
Updates a library.
|
addPropertyChangeListener, getLibraries, removePropertyChangeListener
boolean addLibrary(L library) throws IOException
library
- the library to be addedWritableLibraryProvider
supports given libraryIOException
- in case of IO errorboolean removeLibrary(L library) throws IOException
library
- the library to be removedWritableLibraryProvider
owned the library and
the library was successfully removedIOException
- in case of IO errorboolean updateLibrary(L oldLibrary, L newLibrary) throws IOException
oldLibrary
- the library to be updatednewLibrary
- the updated library prototypeWritableLibraryProvider
owned the library and
the library was successfully updatedIOException
- in case of IO error