Package org.eclipse.aether.artifact
Class DefaultArtifactType
java.lang.Object
org.eclipse.aether.artifact.DefaultArtifactType
- All Implemented Interfaces:
ArtifactType
Deprecated.
since 2.0, the artifact types should be defined by the resolver consumer
A simple artifact type.
-
Constructor Summary
ConstructorDescriptionDeprecated.Creates a new artifact type with the specified identifier.DefaultArtifactType
(String id, String extension, String classifier, String language) Deprecated.Creates a new artifact type with the specified properties.DefaultArtifactType
(String id, String extension, String classifier, String language, boolean constitutesBuildPath, boolean includesDependencies) Deprecated.Creates a new artifact type with the specified properties.Deprecated.Creates a new artifact type with the specified properties. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the classifier to use for artifacts of this type (unless explicitly overridden by the artifact).Deprecated.Gets the file extension to use for artifacts of this type (unless explicitly overridden by the artifact).getId()
Deprecated.Gets the identifier of this type, e.g.Deprecated.Gets the properties to use for artifacts of this type (unless explicitly overridden by the artifact).
-
Constructor Details
-
DefaultArtifactType
Deprecated.Creates a new artifact type with the specified identifier. This constructor assumes the usual file extension equals the given type id and that the usual classifier is empty. Additionally, the propertiesArtifactProperties.LANGUAGE
,ArtifactProperties.CONSTITUTES_BUILD_PATH
andArtifactProperties.INCLUDES_DEPENDENCIES
will be set to"none"
,true
andfalse
, respectively.- Parameters:
id
- The identifier of the type which will also be used as the value for theArtifactProperties.TYPE
property, must not benull
or empty.
-
DefaultArtifactType
Deprecated.Creates a new artifact type with the specified properties. Additionally, the propertiesArtifactProperties.CONSTITUTES_BUILD_PATH
andArtifactProperties.INCLUDES_DEPENDENCIES
will be set totrue
andfalse
, respectively.- Parameters:
id
- The identifier of the type which will also be used as the value for theArtifactProperties.TYPE
property, must not benull
or empty.extension
- The usual file extension for artifacts of this type, may benull
.classifier
- The usual classifier for artifacts of this type, may benull
.language
- The value for theArtifactProperties.LANGUAGE
property, may benull
.
-
DefaultArtifactType
public DefaultArtifactType(String id, String extension, String classifier, String language, boolean constitutesBuildPath, boolean includesDependencies) Deprecated.Creates a new artifact type with the specified properties.- Parameters:
id
- The identifier of the type which will also be used as the value for theArtifactProperties.TYPE
property, must not benull
or empty.extension
- The usual file extension for artifacts of this type, may benull
.classifier
- The usual classifier for artifacts of this type, may benull
.language
- The value for theArtifactProperties.LANGUAGE
property, may benull
.constitutesBuildPath
- The value for theArtifactProperties.CONSTITUTES_BUILD_PATH
property.includesDependencies
- The value for theArtifactProperties.INCLUDES_DEPENDENCIES
property.
-
DefaultArtifactType
public DefaultArtifactType(String id, String extension, String classifier, Map<String, String> properties) Deprecated.Creates a new artifact type with the specified properties.- Parameters:
id
- The identifier of the type, must not benull
or empty.extension
- The usual file extension for artifacts of this type, may benull
.classifier
- The usual classifier for artifacts of this type, may benull
.properties
- The properties for artifacts of this type, may benull
.
-
-
Method Details
-
getId
Deprecated.Description copied from interface:ArtifactType
Gets the identifier of this type, e.g. "maven-plugin" or "test-jar".- Specified by:
getId
in interfaceArtifactType
- Returns:
- The identifier of this type, never
null
. - See Also:
-
getExtension
Deprecated.Description copied from interface:ArtifactType
Gets the file extension to use for artifacts of this type (unless explicitly overridden by the artifact).- Specified by:
getExtension
in interfaceArtifactType
- Returns:
- The usual file extension, never
null
.
-
getClassifier
Deprecated.Description copied from interface:ArtifactType
Gets the classifier to use for artifacts of this type (unless explicitly overridden by the artifact).- Specified by:
getClassifier
in interfaceArtifactType
- Returns:
- The usual classifier or an empty string if none, never
null
.
-
getProperties
Deprecated.Description copied from interface:ArtifactType
Gets the properties to use for artifacts of this type (unless explicitly overridden by the artifact).- Specified by:
getProperties
in interfaceArtifactType
- Returns:
- The (read-only) properties, never
null
. - See Also:
-