Package org.eclipse.aether.util.artifact
Class DefaultArtifactTypeRegistry
- java.lang.Object
-
- org.eclipse.aether.util.artifact.DefaultArtifactTypeRegistry
-
- All Implemented Interfaces:
org.eclipse.aether.artifact.ArtifactTypeRegistry
public final class DefaultArtifactTypeRegistry extends java.lang.Object
A simple artifact type registry.
-
-
Constructor Summary
Constructors Constructor Description DefaultArtifactTypeRegistry()Creates a new artifact type registry with initally no registered artifact types.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultArtifactTypeRegistryadd(org.eclipse.aether.artifact.ArtifactType type)Adds the specified artifact type to the registry.org.eclipse.aether.artifact.ArtifactTypeget(java.lang.String typeId)java.lang.StringtoString()
-
-
-
Constructor Detail
-
DefaultArtifactTypeRegistry
public DefaultArtifactTypeRegistry()
Creates a new artifact type registry with initally no registered artifact types. Useadd(ArtifactType)to populate the registry.
-
-
Method Detail
-
add
public DefaultArtifactTypeRegistry add(org.eclipse.aether.artifact.ArtifactType type)
Adds the specified artifact type to the registry.- Parameters:
type- The artifact type to add, must not benull.- Returns:
- This registry for chaining, never
null.
-
get
public org.eclipse.aether.artifact.ArtifactType get(java.lang.String typeId)
- Specified by:
getin interfaceorg.eclipse.aether.artifact.ArtifactTypeRegistry
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-