Package org.apache.maven.internal.impl
Class DefaultType
java.lang.Object
org.apache.maven.internal.impl.DefaultType
- All Implemented Interfaces:
Type
,org.eclipse.aether.artifact.ArtifactType
-
Field Summary
Fields inherited from interface org.apache.maven.api.Type
LANGUAGE_JAVA, LANGUAGE_NONE
-
Constructor Summary
ConstructorDescriptionDefaultType
(String id, String language, String extension, String classifier, DependencyProperties dependencyProperties) -
Method Summary
Modifier and TypeMethodDescriptionGet the default classifier associated to the dependency type.Gets the default properties associated with this dependency type.Get the file extension of artifacts of this type.getId()
Returns the dependency type id.Returns the dependency type language.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.api.Type
isAddedToClassPath, isIncludesDependencies
-
Constructor Details
-
DefaultType
public DefaultType(String id, String language, String extension, String classifier, DependencyProperties dependencyProperties)
-
-
Method Details
-
getId
Description copied from interface:Type
Returns the dependency type id. The id uniquely identifies this dependency type. -
getLanguage
Description copied from interface:Type
Returns the dependency type language.- Specified by:
getLanguage
in interfaceType
- Returns:
- the language of this type, never
null
.
-
getExtension
Description copied from interface:Type
Get the file extension of artifacts of this type.- Specified by:
getExtension
in interfaceorg.eclipse.aether.artifact.ArtifactType
- Specified by:
getExtension
in interfaceType
- Returns:
- the file extension, never
null
.
-
getClassifier
Description copied from interface:Type
Get the default classifier associated to the dependency type. The default classifier can be overridden when specifying theDependency.getClassifier()
.- Specified by:
getClassifier
in interfaceorg.eclipse.aether.artifact.ArtifactType
- Specified by:
getClassifier
in interfaceType
- Returns:
- the default classifier, or
null
.
-
getDependencyProperties
Description copied from interface:Type
Gets the default properties associated with this dependency type.- Specified by:
getDependencyProperties
in interfaceType
- Returns:
- the default properties, never
null
.
-
getProperties
- Specified by:
getProperties
in interfaceorg.eclipse.aether.artifact.ArtifactType
-