|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.resource.domain.ArtifactId.Builder
public static final class ArtifactId.Builder
Builder to create instances of ArtifactId
.
Constructor Summary | |
---|---|
ArtifactId.Builder() |
Method Summary | |
---|---|
ArtifactId |
build() Creates an instance of ArtifactId . |
ArtifactId.Builder |
withArchiveType(String archiveType) Sets the artifact type that is expressed by the artifact's file name extension. |
ArtifactId.Builder |
withClassifier(String classifier) Sets the classifier to the artifact. |
ArtifactId.Builder |
withGroupId(String groupId) Sets the group the artifact belongs to. |
ArtifactId.Builder |
withName(String name) Sets the name of the artifact. |
ArtifactId.Builder |
withVersion(String version) Sets the version of the artifact. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArtifactId.Builder()
Method Detail |
---|
public ArtifactId.Builder withGroupId(String groupId) throws IllegalArgumentException
groupId
- the group the artifact belongs to.
IllegalArgumentException
- if
groupId
is blank.
public ArtifactId.Builder withName(String name) throws IllegalArgumentException
name
- the name of the artifact.
IllegalArgumentException
- if
name
is blank.
public ArtifactId.Builder withVersion(String version) throws IllegalArgumentException
version
- the version of the artifact.
IllegalArgumentException
- if
version
is blank.
public ArtifactId.Builder withArchiveType(String archiveType) throws IllegalArgumentException
archiveType
- the artifact type that is expressed by the artifact's file name extension.
IllegalArgumentException
- if
archiveType
is blank.
public ArtifactId.Builder withClassifier(String classifier) throws IllegalArgumentException
classifier
- the classifier to the artifact. May be
null
.
IllegalArgumentException
- if classifier is blank except
null
.
public ArtifactId build()
ArtifactId
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |