java.lang.Object
org.apache.juneau.bean.mcp.v20260728.Icon

@Marshalled public class Icon extends Object
MCP icon descriptor (the schema's Icons.icons entry shape), used by Implementation.
  • Constructor Details

    • Icon

      public Icon()
  • Method Details

    • getSrc

      public String getSrc()
      Icon source location (typically a URI).

      Required by the schema; not validated by this DTO.

      Returns:
      The source, or null if not set.
    • setSrc

      public Icon setSrc(String value)
      Sets the icon source location.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • getMimeType

      public String getMimeType()
      Icon MIME type.
      Returns:
      The MIME type, or null if not set.
    • setMimeType

      public Icon setMimeType(String value)
      Sets the icon MIME type.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • getSizes

      public List<String> getSizes()
      Ordered list of available sizes (for example "48x48" or "any").
      Returns:
      The sizes list, or null if not set.
    • setSizes

      public Icon setSizes(List<String> value)
      Sets the ordered list of available sizes.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • setSizes

      public Icon setSizes(String... value)
      Sets the ordered list of available sizes.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • addSizes

      public Icon addSizes(String... value)
      Appends to the ordered list of available sizes.
      Parameters:
      value - The values to append.
      Returns:
      This object (for method chaining).
    • addSizes

      public Icon addSizes(Collection<String> value)
      Appends to the ordered list of available sizes.
      Parameters:
      value - The values to append.
      Returns:
      This object (for method chaining).
    • getTheme

      public Icon.Theme getTheme()
      Color-scheme theme this icon is suited for.
      Returns:
      The theme, or null if not set.
    • setTheme

      public Icon setTheme(Icon.Theme value)
      Sets the color-scheme theme.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).