|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mtj.core.model.library.impl.Library
public class Library
A library is a wrapper around a classpath item that attempts to provide further metadata about that library.
| Constructor Summary | |
|---|---|
Library()
Construct a new library. |
|
| Method Summary | |
|---|---|
boolean |
equals(Library library)
Test the equality of this library as compared to the specified library. |
boolean |
equals(Object obj)
|
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. |
URL |
getJavadocURL()
|
File |
getLibraryFile()
Return the file that makes up this library. |
API |
getProfile()
Return the profile API or null if this library does not
provide a configuration. |
IPath |
getSourceAttachmentPath()
|
IPath |
getSourceAttachmentRootPath()
|
boolean |
hasConfiguration()
Return a boolean indicating whether this library contains a configuration. |
int |
hashCode()
|
boolean |
hasProfile()
Return a boolean indicating whether this library contains a profile. |
void |
loadUsing(IPersistenceProvider persistenceProvider)
Load the state of this object using the specified persistence state information. |
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)
|
void |
storeUsing(IPersistenceProvider persistenceProvider)
Save the state of this object using the specified persistence state information. |
IClasspathEntry |
toClasspathEntry()
Return the library as an instance of IClasspathEntry. |
File |
toFile()
Return the library as an instance of java.io.File. |
String |
toString()
|
URL |
toURL()
Return the library as an instance of java.net.URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Library()
| Method Detail |
|---|
public boolean equals(Library library)
library -
public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public API getAPI(APIType apiType)
ILibrarynull if none can be found.
getAPI in interface ILibraryorg.eclipse.mtj.core.model.library.ILibrary#getAPI(int)public API[] getAPIs()
ILibrary
getAPIs in interface ILibraryILibrary.getAPIs()public API getConfiguration()
ILibrarynull if this library does
not provide a configuration.
getConfiguration in interface ILibraryILibrary.getConfiguration()public URL getJavadocURL()
public File getLibraryFile()
public API getProfile()
ILibrarynull if this library does not
provide a configuration.
getProfile in interface ILibraryILibrary.getProfile()public IPath getSourceAttachmentPath()
public IPath getSourceAttachmentRootPath()
public boolean hasConfiguration()
ILibrary
hasConfiguration in interface ILibraryILibrary.hasConfiguration()public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean hasProfile()
ILibrary
hasProfile in interface ILibraryILibrary.hasProfile()
public void loadUsing(IPersistenceProvider persistenceProvider)
throws PersistenceException
IPersistable
loadUsing in interface IPersistablePersistenceExceptionIPersistable.loadUsing(org.eclipse.mtj.core.persistence.IPersistenceProvider)public void setAccessRules(IAccessRule[] accessRules)
accessRules - public void setApis(API[] apis)
api - The apis to set.public void setJavadocURL(URL javadocURL)
javadocURL - The javadocURL to set.public void setLibraryFile(File libraryFile)
libraryFile - The libraryFile to set.public void setSourceAttachmentPath(IPath sourceAttachmentPath)
sourceAttachmentPath - The sourceAttachmentPath to set.public void setSourceAttachmentRootPath(IPath sourceAttachmentRootPath)
sourceAttachmentRootPath - The sourceAttachmentRootPath to set.
public void storeUsing(IPersistenceProvider persistenceProvider)
throws PersistenceException
IPersistable
storeUsing in interface IPersistablePersistenceExceptionIPersistable.storeUsing(org.eclipse.mtj.core.persistence.IPersistenceProvider)public IClasspathEntry toClasspathEntry()
ILibrary
toClasspathEntry in interface ILibraryILibrary.toClasspathEntry()public File toFile()
ILibrary
toFile in interface ILibraryILibrary.toFile()public String toString()
toString in class ObjectObject.toString()public URL toURL()
ILibrary
toURL in interface ILibraryILibrary.toURL()
|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||