@ProviderType public interface FeatureService
| Modifier and Type | Method and Description |
|---|---|
BuilderFactory |
getBuilderFactory()
Get a factory which can be used to build feature model entities.
|
ID |
getID(String groupId,
String artifactId,
String version)
Obtain an ID.
|
ID |
getID(String groupId,
String artifactId,
String version,
String type)
Obtain an ID.
|
ID |
getID(String groupId,
String artifactId,
String version,
String type,
String classifier)
Obtain an ID.
|
ID |
getIDfromMavenCoordinates(String coordinates)
Obtain an ID from a Maven Coordinates formatted string.
|
Feature |
readFeature(Reader jsonReader)
Read a Feature from JSON
|
void |
writeFeature(Feature feature,
Writer jsonWriter)
Write a Feature Model to JSON
|
BuilderFactory getBuilderFactory()
ID getIDfromMavenCoordinates(String coordinates)
groupId ':' artifactId ( ':' type ( ':' classifier )? )? ':' version
coordinates - The Maven Coordinates.ID getID(String groupId, String artifactId, String version)
groupId - The group ID (not null, not empty).artifactId - The artifact ID (not null, not empty).version - The version (not null, not empty).ID getID(String groupId, String artifactId, String version, String type)
groupId - The group ID (not null, not empty).artifactId - The artifact ID (not null, not empty).version - The version (not null, not empty).type - The type (not null, not empty).ID getID(String groupId, String artifactId, String version, String type, String classifier)
groupId - The group ID (not null, not empty).artifactId - The artifact ID (not null, not empty).version - The version (not null, not empty).type - The type (not null, not empty).classifier - The classifier (not null, not empty).Feature readFeature(Reader jsonReader) throws IOException
jsonReader - A Reader to the JSON inputIOException - When reading failsvoid writeFeature(Feature feature, Writer jsonWriter) throws IOException
feature - the Feature to write.jsonWriter - A Writer to which the Feature should be written.IOException - When writing fails.Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0