public final class DefaultArtifactType extends Object implements ArtifactType
| Constructor and Description |
|---|
DefaultArtifactType(String id)
Creates a new artifact type with the specified identifier.
|
DefaultArtifactType(String id,
String extension,
String classifier,
Map<String,String> properties)
Creates a new artifact type with the specified properties.
|
DefaultArtifactType(String id,
String extension,
String classifier,
String language)
Creates a new artifact type with the specified properties.
|
DefaultArtifactType(String id,
String extension,
String classifier,
String language,
boolean constitutesBuildPath,
boolean includesDependencies)
Creates a new artifact type with the specified properties.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getClassifier()
Gets the classifier to use for artifacts of this type (unless explicitly overridden by the artifact).
|
String |
getExtension()
Gets the file extension to use for artifacts of this type (unless explicitly overridden by the artifact).
|
String |
getId()
Gets the identifier of this type, e.g.
|
Map<String,String> |
getProperties()
Gets the properties to use for artifacts of this type (unless explicitly overridden by the artifact).
|
public DefaultArtifactType(String id)
ArtifactProperties.LANGUAGE, ArtifactProperties.CONSTITUTES_BUILD_PATH and
ArtifactProperties.INCLUDES_DEPENDENCIES will be set to "none", true and false,
respectively.id - The identifier of the type which will also be used as the value for the ArtifactProperties.TYPE
property, must not be null or empty.public DefaultArtifactType(String id, String extension, String classifier, String language)
ArtifactProperties.CONSTITUTES_BUILD_PATH and ArtifactProperties.INCLUDES_DEPENDENCIES will be
set to true and false, respectively.id - The identifier of the type which will also be used as the value for the ArtifactProperties.TYPE
property, must not be null or empty.extension - The usual file extension for artifacts of this type, may be null.classifier - The usual classifier for artifacts of this type, may be null.language - The value for the ArtifactProperties.LANGUAGE property, may be null.public DefaultArtifactType(String id, String extension, String classifier, String language, boolean constitutesBuildPath, boolean includesDependencies)
id - The identifier of the type which will also be used as the value for the ArtifactProperties.TYPE
property, must not be null or empty.extension - The usual file extension for artifacts of this type, may be null.classifier - The usual classifier for artifacts of this type, may be null.language - The value for the ArtifactProperties.LANGUAGE property, may be null.constitutesBuildPath - The value for the ArtifactProperties.CONSTITUTES_BUILD_PATH property.includesDependencies - The value for the ArtifactProperties.INCLUDES_DEPENDENCIES property.public DefaultArtifactType(String id, String extension, String classifier, Map<String,String> properties)
id - The identifier of the type, must not be null or empty.extension - The usual file extension for artifacts of this type, may be null.classifier - The usual classifier for artifacts of this type, may be null.properties - The properties for artifacts of this type, may be null.public String getId()
ArtifactTypegetId in interface ArtifactTypenull.ArtifactProperties.TYPEpublic String getExtension()
ArtifactTypegetExtension in interface ArtifactTypenull.public String getClassifier()
ArtifactTypegetClassifier in interface ArtifactTypenull.public Map<String,String> getProperties()
ArtifactTypegetProperties in interface ArtifactTypenull.ArtifactPropertiesCopyright © 2010-2015 The Eclipse Foundation. All Rights Reserved.