Record Class CellMetadata
java.lang.Object
java.lang.Record
smile.util.ipynb.CellMetadata
- Record Components:
collapsed- whether the cell output is collapsed (nullif unset). Deprecated in nbformat 5; usejupyter.outputs_hidden.scrolled- whether the cell output is scrolled — can betrue,false, or the string"auto". Deprecated in nbformat 5; usejupyter.outputs_hidden.deletable- whether the cell is deletable from the UI.editable- whether the cell is editable.format- the MIME type for raw cells (legacy; preferraw_mimetype).rawMimetype- the MIME type indicating the target format for a raw cell (e.g."text/restructuredtext"). This is the nbformat 5 replacement forformat.name- an optional name for the cell used by tools.- a list of string tags for the cell.jupyter- sub-object for Jupyter front-end specific metadata, includingsource_hiddenandoutputs_hidden.execution- cell-level execution timing metadata.
public record CellMetadata(Boolean collapsed, Object scrolled, Boolean deletable, Boolean editable, String format, String rawMimetype, String name, List<String> tags, Map<String,Object> jupyter, Map<String,Object> execution)
extends Record
Cell-level metadata. All fields are optional; unknown metadata keys are
preserved in the
collapsed, scrolled, and tags
fields where applicable, and any additional properties should be round-tripped
transparently when using JsonAnySetter /
JsonAnyGetter on richer implementations.
In nbformat 5, collapsed and scrolled are deprecated at the
cell level; the replacements are jupyter.outputs_hidden and
jupyter.source_hidden inside the jupyter sub-object.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aCellMetadatawith all fields set tonull.CellMetadata(Boolean collapsed, Object scrolled, Boolean deletable, Boolean editable, String format, String rawMimetype, String name, List<String> tags, Map<String, Object> jupyter, Map<String, Object> execution) Creates an instance of aCellMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecollapsedrecord component.Returns the value of thedeletablerecord component.editable()Returns the value of theeditablerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionrecord component.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.jupyter()Returns the value of thejupyterrecord component.name()Returns the value of thenamerecord component.Returns the value of therawMimetyperecord component.scrolled()Returns the value of thescrolledrecord component.tags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CellMetadata
public CellMetadata()Constructs aCellMetadatawith all fields set tonull. -
CellMetadata
public CellMetadata(Boolean collapsed, Object scrolled, Boolean deletable, Boolean editable, String format, String rawMimetype, String name, List<String> tags, Map<String, Object> jupyter, Map<String, Object> execution) Creates an instance of aCellMetadatarecord class.- Parameters:
collapsed- the value for thecollapsedrecord componentscrolled- the value for thescrolledrecord componentdeletable- the value for thedeletablerecord componenteditable- the value for theeditablerecord componentformat- the value for theformatrecord componentrawMimetype- the value for therawMimetyperecord componentname- the value for thenamerecord componenttags- the value for thetagsrecord componentjupyter- the value for thejupyterrecord componentexecution- the value for theexecutionrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
collapsed
-
scrolled
-
deletable
-
editable
-
format
-
rawMimetype
Returns the value of therawMimetyperecord component.- Returns:
- the value of the
rawMimetyperecord component
-
name
-
tags
-
jupyter
-
execution
-