Package org.codehaus.mojo.versions.utils
Class ExtensionBuilder
java.lang.Object
org.codehaus.mojo.versions.utils.ExtensionBuilder
Builder class for Extension
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.maven.model.Extensionbuild()Builds the Dependency instancestatic ExtensionBuilderCreates a new instance of the builderwithArtifactId(String artifactId) Passes artifactId to the builderwithGroupId(String groupId) Passes groupId to the builderwithLocation(Object key, org.apache.maven.model.InputLocation location) Passes type to the builderwithVersion(String version) Passes version to the builder
-
Method Details
-
withGroupId
Passes groupId to the builder- Parameters:
groupId- given groupId- Returns:
- builder instance
-
withArtifactId
Passes artifactId to the builder- Parameters:
artifactId- given artifactId- Returns:
- builder instance
-
withVersion
Passes version to the builder- Parameters:
version- given version- Returns:
- builder instance
-
withLocation
Passes type to the builder- Parameters:
key- location keylocation- input location- Returns:
- builder instance
-
newBuilder
Creates a new instance of the builder- Returns:
- new instance of the builder
-
build
public org.apache.maven.model.Extension build()Builds the Dependency instance- Returns:
- Dependency instance
-