public class FeatureIdentifier
extends java.lang.Object
Constructor and Description |
---|
FeatureIdentifier()
Constructor used when serializing as a pojo.
|
FeatureIdentifier(java.lang.String featureID,
int placeholder)
Construct a feature identifier from a string representation of a feature identifier.
|
FeatureIdentifier(java.lang.String componentID,
java.lang.String version)
Construct a feature identifier with the specified componentID and version.
|
FeatureIdentifier(java.lang.String componentID,
java.lang.String version,
java.lang.String provisionType)
Construct a feature identifier with the specified componentID and version.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object arg0)
Uses the feature id String to determine equality.
|
java.lang.String |
getComponentID()
Return the non-null component ID for this feature.
|
java.lang.String |
getDescriptiveName() |
java.lang.String |
getProvisionType() |
java.lang.String |
getVersion()
Return the non-null version number for this feature.
|
int |
hashCode()
Uses the feature id String for the hashcode.
|
boolean |
isCompleteVersion() |
void |
setCompleteVersion(boolean isCompleteVersion) |
void |
setComponentID(java.lang.String componentID)
Set the componentID for this feature.
|
void |
setDescriptiveName(java.lang.String descriptiveName) |
void |
setProvisionType(java.lang.String provisionType) |
void |
setVersion(java.lang.String version)
Set the version number for this feature.
|
java.lang.String |
toString()
Returns the feature id in string form.
|
public FeatureIdentifier()
public FeatureIdentifier(java.lang.String componentID, java.lang.String version)
componentID
- non-null componentID of the feature.version
- non-null version number of the feature.public FeatureIdentifier(java.lang.String componentID, java.lang.String version, java.lang.String provisionType)
componentID
- non-null componentID of the feature.version
- non-null version number of the feature.provisionType
- non-null provision type of the feature.public FeatureIdentifier(java.lang.String featureID, int placeholder)
featureID
- string representation of a feature identifier.placeholder
- any value of type intpublic java.lang.String getComponentID()
public java.lang.String getVersion()
public void setComponentID(java.lang.String componentID)
componentID
- non-null componentID to set.public void setVersion(java.lang.String version)
version
- non-null version to set.public java.lang.String getDescriptiveName()
public void setDescriptiveName(java.lang.String descriptiveName)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object arg0)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public void setCompleteVersion(boolean isCompleteVersion)
public boolean isCompleteVersion()
public java.lang.String getProvisionType()
public void setProvisionType(java.lang.String provisionType)