Record Class RawCell
java.lang.Object
java.lang.Record
smile.util.ipynb.RawCell
- Record Components:
id- the unique cell identifier (nbformat ≥ 4.5, required in nbformat 5).metadata- the cell-level metadata. UseCellMetadata.rawMimetype()to specify the target MIME type (e.g."text/restructuredtext").source- the raw source content of the cell.attachments- optional map of filename to MIME bundle for inline attachments.
- All Implemented Interfaces:
Cell
public record RawCell(String id, CellMetadata metadata, MultilineString source, Map<String, Map<String, tools.jackson.databind.JsonNode>> attachments)
extends Record
implements Cell
A raw cell. Raw cells contain content that should be passed through
unmodified by nbconvert. The target conversion format is indicated by
CellMetadata.rawMimetype() (nbformat 5) or the legacy
CellMetadata.format() field.
Since nbformat 4.5 / nbformat 5, raw cells may also carry
attachments: inline files stored as a map of filename → MIME bundle.
-
Constructor Summary
ConstructorsConstructorDescriptionRawCell(String id, CellMetadata metadata, MultilineString source, Map<String, Map<String, tools.jackson.databind.JsonNode>> attachments) Creates an instance of aRawCellrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachmentsrecord component.cellType()Returns the cell type identifier.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.metadata()Returns the value of themetadatarecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RawCell
public RawCell(String id, CellMetadata metadata, MultilineString source, Map<String, Map<String, tools.jackson.databind.JsonNode>> attachments) Creates an instance of aRawCellrecord class.- Parameters:
id- the value for theidrecord componentmetadata- the value for themetadatarecord componentsource- the value for thesourcerecord componentattachments- the value for theattachmentsrecord component
-
-
Method Details
-
cellType
-
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). -
id
-
metadata
Returns the value of themetadatarecord component. -
source
Returns the value of thesourcerecord component. -
attachments
Returns the value of theattachmentsrecord component.- Returns:
- the value of the
attachmentsrecord component
-