|
org.netbeans.modules.project.libraries/1 1.36 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.api.project.libraries.Library
public final class Library
Library models typed bundle of typed volumes.
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.
| Field Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Method Detail |
|---|
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 boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic void addPropertyChangeListener(PropertyChangeListener listener)
listener - public void removePropertyChangeListener(PropertyChangeListener listener)
listener - public String toString()
toString in class Object
|
org.netbeans.modules.project.libraries/1 1.36 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||