|
Eclipse PDE Release 3.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.pde.core.target.NameVersionDescriptor
public class NameVersionDescriptor
Describes something with a name and version.
Field Summary | |
---|---|
static String |
TYPE_FEATURE
|
static String |
TYPE_PACKAGE
|
static String |
TYPE_PLUGIN
|
Constructor Summary | |
---|---|
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 . |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String TYPE_PLUGIN
public static final String TYPE_FEATURE
public static final String TYPE_PACKAGE
Constructor Detail |
---|
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 fileMethod Detail |
---|
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getId()
public String getVersion()
public String getType()
public String toString()
toString
in class Object
public static NameVersionDescriptor fromPortableString(String portable)
portable
- generated from toPortableString()
public String toPortableString()
|
Eclipse PDE Release 3.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2013 IBM Corporation and others. All rights reserved.