public final class Library extends Object
Library volumes are typed and query-able by their type. The type is represented by type string. Strictly speaking volumes are named rather then typed but the name express their type. The volume is a list of resoruces.
For more details see the overview.
Modifier and Type | Field and Description |
---|---|
static String |
PROP_CONTENT |
static String |
PROP_DESCRIPTION |
static String |
PROP_DISPLAY_NAME
Name of the display name property.
|
static String |
PROP_NAME |
static String |
PROP_PROPERTIES
Name of the properties property.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds PropertyChangeListener
|
boolean |
equals(Object obj) |
List<URL> |
getContent(String volumeType)
Access typed raw library data as URLs.
|
String |
getDescription()
Returns description of the library.
|
String |
getDisplayName()
Returns the display name of the library.
|
LibraryManager |
getManager()
Gets the associated library manager.
|
String |
getName()
Get library binding name.
|
Map<String,String> |
getProperties()
Returns properties associated with this library.
|
String |
getType()
Gets the type of library.
|
List<URI> |
getURIContent(String volumeType)
Access typed raw library data as possibly relative URIs.
|
int |
hashCode() |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes PropertyChangeListener
|
String |
toString() |
public static final String PROP_NAME
public static final String PROP_DESCRIPTION
public static final String PROP_CONTENT
public static final String PROP_DISPLAY_NAME
public static final String PROP_PROPERTIES
public LibraryManager getManager()
public List<URL> getContent(String volumeType)
The contents are defined by SPI providers and identified by the volume types. For example the j2se library supports the following volume types: classpath - the library classpath roots, src - the library sources, javadoc - the library javadoc. Your module must have contract with a particular provider's module to be able to query it effectively.
volumeType
- which resources to return.null
)public List<URI> getURIContent(String volumeType)
The contents are defined by SPI providers and identified by the volume types. For example the j2se library supports the following volume types: classpath - the library classpath roots, src - the library sources, javadoc - the library javadoc. Your module must have contract with a particular provider's module to be able to query it effectively.
volumeType
- which resources to return.null
)@NonNull public Map<String,String> getProperties()
public String getName()
public String getDescription()
public String getDisplayName()
public String getType()
public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- public void removePropertyChangeListener(PropertyChangeListener listener)
listener
-