org.jfrog.build.extractor.clientConfiguration
Class ArtifactSpec

java.lang.Object
  extended by org.jfrog.build.extractor.clientConfiguration.ArtifactSpec

public class ArtifactSpec
extends java.lang.Object

Container for artifact with module information + custom properties


Nested Class Summary
static class ArtifactSpec.Builder
           
 
Field Summary
static java.lang.String CONFIG_ALL
           
static java.lang.String WILDCARD
           
 
Method Summary
static ArtifactSpec.Builder builder()
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getClassifier()
           
 java.lang.String getConfiguration()
           
 java.lang.String getGroup()
           
 java.lang.String getName()
           
 java.util.Map<java.lang.String,java.lang.CharSequence> getProperties()
           
 java.lang.String getType()
           
 java.lang.String getVersion()
           
 int hashCode()
           
 boolean matches(ArtifactSpec spec)
           
static ArtifactSpec newSpec(java.lang.String notation)
          Create a full artifact spec from string notation in the format of:

[configName] artifactNotation key1:val1, key2:val2, key3:val3

artifactNotation is in the format of group:artifact:version:classifier@ext every
Any element in artifactNotation can contain the * and ? wildcards, for example:

org.acme:*:1.0.?_*:*@tgz

 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_ALL

public static final java.lang.String CONFIG_ALL
See Also:
Constant Field Values

WILDCARD

public static final java.lang.String WILDCARD
See Also:
Constant Field Values
Method Detail

newSpec

public static ArtifactSpec newSpec(java.lang.String notation)
Create a full artifact spec from string notation in the format of:

[configName] artifactNotation key1:val1, key2:val2, key3:val3

artifactNotation is in the format of group:artifact:version:classifier@ext every
Any element in artifactNotation can contain the * and ? wildcards, for example:

org.acme:*:1.0.?_*:*@tgz

Parameters:
notation -

builder

public static ArtifactSpec.Builder builder()

matches

public boolean matches(ArtifactSpec spec)

getConfiguration

public java.lang.String getConfiguration()

getGroup

public java.lang.String getGroup()

getName

public java.lang.String getName()

getVersion

public java.lang.String getVersion()

getClassifier

public java.lang.String getClassifier()

getType

public java.lang.String getType()

getProperties

public java.util.Map<java.lang.String,java.lang.CharSequence> getProperties()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object