java.lang.Object
java.lang.Record
org.snapfx.persistence.DockNodeFactory.UnknownElementContext
- Record Components:
elementType- unsupported serialized element typedockNodeId- serialized DockNode type ID (may benull)layoutId- serialized layout ID (may benull)title- serialized title (may benull)jsonPath- JSON path of the unsupported type field
- Enclosing interface:
DockNodeFactory
public static record DockNodeFactory.UnknownElementContext(String elementType, String dockNodeId, String layoutId, String title, String jsonPath)
extends Record
Context passed to
DockNodeFactory.createUnknownNode(UnknownElementContext).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedockNodeIdrecord component.Returns the value of theelementTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.jsonPath()Returns the value of thejsonPathrecord component.layoutId()Returns the value of thelayoutIdrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UnknownElementContext
public UnknownElementContext(String elementType, String dockNodeId, String layoutId, String title, String jsonPath) Creates an instance of aUnknownElementContextrecord class.- Parameters:
elementType- the value for theelementTyperecord componentdockNodeId- the value for thedockNodeIdrecord componentlayoutId- the value for thelayoutIdrecord componenttitle- the value for thetitlerecord componentjsonPath- the value for thejsonPathrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
elementType
Returns the value of theelementTyperecord component.- Returns:
- the value of the
elementTyperecord component
-
dockNodeId
Returns the value of thedockNodeIdrecord component.- Returns:
- the value of the
dockNodeIdrecord component
-
layoutId
Returns the value of thelayoutIdrecord component.- Returns:
- the value of the
layoutIdrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
jsonPath
Returns the value of thejsonPathrecord component.- Returns:
- the value of the
jsonPathrecord component
-