public class StubConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CLASSIFIER |
Constructor and Description |
---|
StubConfiguration(String stubPath) |
StubConfiguration(String stubPath,
String defaultClassifier) |
StubConfiguration(String groupId,
String artifactId,
String version) |
StubConfiguration(String groupId,
String artifactId,
String version,
String classifier) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getArtifactId() |
String |
getClassifier() |
String |
getGroupId() |
String |
getVersion() |
boolean |
groupIdAndArtifactMatches(String ivyNotationAsString)
Checks if ivy notation matches group and artifact ids
|
int |
hashCode() |
boolean |
isVersionChanging()
Returns
true for a snapshot or a LATEST (+) version |
boolean |
matchesIvyNotation(String ivyNotationAsString) |
String |
toColonSeparatedDependencyNotation()
Returns a colon separated representation of the stub configuration
(e.g.
|
String |
toString() |
public static final String DEFAULT_CLASSIFIER
public StubConfiguration(String groupId, String artifactId, String version, String classifier)
public StubConfiguration(String stubPath)
public String toColonSeparatedDependencyNotation()
public boolean groupIdAndArtifactMatches(String ivyNotationAsString)
ivyNotationAsString
- - e.g. group:artifact:version:classifiertrue
if artifact id matches and there's no group id. Or if
both group id and artifact id are present and matchingpublic boolean isVersionChanging()
true
for a snapshot or a LATEST (+) versionpublic String getGroupId()
public String getArtifactId()
public String getClassifier()
public String getVersion()
public boolean matchesIvyNotation(String ivyNotationAsString)
Copyright © 2016–2018 Spring. All rights reserved.