Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.project.midp
Interface IApplicationDescriptor


public interface IApplicationDescriptor

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.

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

Method Summary
 void addMidletDefinition(IMidletDefinition midletDefinition)
          Add a new MidletDefinition instance.
 Version getConfigurationSpecificationVersion()
          Return the configuration specification version associated with this JAD file.
 Properties getManifestProperties()
          Return the overall manifest properties.
 int getMidletCount()
          Return the current count of MidletDefinition instances within this application descriptor.
 List<IMidletDefinition> getMidletDefinitions()
          Return the list of MidletDefinition instances currently managed by the ApplicationDescriptor.
 String getMidletJarURL()
          Return the JAD URL specified in the application descriptor or null if it has not been specified.
 void store()
          Store the ApplicationDescriptor instance into the same File from which it was originally read.
 void store(File jadFile)
          Store the ApplicationDescriptor instance into the specified file.
 

Method Detail

addMidletDefinition

void addMidletDefinition(IMidletDefinition midletDefinition)
Add a new MidletDefinition instance.

Parameters:
midletDefinition - the MIDlet definition to be added

getConfigurationSpecificationVersion

Version getConfigurationSpecificationVersion()
                                             throws CoreException
Return the configuration specification version associated with this JAD file.

Returns:
Throws:
CoreException

getManifestProperties

Properties getManifestProperties()
Return the overall manifest properties.

Returns:
the manifest properties.

getMidletCount

int getMidletCount()
Return the current count of MidletDefinition instances within this application descriptor.

Returns:
the number of MidletDefinition instances

getMidletDefinitions

List<IMidletDefinition> getMidletDefinitions()
Return the list of MidletDefinition instances currently managed by the ApplicationDescriptor.

Returns:
a list of MidletDefinition instances

getMidletJarURL

String getMidletJarURL()
Return the JAD URL specified in the application descriptor or null if it has not been specified. This method does not check the validity of the value.

Returns:

store

void store()
           throws IOException
Store the ApplicationDescriptor instance into the same File from which it was originally read.

Throws:
IOException - when an error occurs while storing the descriptor

store

void store(File jadFile)
           throws IOException
Store the ApplicationDescriptor instance into the specified file.

Parameters:
jadFile - the file into which the descriptor will be written
Throws:
IOException - when an error occurs while storing the descriptor

Mobile Tools for Java
Release 1.0