|
Faceted Project Framework Version 1.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRuntimeComponentType
Represents the type of a runtime component. A runtime instance is composed of multiple runtime components, each of which has a type and a version.
This interface is not intended to be implemented outside of this framework. Runtime component
types are declared using org.eclipse.wst.common.project.facet.core.runtimes
extension point. Once declared, client code can get access to IRuntimeComponentType
objects by using methods on the RuntimeManager
class.
RuntimeManager.getRuntimeComponentTypes()
,
RuntimeManager.getRuntimeComponentType(String)
,
RuntimeManager.isRuntimeComponentTypeDefined(String)
Method Summary | |
---|---|
String |
getId()
Returns the runtime component type id. |
IRuntimeComponentVersion |
getLatestVersion()
Returns the latest version of this runtime component as specified by the version comparator. |
String |
getPluginId()
Returns the plugin id of where this runtime component type is defined. |
List<IRuntimeComponentVersion> |
getSortedVersions(boolean ascending)
Returns a sorted list containing all of the versions of this runtime component type. |
IRuntimeComponentVersion |
getVersion(String version)
Returns the IRuntimeComponentVersion object corresponding to the
provided version string. |
Comparator<String> |
getVersionComparator()
Returns the version comparator specified for this runtime component type. |
Set<IRuntimeComponentVersion> |
getVersions()
Returns all of the versions of this runtime component type. |
Set<IRuntimeComponentVersion> |
getVersions(String expr)
|
boolean |
hasVersion(String version)
Determines whether the specified version of this runtime component type exists. |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Method Detail |
---|
String getId()
String getPluginId()
Set<IRuntimeComponentVersion> getVersions()
Set<IRuntimeComponentVersion> getVersions(String expr) throws CoreException
CoreException
boolean hasVersion(String version)
version
- the version string
true
if the specified version exists,
false
otherwiseIRuntimeComponentVersion getVersion(String version)
IRuntimeComponentVersion
object corresponding to the
provided version string.
version
- the version string
IRuntimeComponentVersion
object corresponding to the
provided version string
IllegalArgumentException
- if the version does not existIRuntimeComponentVersion getLatestVersion() throws CoreException
CoreException
List<IRuntimeComponentVersion> getSortedVersions(boolean ascending) throws CoreException
ascending
- whether versions should be sorted in ascending order
CoreException
Comparator<String> getVersionComparator() throws CoreException
DefaultVersionComparator
.
CoreException
|
Faceted Project Framework Version 1.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |