Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.sdk.device.midp
Interface IMIDPLibrary

All Superinterfaces:
ILibrary, IPersistable

public interface IMIDPLibrary
extends ILibrary

Represents a library available on IMIDPDevice's.

Since:
1.0
Restriction:
This interface is not intended to be implemented by clients.

Field Summary
 
Fields inherited from interface org.eclipse.mtj.core.persistence.IPersistable
CLASS_PERSISTABLE_ATTRIBUTE, ID_PERSISTABLE_ATTRIBUTE, KEY_PERSISTABLE_ATTRIBUTE, PROPERTY_PERSISTABLE_ELEMENT, REFID_PERSISTABLE_ATTRIBUTE, VALUE_PERSISTABLE_ATTRIBUTE
 
Method Summary
 IMIDPAPI getAPI(MIDPAPIType apiType)
          Return the first IMIDPAPI instance that matches the specified API type.
 IMIDPAPI getConfiguration()
          Return the IMIDPAPI instance that corresponds to a configuration.
 IMIDPAPI getProfile()
          Return the IMIDPAPI instance that corresponds to a profile.
 boolean hasConfiguration()
          Return a boolean indicating whether this library contains a configuration.
 boolean hasProfile()
          Return a boolean indicating whether this library contains a profile.
 
Methods inherited from interface org.eclipse.mtj.core.sdk.device.ILibrary
getAccessRules, getAPIs, getSourceAttachmentPath, getSourceAttachmentRootPath, setAccessRules, setApis, setJavadocURL, setLibraryFile, setSourceAttachmentPath, setSourceAttachmentRootPath, toClasspathEntry, toFile, toURL
 
Methods inherited from interface org.eclipse.mtj.core.persistence.IPersistable
loadUsing, storeUsing
 

Method Detail

getAPI

IMIDPAPI getAPI(MIDPAPIType apiType)
Return the first IMIDPAPI instance that matches the specified API type.

Parameters:
apiType - the type of API to be returned.
Returns:
the first IMIDPAPI instance that matches the specified API type or null if none can be found.

getConfiguration

IMIDPAPI getConfiguration()
Return the IMIDPAPI instance that corresponds to a configuration.

Returns:
the profile IMIDPAPI instance or null if this library does not provide a configuration.

getProfile

IMIDPAPI getProfile()
Return the IMIDPAPI instance that corresponds to a profile.

Returns:
the profile IMIDPAPI instance or null if this library does not provide a profile.

hasConfiguration

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

Returns:
true if this library contains a configuration or false otherwise.

hasProfile

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

Returns:
true if this library contains a profile or false otherwise.

Mobile Tools for Java
Release 1.0