Adding fluent api methods

This commit is contained in:
Martin Stockhammer 2020-02-10 23:20:42 +01:00
parent af4c1a763b
commit 3162ea79e6
3 changed files with 50 additions and 0 deletions

View File

@ -83,6 +83,11 @@ public class ArtifactReference
return this.artifactId;
} //-- String getArtifactId()
public ArtifactReference artifactId(String artifactId) {
this.artifactId = artifactId;
return this;
}
/**
* Get the classifier for this artifact.
*
@ -93,6 +98,11 @@ public class ArtifactReference
return this.classifier;
} //-- String getClassifier()
public ArtifactReference classifier(String classifier) {
this.classifier = classifier;
return this;
}
/**
* Get the Group ID of the repository content.
*
@ -103,6 +113,11 @@ public class ArtifactReference
return this.groupId;
} //-- String getGroupId()
public ArtifactReference groupId(String groupId) {
this.groupId = groupId;
return this;
}
/**
* Get the type of artifact.
*
@ -113,6 +128,11 @@ public class ArtifactReference
return this.type;
} //-- String getType()
public ArtifactReference type(String type) {
this.type = type;
return this;
}
/**
* Get the version of the repository content.
*
@ -123,6 +143,11 @@ public class ArtifactReference
return this.version;
} //-- String getVersion()
public ArtifactReference version(String version) {
this.version = version;
return this;
}
/**
* Set the Artifact ID of the repository content.
*

View File

@ -62,6 +62,11 @@ public class ProjectReference
return this.artifactId;
} //-- String getArtifactId()
public ProjectReference artifactId(String artifactId) {
this.artifactId = artifactId;
return this;
}
/**
* Get the Group ID of the project reference.
*
@ -72,6 +77,11 @@ public class ProjectReference
return this.groupId;
} //-- String getGroupId()
public ProjectReference groupId(String groupId) {
this.groupId = groupId;
return this;
}
/**
* Set the Artifact ID of the project reference.
*

View File

@ -69,6 +69,11 @@ public class VersionedReference
return this.artifactId;
} //-- String getArtifactId()
public VersionedReference artifactId(String artifactId) {
this.artifactId = artifactId;
return this;
}
/**
* Get the Group ID of the repository content.
*
@ -79,6 +84,11 @@ public class VersionedReference
return this.groupId;
} //-- String getGroupId()
public VersionedReference groupId(String groupId) {
this.groupId = groupId;
return this;
}
/**
* Get the version of the repository content.
*
@ -89,6 +99,11 @@ public class VersionedReference
return this.version;
} //-- String getVersion()
public VersionedReference version(String version) {
this.version = version;
return this;
}
/**
* Set the Artifact ID of the repository content.
*