public class NameVersionDescriptor extends Object
Modifier and Type | Field and Description |
---|---|
static String |
TYPE_FEATURE |
static String |
TYPE_PACKAGE |
static String |
TYPE_PLUGIN |
Constructor and Description |
---|
NameVersionDescriptor(String id,
String version)
Constructs a descriptor with a type of 'plugin'
If the passed string version is equal to
BundleInfo.EMPTY_VERSION ,
the version will be replaced with null . |
NameVersionDescriptor(String id,
String version,
String type)
Constructs a descriptor of the given type
If the passed string version is equal to
BundleInfo.EMPTY_VERSION ,
the version will be replaced with null . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static NameVersionDescriptor |
fromPortableString(String portable)
Creates a descriptor from a portable string.
|
String |
getId() |
String |
getType() |
String |
getVersion() |
int |
hashCode() |
String |
toPortableString()
Returns a portable form for this descriptor.
|
String |
toString() |
public static final String TYPE_PLUGIN
public static final String TYPE_FEATURE
public static final String TYPE_PACKAGE
public NameVersionDescriptor(String id, String version)
If the passed string version is equal to BundleInfo.EMPTY_VERSION
,
the version will be replaced with null
.
id
- name identifierversion
- version identifier, can be null
public NameVersionDescriptor(String id, String version, String type)
If the passed string version is equal to BundleInfo.EMPTY_VERSION
,
the version will be replaced with null
.
id
- name identifierversion
- version identifier, can be null
type
- type of object this descriptor represents, should be one of the TYPE constants defined in this filepublic String getId()
public String getVersion()
public String getType()
public static NameVersionDescriptor fromPortableString(String portable)
portable
- generated from toPortableString()
public String toPortableString()
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.