Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.sdk.device
Interface IDeviceClasspath

All Superinterfaces:
IPersistable

public interface IDeviceClasspath
extends IPersistable

This interface represents the classpath that is associated to one specific device. The classpath has a list of ILibrary and each ILibrary is associated to a set of APIs. Based on that is is possible to identify all apis thats are support on each device.

Since:
1.0
See Also:
ILibrary, API
Restriction:
This interface is not intended to be implemented by clients.

Method Summary
 void addEntry(ILibrary pathEntry)
          Add a new deviceClasspath entry.
 IClasspathEntry[] asClasspathEntries()
          Return the deviceClasspath as a set of Eclipse JDT deviceClasspath entries.
 File[] asFileArray()
          Return the deviceClasspath as an array of the file entries in the deviceClasspath.
 URL[] asURLArray()
          Return the deviceClasspath as an array of URL's.
 boolean equals(IDeviceClasspath deviceClasspath)
          Test the equality of this class with another deviceClasspath.
 boolean equals(Object obj)
           
 ILibrary[] getEntries()
          Return the entries in the deviceClasspath.
 int hashCode()
           
 void removeEntry(ILibrary library)
          Remove the specified library from the deviceClasspath, if it is in the deviceClasspath.
 String toString()
           Converts the deviceClasspath to a deviceClasspath string with platform-dependent path separator characters.
 
Methods inherited from interface org.eclipse.mtj.core.persistence.IPersistable
loadUsing, storeUsing
 

Method Detail

addEntry

void addEntry(ILibrary pathEntry)
Add a new deviceClasspath entry.

Parameters:
pathEntry -

asClasspathEntries

IClasspathEntry[] asClasspathEntries()
Return the deviceClasspath as a set of Eclipse JDT deviceClasspath entries.

Returns:

asFileArray

File[] asFileArray()
Return the deviceClasspath as an array of the file entries in the deviceClasspath.

Returns:

asURLArray

URL[] asURLArray()
Return the deviceClasspath as an array of URL's.

Returns:

equals

boolean equals(IDeviceClasspath deviceClasspath)
Test the equality of this class with another deviceClasspath.

Parameters:
deviceClasspath -
Returns:

equals

boolean equals(Object obj)
Overrides:
equals in class Object

getEntries

ILibrary[] getEntries()
Return the entries in the deviceClasspath.

Returns:

hashCode

int hashCode()
Overrides:
hashCode in class Object

removeEntry

void removeEntry(ILibrary library)
Remove the specified library from the deviceClasspath, if it is in the deviceClasspath.

Parameters:
library -

toString

String toString()

Converts the deviceClasspath to a deviceClasspath string with platform-dependent path separator characters.

Overrides:
toString in class Object
See Also:
Object.toString()

Mobile Tools for Java
Release 1.0