Class Icon
java.lang.Object
org.apache.juneau.bean.mcp.v20260728.Icon
MCP icon descriptor (the schema's
Icons.icons entry shape), used by Implementation.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumIcon color-scheme hint, restricted to the schema's two legal values (MCP wire uses lowercase strings). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAppends to the ordered list of available sizes.addSizes(Collection<String> value) Appends to the ordered list of available sizes.Icon MIME type.getSizes()Ordered list of available sizes (for example"48x48"or"any").getSrc()Icon source location (typically a URI).getTheme()Color-scheme theme this icon is suited for.setMimeType(String value) Sets the icon MIME type.Sets the ordered list of available sizes.Sets the ordered list of available sizes.Sets the icon source location.setTheme(Icon.Theme value) Sets the color-scheme theme.
-
Constructor Details
-
Icon
public Icon()
-
-
Method Details
-
getSrc
Icon source location (typically a URI).Required by the schema; not validated by this DTO.
- Returns:
- The source, or
nullif not set.
-
setSrc
Sets the icon source location.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getMimeType
Icon MIME type.- Returns:
- The MIME type, or
nullif not set.
-
setMimeType
Sets the icon MIME type.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getSizes
Ordered list of available sizes (for example"48x48"or"any").- Returns:
- The sizes list, or
nullif not set.
-
setSizes
Sets the ordered list of available sizes.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
setSizes
Sets the ordered list of available sizes.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
addSizes
Appends to the ordered list of available sizes.- Parameters:
value- The values to append.- Returns:
- This object (for method chaining).
-
addSizes
Appends to the ordered list of available sizes.- Parameters:
value- The values to append.- Returns:
- This object (for method chaining).
-
getTheme
Color-scheme theme this icon is suited for.- Returns:
- The theme, or
nullif not set.
-
setTheme
Sets the color-scheme theme.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-