Package org.eclipse.aether.util.artifact
Class SubArtifact
java.lang.Object
org.eclipse.aether.artifact.AbstractArtifact
org.eclipse.aether.util.artifact.SubArtifact
- All Implemented Interfaces:
- org.eclipse.aether.artifact.Artifact
An artifact whose identity is derived from another artifact. Note: Instances of this class are immutable and
 the exposed mutators return new objects rather than changing the current instance.
- 
Constructor SummaryConstructorsConstructorDescriptionSubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension) Creates a new sub artifact.SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension, File file) Creates a new sub artifact.SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension, Path path) Creates a new sub artifact.SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension, Map<String, String> properties) Creates a new sub artifact.SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension, Map<String, String> properties, File file) Creates a new sub artifact.SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension, Map<String, String> properties, Path path) Creates a new sub artifact.
- 
Method SummaryMethods inherited from class org.eclipse.aether.artifact.AbstractArtifactcopyProperties, equals, getProperty, hashCode, setVersion, toString
- 
Constructor Details- 
SubArtifactpublic SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension) Creates a new sub artifact. The classifier and extension specified for this artifact may use the asterisk character "*" to refer to the corresponding property of the main artifact. For instance, the classifier "*-sources" can be used to refer to the source attachment of an artifact. Likewise, the extension "*.asc" can be used to refer to the GPG signature of an artifact.- Parameters:
- mainArtifact- the artifact from which to derive the identity, must not be- null
- classifier- the classifier for this artifact, may be- nullif none
- extension- the extension for this artifact, may be- nullif none
 
- 
SubArtifactpublic SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension, File file) Creates a new sub artifact. The classifier and extension specified for this artifact may use the asterisk character "*" to refer to the corresponding property of the main artifact. For instance, the classifier "*-sources" can be used to refer to the source attachment of an artifact. Likewise, the extension "*.asc" can be used to refer to the GPG signature of an artifact.- Parameters:
- mainArtifact- the artifact from which to derive the identity, must not be- null
- classifier- the classifier for this artifact, may be- nullif none
- extension- the extension for this artifact, may be- nullif none
- file- the file for this artifact, may be- nullif unresolved
 
- 
SubArtifactpublic SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension, Path path) Creates a new sub artifact. The classifier and extension specified for this artifact may use the asterisk character "*" to refer to the corresponding property of the main artifact. For instance, the classifier "*-sources" can be used to refer to the source attachment of an artifact. Likewise, the extension "*.asc" can be used to refer to the GPG signature of an artifact.- Parameters:
- mainArtifact- the artifact from which to derive the identity, must not be- null
- classifier- the classifier for this artifact, may be- nullif none
- extension- the extension for this artifact, may be- nullif none
- path- the file for this artifact, may be- nullif unresolved
- Since:
- 2.0.0
 
- 
SubArtifactpublic SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension, Map<String, String> properties) Creates a new sub artifact. The classifier and extension specified for this artifact may use the asterisk character "*" to refer to the corresponding property of the main artifact. For instance, the classifier "*-sources" can be used to refer to the source attachment of an artifact. Likewise, the extension "*.asc" can be used to refer to the GPG signature of an artifact.- Parameters:
- mainArtifact- the artifact from which to derive the identity, must not be- null
- classifier- the classifier for this artifact, may be- nullif none
- extension- the extension for this artifact, may be- nullif none
- properties- the properties of the artifact, may be- null
 
- 
SubArtifactpublic SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension, Map<String, String> properties, File file) Creates a new sub artifact. The classifier and extension specified for this artifact may use the asterisk character "*" to refer to the corresponding property of the main artifact. For instance, the classifier "*-sources" can be used to refer to the source attachment of an artifact. Likewise, the extension "*.asc" can be used to refer to the GPG signature of an artifact.- Parameters:
- mainArtifact- the artifact from which to derive the identity, must not be- null
- classifier- the classifier for this artifact, may be- nullif none
- extension- the extension for this artifact, may be- nullif none
- properties- the properties of the artifact, may be- null
- file- the file for this artifact, may be- nullif unresolved
 
- 
SubArtifactpublic SubArtifact(org.eclipse.aether.artifact.Artifact mainArtifact, String classifier, String extension, Map<String, String> properties, Path path) Creates a new sub artifact. The classifier and extension specified for this artifact may use the asterisk character "*" to refer to the corresponding property of the main artifact. For instance, the classifier "*-sources" can be used to refer to the source attachment of an artifact. Likewise, the extension "*.asc" can be used to refer to the GPG signature of an artifact.- Parameters:
- mainArtifact- the artifact from which to derive the identity, must not be- null
- classifier- the classifier for this artifact, may be- nullif none
- extension- the extension for this artifact, may be- nullif none
- properties- the properties of the artifact, may be- null
- path- the file for this artifact, may be- nullif unresolved
- Since:
- 2.0.0
 
 
- 
- 
Method Details- 
getGroupId
- 
getArtifactId
- 
getVersion
- 
getBaseVersion- Specified by:
- getBaseVersionin interface- org.eclipse.aether.artifact.Artifact
- Overrides:
- getBaseVersionin class- org.eclipse.aether.artifact.AbstractArtifact
 
- 
isSnapshot- Specified by:
- isSnapshotin interface- org.eclipse.aether.artifact.Artifact
- Overrides:
- isSnapshotin class- org.eclipse.aether.artifact.AbstractArtifact
 
- 
getClassifier
- 
getExtension
- 
getFileDeprecated.
- 
getPath- Specified by:
- getPathin interface- org.eclipse.aether.artifact.Artifact
- Overrides:
- getPathin class- org.eclipse.aether.artifact.AbstractArtifact
 
- 
setFileDeprecated.- Specified by:
- setFilein interface- org.eclipse.aether.artifact.Artifact
- Overrides:
- setFilein class- org.eclipse.aether.artifact.AbstractArtifact
 
- 
setPath- Specified by:
- setPathin interface- org.eclipse.aether.artifact.Artifact
- Overrides:
- setPathin class- org.eclipse.aether.artifact.AbstractArtifact
 
- 
getProperties
- 
setProperties- Specified by:
- setPropertiesin interface- org.eclipse.aether.artifact.Artifact
- Overrides:
- setPropertiesin class- org.eclipse.aether.artifact.AbstractArtifact
 
 
-