Package org.eclipse.pde.core.target
Class NameVersionDescriptor
java.lang.Object
org.eclipse.pde.core.target.NameVersionDescriptor
Describes something with a name and version.
- Since:
- 3.8
- Restriction:
- This class is not intended to be subclassed by clients.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionNameVersionDescriptor
(String id, String version) Constructs a descriptor with a type of 'plugin'NameVersionDescriptor
(String id, String version, String type) Constructs a descriptor of the given type -
Method Summary
Modifier and TypeMethodDescriptionboolean
static NameVersionDescriptor
fromPortableString
(String portable) Creates a descriptor from a portable string.getId()
getType()
int
hashCode()
Returns a portable form for this descriptor.toString()
-
Field Details
-
TYPE_PLUGIN
- See Also:
-
TYPE_FEATURE
- See Also:
-
TYPE_PACKAGE
- See Also:
-
-
Constructor Details
-
NameVersionDescriptor
Constructs a descriptor with a type of 'plugin'If the passed string version is equal to
BundleInfo.EMPTY_VERSION
, the version will be replaced withnull
.- Parameters:
id
- name identifierversion
- version identifier, can benull
-
NameVersionDescriptor
Constructs a descriptor of the given typeIf the passed string version is equal to
BundleInfo.EMPTY_VERSION
, the version will be replaced withnull
.- Parameters:
id
- name identifierversion
- version identifier, can benull
type
- type of object this descriptor represents, should be one of the TYPE constants defined in this file
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getId
-
getVersion
-
getType
-
toString
-
fromPortableString
Creates a descriptor from a portable string.- Parameters:
portable
- generated fromtoPortableString()
- Returns:
- descriptor
-
toPortableString
Returns a portable form for this descriptor.- Returns:
- portable form
-