Package land.oras

Class ArtifactType

java.lang.Object
land.oras.ArtifactType

@NullMarked public class ArtifactType extends Object
Class for artifact type
  • Method Details

    • getMediaType

      public String getMediaType()
      Get the media type
      Returns:
      The media type
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • from

      public static ArtifactType from(@Nullable String artifactType)
      Create an artifact type
      Parameters:
      artifactType - The artifact type. Can be null
      Returns:
      The artifact type
    • unknown

      public static ArtifactType unknown()
      Create an unknown artifact type
      Returns:
      The unknown artifact type