Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.model.library
Interface ILibrary

All Superinterfaces:
IPersistable
All Known Implementing Classes:
Library

public interface ILibrary
extends IPersistable

Represents a library in the device's classpath. A library is capable of providing further metadata about that specified jar file.


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.
 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

getAPIs

API[] getAPIs()
Return the APIs associated with this library instance.

Returns:

getAPI

API getAPI(APIType apiType)
Return the first API with a type matching the specified API type or null if none can be found.

Parameters:
apiType -
Returns:

getConfiguration

API getConfiguration()
Return the configuration API or null if this library does not provide a configuration.

Returns:

getProfile

API getProfile()
Return the profile API or null if this library does not provide a configuration.

Returns:

hasConfiguration

boolean hasConfiguration()
Return a boolean indicating whether this library contains a configuration.

Returns:

hasProfile

boolean hasProfile()
Return a boolean indicating whether this library contains a profile.

Returns:

toClasspathEntry

IClasspathEntry toClasspathEntry()
Return the library as an instance of IClasspathEntry.

Returns:

toFile

File toFile()
Return the library as an instance of java.io.File.

Returns:

toURL

URL toURL()
Return the library as an instance of java.net.URL.

Returns:

Mobile Tools for Java
Release 1.0