Package org.osgi.service.feature
Interface ID
-
@ProviderType public interface ID
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:
- A group ID
- An artifact ID
- A version
- A type identifier (optional)
- A classifier (optional)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FEATURE_ID_TYPE
ID type for use with Features.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getArtifactId()
Get the artifact ID.java.util.Optional<java.lang.String>
getClassifier()
Get the classifier.java.lang.String
getGroupId()
Get the group ID.java.util.Optional<java.lang.String>
getType()
Get the type identifier.java.lang.String
getVersion()
Get the version.java.lang.String
toString()
This method returns the ID using the following syntax:
-
-
-
Field Detail
-
FEATURE_ID_TYPE
static final java.lang.String FEATURE_ID_TYPE
ID type for use with Features.- See Also:
- Constant Field Values
-
-
Method Detail
-
getGroupId
java.lang.String getGroupId()
Get the group ID.- Returns:
- The group ID.
-
getArtifactId
java.lang.String getArtifactId()
Get the artifact ID.- Returns:
- The artifact ID.
-
getVersion
java.lang.String getVersion()
Get the version.- Returns:
- The version.
-
getType
java.util.Optional<java.lang.String> getType()
Get the type identifier.- Returns:
- The type identifier.
-
getClassifier
java.util.Optional<java.lang.String> getClassifier()
Get the classifier.- Returns:
- The classifier.
-
toString
java.lang.String toString()
This method returns the ID using the following syntax:groupId ':' artifactId ( ':' type ( ':' classifier )? )? ':' version
- Overrides:
toString
in classjava.lang.Object
- Returns:
- The string representation.
-
-