eclipseme.core.model.impl
Class PlatformDefinition

java.lang.Object
  extended byeclipseme.core.model.impl.PlatformComponent
      extended byeclipseme.core.model.impl.PlatformDefinition
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, IPlatformComponent, IPlatformDefinition, java.io.Serializable
Direct Known Subclasses:
UnspecifiedPlatformDefinition

public class PlatformDefinition
extends PlatformComponent
implements IPlatformDefinition

Standard implementation of the IPlatformDefinition interface.

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.

Copyright (c) 2003-2005 Craig Setera
All Rights Reserved.
Licensed under the Eclipse Public License - v 1.0


$Revision: 1.5 $
$Date: 2005/07/07 02:36:57 $

Author:
Craig Setera
See Also:
Serialized Form

Nested Class Summary
static class PlatformDefinition.PlatformDefinitionPersistenceDelegate
          Persistence delegation support for PlatformDefinition objects.
 
Constructor Summary
PlatformDefinition(IWirelessToolkit toolkit, java.lang.String identifier, java.lang.String name, java.io.File root, IEmulator emulator, IPreverifier preverifier, IConfiguration configuration)
          Construct a new platform definition.
 
Method Summary
 void addProfile(IProfile profile)
          Add a new profile to this platform definition.
 void addProfiles(IProfile[] profiles)
          Add the array of new profiles to this platform definition.
static org.eclipse.jdt.core.IClasspathEntry[] getClasspathEntriesForPlatform(IPlatformDefinition platform)
          Return the classpath entries for the specified platformm.
 IConfiguration getConfiguration()
          Return the configuration that defines the base for this platform.
 IEmulator getEmulator()
          Get the emulator that is used to emulate devices for this platform definition.
 eclipseme.core.model.registry.IPersistenceDelegate getPersistenceDelegate()
          Get the persistence delegate for this particular platform component.
 IPreverifier getPreverifier()
          Return the preverifier to be used to preverify classes for this platform definition.
 IProfile[] getProfiles()
          Return all of the profiles that are part of this platform.
 java.io.File getRoot()
          Get the current file system root in which this platform definition is stored.
 IWirelessToolkit getWirelessToolkit()
          Return the wireless toolkit that defines the base configuration and profile.
 
Methods inherited from class eclipseme.core.model.impl.PlatformComponent
addDependentComponent, getAdapter, getDependentComponents, getIdentifier, getName, getVersion, hasDependentComponents, isDerived, removeDependentComponent, setDerived
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eclipseme.core.model.IPlatformDefinition
getName
 
Methods inherited from interface eclipseme.core.model.IPlatformComponent
addDependentComponent, getDependentComponents, getIdentifier, getVersion, hasDependentComponents, isDerived, removeDependentComponent
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

PlatformDefinition

public PlatformDefinition(IWirelessToolkit toolkit,
                          java.lang.String identifier,
                          java.lang.String name,
                          java.io.File root,
                          IEmulator emulator,
                          IPreverifier preverifier,
                          IConfiguration configuration)
Construct a new platform definition.

Parameters:
name -
toolkit -
root -
emulator -
preverifier -
configuration -
Method Detail

addProfile

public void addProfile(IProfile profile)
Add a new profile to this platform definition.

Parameters:
profile - the profile to add to the platform

addProfiles

public void addProfiles(IProfile[] profiles)
Add the array of new profiles to this platform definition.

Parameters:
profiles - the profiles to add to the platform

getConfiguration

public IConfiguration getConfiguration()
Description copied from interface: IPlatformDefinition
Return the configuration that defines the base for this platform.

Specified by:
getConfiguration in interface IPlatformDefinition
Returns:
the platform's configuration
See Also:
IPlatformDefinition.getConfiguration()

getEmulator

public IEmulator getEmulator()
Description copied from interface: IPlatformDefinition
Get the emulator that is used to emulate devices for this platform definition.

Specified by:
getEmulator in interface IPlatformDefinition
Returns:
the platform's emulator
See Also:
IPlatformDefinition.getEmulator()

getPersistenceDelegate

public eclipseme.core.model.registry.IPersistenceDelegate getPersistenceDelegate()
Description copied from interface: IPlatformComponent
Get the persistence delegate for this particular platform component.

Specified by:
getPersistenceDelegate in interface IPlatformComponent
Returns:
a persistence delegate for this component
See Also:
IPlatformComponent.getPersistenceDelegate()

getPreverifier

public IPreverifier getPreverifier()
Description copied from interface: IPlatformDefinition
Return the preverifier to be used to preverify classes for this platform definition.

Specified by:
getPreverifier in interface IPlatformDefinition
Returns:
the platform's preverifier
See Also:
IPlatformDefinition.getPreverifier()

getProfiles

public IProfile[] getProfiles()
Description copied from interface: IPlatformDefinition
Return all of the profiles that are part of this platform.

Specified by:
getProfiles in interface IPlatformDefinition
Returns:
the profiles that make up this platform
See Also:
IPlatformDefinition.getProfiles()

getRoot

public java.io.File getRoot()
Description copied from interface: IPlatformDefinition
Get the current file system root in which this platform definition is stored.

Specified by:
getRoot in interface IPlatformDefinition
Returns:
The File instance representing the directory in which the platform definition is installed.
See Also:
IPlatformDefinition.getRoot()

getWirelessToolkit

public IWirelessToolkit getWirelessToolkit()
Description copied from interface: IPlatformDefinition
Return the wireless toolkit that defines the base configuration and profile.

Specified by:
getWirelessToolkit in interface IPlatformDefinition
Returns:
the wireless toolkit that defines and interprets this platform
See Also:
IPlatformDefinition.getWirelessToolkit()

getClasspathEntriesForPlatform

public static org.eclipse.jdt.core.IClasspathEntry[] getClasspathEntriesForPlatform(IPlatformDefinition platform)
Return the classpath entries for the specified platformm.

Parameters:
platform - the platform to be queried
Returns:
the array of IClasspathEntry instances associated with the specific platform