Top Description Fields Methods
org.osgi.service.feature

public Interface ID

Annotations
@ProviderType
Imports
java.util.Optional, org.osgi.annotation.versioning.ProviderType

ID used to denote an artifact. This could be a feature model, a bundle which is part of the feature model or some other artifact.

Artifact IDs follow the Maven convention of having:

Field Summary

Modifier and TypeField and Description
public static final String
FEATURE_ID_TYPE

ID type for use with Features.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The artifact ID.
getArtifactId
()

Get the artifact ID.

public Optional<String>

Returns:

The classifier.
getClassifier
()

Get the classifier.

public String

Returns:

The group ID.
getGroupId
()

Get the group ID.

public Optional<String>

Returns:

The type identifier.
getType
()

Get the type identifier.

public String

Returns:

The version.
getVersion
()

Get the version.

public String

Returns:

The string representation.
toString
()

This method returns the ID using the following syntax:

groupId ':' artifactId ( ':' type ( ':' classifier )?

Field Detail

FEATURE_ID_TYPEback to summary
public static final String FEATURE_ID_TYPE

ID type for use with Features.

Method Detail

getArtifactIdback to summary
public String getArtifactId()

Get the artifact ID.

Returns:String

The artifact ID.

getClassifierback to summary
public Optional<String> getClassifier()

Get the classifier.

Returns:Optional<String>

The classifier.

getGroupIdback to summary
public String getGroupId()

Get the group ID.

Returns:String

The group ID.

getTypeback to summary
public Optional<String> getType()

Get the type identifier.

Returns:Optional<String>

The type identifier.

getVersionback to summary
public String getVersion()

Get the version.

Returns:String

The version.

toStringback to summary
public String toString()

This method returns the ID using the following syntax:

groupId ':' artifactId ( ':' type ( ':' classifier )? )? ':' version

Returns:String

The string representation.

Annotations
@Override