eclipseme.core.model.impl
Class Configuration

java.lang.Object
  extended byeclipseme.core.model.impl.PlatformComponent
      extended byeclipseme.core.model.impl.Configuration
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, IConfiguration, IPlatformComponent, java.io.Serializable

public class Configuration
extends PlatformComponent
implements IConfiguration

Standard implementation of the IConfiguration 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:
IConfiguration, Serialized Form

Nested Class Summary
static class Configuration.ConfigurationPersistenceDelegate
          Persistence delegation support for Configuration objects.
 
Constructor Summary
Configuration(IWirelessToolkit toolkit, java.lang.String identifier, java.lang.String name, Version version)
          Construct a new configuration.
 
Method Summary
 org.eclipse.jdt.core.IClasspathEntry getLibrary()
          Return the library that provides the implementation of the configuration API or null if no separate library is necessary.
 eclipseme.core.model.registry.IPersistenceDelegate getPersistenceDelegate()
          Get the persistence delegate for this particular platform component.
 java.lang.String getSpecificationVersion()
          Return the version of this configuration as defined by the specification.
 IWirelessToolkit getWirelessToolkit()
          Get the wireless toolkit in which this configuration is defined or null if not defined by a toolkit.
 void setLibrary(org.eclipse.jdt.core.IClasspathEntry entry)
          Set the configuration's API library
 void setSpecificationVersion(java.lang.String specVersion)
          Set the specification version.
 
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.IPlatformComponent
addDependentComponent, getDependentComponents, getIdentifier, getName, getVersion, hasDependentComponents, isDerived, removeDependentComponent
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

Configuration

public Configuration(IWirelessToolkit toolkit,
                     java.lang.String identifier,
                     java.lang.String name,
                     Version version)
Construct a new configuration.

Method Detail

getLibrary

public org.eclipse.jdt.core.IClasspathEntry getLibrary()
Description copied from interface: IConfiguration
Return the library that provides the implementation of the configuration API or null if no separate library is necessary.

Specified by:
getLibrary in interface IConfiguration
Returns:
an IClasspathEntry representing the library or null if there is no specific library for this configuration.
See Also:
IConfiguration.getLibrary()

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()

getSpecificationVersion

public java.lang.String getSpecificationVersion()
Description copied from interface: IConfiguration
Return the version of this configuration as defined by the specification.

Specified by:
getSpecificationVersion in interface IConfiguration
Returns:
the specification version
See Also:
IConfiguration.getSpecificationVersion()

getWirelessToolkit

public IWirelessToolkit getWirelessToolkit()
Description copied from interface: IConfiguration
Get the wireless toolkit in which this configuration is defined or null if not defined by a toolkit.

Specified by:
getWirelessToolkit in interface IConfiguration
Returns:
The wireless toolkit.
See Also:
IConfiguration.getWirelessToolkit()

setLibrary

public void setLibrary(org.eclipse.jdt.core.IClasspathEntry entry)
Set the configuration's API library

Parameters:
entry - the IClasspathEntry of the API library

setSpecificationVersion

public void setSpecificationVersion(java.lang.String specVersion)
Set the specification version.

Parameters:
specVersion - the version