|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonatype.aether.util.artifact.DefaultArtifactTypeRegistry
public class DefaultArtifactTypeRegistry
A simple artifact type registry.
Constructor Summary | |
---|---|
DefaultArtifactTypeRegistry()
Creates a new artifact type registry with initally no registered artifact types. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultArtifactTypeRegistry()
add(ArtifactType)
to populate the registry.
Method Detail |
---|
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.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |