Class SimpleArtifactTypeRegistry

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​ArtifactType> types  
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleArtifactTypeRegistry()
      Creates a new artifact type registry with initally no registered artifact types.
    • Field Detail

      • types

        private final java.util.Map<java.lang.String,​ArtifactType> types
    • Constructor Detail

      • SimpleArtifactTypeRegistry

        SimpleArtifactTypeRegistry()
        Creates a new artifact type registry with initally no registered artifact types. Use add(ArtifactType) to populate the registry.
    • Method Detail

      • add

        public SimpleArtifactTypeRegistry add​(ArtifactType type)
        Adds the specified artifact type to the registry.
        Parameters:
        type - The artifact type to add, must not be null.
        Returns:
        This registry for chaining, never null.
      • get

        public ArtifactType get​(java.lang.String typeId)
        Description copied from interface: ArtifactTypeRegistry
        Gets the artifact type with the specified identifier.
        Specified by:
        get in interface ArtifactTypeRegistry
        Parameters:
        typeId - The identifier of the type, must not be null.
        Returns:
        The artifact type or null if no type with the requested identifier exists.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object