Package org.eclipse.aether.artifact
Interface ArtifactType
-
- All Known Implementing Classes:
DefaultArtifactType
public interface ArtifactType
An artifact type describing artifact characteristics/properties that are common for certain artifacts. Artifact types are a means to simplify the description of an artifact by referring to an artifact type instead of specifying the various properties individually.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getClassifier()
Gets the classifier to use for artifacts of this type (unless explicitly overridden by the artifact).java.lang.String
getExtension()
Gets the file extension to use for artifacts of this type (unless explicitly overridden by the artifact).java.lang.String
getId()
Gets the identifier of this type, e.g.java.util.Map<java.lang.String,java.lang.String>
getProperties()
Gets the properties to use for artifacts of this type (unless explicitly overridden by the artifact).
-
-
-
Method Detail
-
getId
java.lang.String getId()
Gets the identifier of this type, e.g. "maven-plugin" or "test-jar".- Returns:
- The identifier of this type, never
null
. - See Also:
ArtifactProperties.TYPE
-
getExtension
java.lang.String getExtension()
Gets the file extension to use for artifacts of this type (unless explicitly overridden by the artifact).- Returns:
- The usual file extension, never
null
.
-
getClassifier
java.lang.String getClassifier()
Gets the classifier to use for artifacts of this type (unless explicitly overridden by the artifact).- Returns:
- The usual classifier or an empty string if none, never
null
.
-
getProperties
java.util.Map<java.lang.String,java.lang.String> getProperties()
Gets the properties to use for artifacts of this type (unless explicitly overridden by the artifact).- Returns:
- The (read-only) properties, never
null
. - See Also:
ArtifactProperties
-
-