public final class DefaultArtifactTypeRegistry extends Object
Constructor and Description |
---|
DefaultArtifactTypeRegistry()
Creates a new artifact type registry with initally no registered artifact types.
|
Modifier and Type | Method and Description |
---|---|
DefaultArtifactTypeRegistry |
add(ArtifactType type)
Adds the specified artifact type to the registry.
|
ArtifactType |
get(String typeId)
Gets the artifact type with the specified identifier.
|
String |
toString() |
public DefaultArtifactTypeRegistry()
add(ArtifactType)
to populate the registry.public DefaultArtifactTypeRegistry add(ArtifactType type)
type
- The artifact type to add, must not be null
.null
.public ArtifactType get(String typeId)
ArtifactTypeRegistry
get
in interface ArtifactTypeRegistry
typeId
- The identifier of the type, must not be null
.null
if no type with the requested identifier exists.Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.