Package org.eclipse.pde.core.target
Class NameVersionDescriptor
- java.lang.Object
- 
- org.eclipse.pde.core.target.NameVersionDescriptor
 
- 
 public class NameVersionDescriptor extends Object Describes something with a name and version.- Since:
- 3.8
- Restriction:
- This class is not intended to be subclassed by clients.
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringTYPE_FEATUREstatic StringTYPE_PACKAGEstatic StringTYPE_PLUGIN
 - 
Constructor SummaryConstructors Constructor Description NameVersionDescriptor(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 SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static NameVersionDescriptorfromPortableString(String portable)Creates a descriptor from a portable string.StringgetId()StringgetType()StringgetVersion()inthashCode()StringtoPortableString()Returns a portable form for this descriptor.StringtoString()
 
- 
- 
- 
Field Detail- 
TYPE_PLUGINpublic static final String TYPE_PLUGIN - See Also:
- Constant Field Values
 
 - 
TYPE_FEATUREpublic static final String TYPE_FEATURE - See Also:
- Constant Field Values
 
 - 
TYPE_PACKAGEpublic static final String TYPE_PACKAGE - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
NameVersionDescriptorpublic 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 withnull.- Parameters:
- id- name identifier
- version- version identifier, can be- null
 
 - 
NameVersionDescriptorpublic NameVersionDescriptor(String id, String version, String type) 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 identifier
- version- version identifier, can be- null
- type- type of object this descriptor represents, should be one of the TYPE constants defined in this file
 
 
- 
 - 
Method Detail- 
getIdpublic String getId() 
 - 
getVersionpublic String getVersion() 
 - 
getTypepublic String getType() 
 - 
fromPortableStringpublic static NameVersionDescriptor fromPortableString(String portable) Creates a descriptor from a portable string.- Parameters:
- portable- generated from- toPortableString()
- Returns:
- descriptor
 
 - 
toPortableStringpublic String toPortableString() Returns a portable form for this descriptor.- Returns:
- portable form
 
 
- 
 
-