Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.model.project
Class MetaData

java.lang.Object
  extended by org.eclipse.mtj.core.model.project.MetaData

public class MetaData
extends Object

This class holds the metadata for the MIDlet suite project. This information is persisted to a file called ".mtj" in the project's root directory.

Note: This class/interface is part of an interim API that is still under development and expected to change before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken as the API evolves.


Field Summary
static String METADATA_FILE
          The metadata file name for the MIDlet project
 
Constructor Summary
MetaData(IProject project)
          Construct a new metadata object for the MIDlet suite project.
 
Method Summary
 Configurations getConfigurations()
           
 IDevice getDevice()
          Return the device stored in the project metadata.
 String getJadFileName()
          Return the name that must be used on the project's jad file after deployment as specified in the project's metadata file.
 ISignatureProperties getSignatureProperties()
           
 Version getVersion()
           
 void saveMetaData()
          Attempt to save the metadata.
 void saveMetaDataToFile(IFile storeFile)
          Save the metadata to the storage file.
 void setConfigurations(Configurations configurations)
           
 void setDevice(IDevice device)
          Set the device stored in the project metadata.
 void setJadFileName(String jadFileName)
          Set the name that must be used on the project's jad file after deployment
 void setSignatureProperties(ISignatureProperties p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

METADATA_FILE

public static final String METADATA_FILE
The metadata file name for the MIDlet project

See Also:
Constant Field Values
Constructor Detail

MetaData

public MetaData(IProject project)
Construct a new metadata object for the MIDlet suite project.

Parameters:
suite -
Method Detail

getConfigurations

public Configurations getConfigurations()

getDevice

public IDevice getDevice()
Return the device stored in the project metadata.

Returns:

getJadFileName

public String getJadFileName()
Return the name that must be used on the project's jad file after deployment as specified in the project's metadata file.

Returns:

getSignatureProperties

public ISignatureProperties getSignatureProperties()
                                            throws CoreException
Throws:
CoreException

getVersion

public Version getVersion()
Returns:
Returns the version.

saveMetaData

public void saveMetaData()
                  throws CoreException
Attempt to save the metadata. This has the potential to fail.

Throws:
CoreException

saveMetaDataToFile

public void saveMetaDataToFile(IFile storeFile)
                        throws CoreException
Save the metadata to the storage file. This file is expected to be non-null.

Parameters:
storeFile -
Throws:
CoreException

setConfigurations

public void setConfigurations(Configurations configurations)

setDevice

public void setDevice(IDevice device)
Set the device stored in the project metadata.

Parameters:
device -

setJadFileName

public void setJadFileName(String jadFileName)
Set the name that must be used on the project's jad file after deployment

Parameters:
jadFileName - the jad file name

setSignatureProperties

public void setSignatureProperties(ISignatureProperties p)

Mobile Tools for Java
Release 1.0