|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ILibrary
Represents a library in the device's classpath. A library is capable of providing further metadata about that specified jar file.
EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is no guarantee that this API will work or that it will remain the same. Please do not use this API without consulting with the MTJ team.
| Method Summary | |
|---|---|
API |
getAPI(APIType apiType)
Return the first API with a type matching the specified API type or null if none can be found. |
API[] |
getAPIs()
Return the APIs associated with this library instance. |
API |
getConfiguration()
Return the configuration API or null if this library does
not provide a configuration. |
API |
getProfile()
Return the profile API or null if this library does not
provide a configuration. |
boolean |
hasConfiguration()
Return a boolean indicating whether this library contains a configuration. |
boolean |
hasProfile()
Return a boolean indicating whether this library contains a profile. |
void |
setAccessRules(IAccessRule[] accessRules)
Set the access rules for this library. |
void |
setApis(API[] apis)
|
void |
setJavadocURL(URL javadocURL)
|
void |
setLibraryFile(File libraryFile)
Sets the file that makes up this library. |
void |
setSourceAttachmentPath(IPath sourceAttachmentPath)
|
void |
setSourceAttachmentRootPath(IPath sourceAttachmentRootPath)
|
IClasspathEntry |
toClasspathEntry()
Return the library as an instance of IClasspathEntry. |
File |
toFile()
Return the library as an instance of java.io.File. |
URL |
toURL()
Return the library as an instance of java.net.URL. |
| Methods inherited from interface org.eclipse.mtj.core.persistence.IPersistable |
|---|
loadUsing, storeUsing |
| Method Detail |
|---|
API[] getAPIs()
API getAPI(APIType apiType)
null if none can be found.
apiType -
API getConfiguration()
null if this library does
not provide a configuration.
API getProfile()
null if this library does not
provide a configuration.
boolean hasConfiguration()
boolean hasProfile()
IClasspathEntry toClasspathEntry()
File toFile()
URL toURL()
void setAccessRules(IAccessRule[] accessRules)
accessRules - void setApis(API[] apis)
api - The apis to set.void setJavadocURL(URL javadocURL)
javadocURL - The javadocURL to set.void setLibraryFile(File libraryFile)
libraryFile - The libraryFile to set.void setSourceAttachmentPath(IPath sourceAttachmentPath)
sourceAttachmentPath - The sourceAttachmentPath to set.void setSourceAttachmentRootPath(IPath sourceAttachmentRootPath)
sourceAttachmentRootPath - The sourceAttachmentRootPath to set.
|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||