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
ConstructorsConstructorDescriptionDefaultType(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, waitMethods 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:TypeReturns the dependency type id. The id uniquely identifies this dependency type. -
getLanguage
Description copied from interface:TypeReturns the dependency type language.- Specified by:
getLanguagein interfaceType- Returns:
- the language of this type, never
null.
-
getExtension
Description copied from interface:TypeGet the file extension of artifacts of this type.- Specified by:
getExtensionin interfaceorg.eclipse.aether.artifact.ArtifactType- Specified by:
getExtensionin interfaceType- Returns:
- the file extension, never
null.
-
getClassifier
Description copied from interface:TypeGet the default classifier associated to the dependency type. The default classifier can be overridden when specifying theDependency.getClassifier().- Specified by:
getClassifierin interfaceorg.eclipse.aether.artifact.ArtifactType- Specified by:
getClassifierin interfaceType- Returns:
- the default classifier, or
null.
-
getDependencyProperties
Description copied from interface:TypeGets the default properties associated with this dependency type.- Specified by:
getDependencyPropertiesin interfaceType- Returns:
- the default properties, never
null.
-
getProperties
- Specified by:
getPropertiesin interfaceorg.eclipse.aether.artifact.ArtifactType
-