Record Class PageDescription
java.lang.Object
java.lang.Record
io.meeds.layout.model.PageDescription
public record PageDescription(String pageRef, LayoutVersion version, List<SectionDescription> sections, Boolean editorCompatible)
extends Record
The page in the shape set_page_layout takes. editorCompatible is false when
the stored page is not made of the editor's sections, in which case the
sections are empty: the layout editor refuses such a page too.
-
Constructor Summary
ConstructorsConstructorDescriptionPageDescription(String pageRef, LayoutVersion version, List<SectionDescription> sections, Boolean editorCompatible) Creates an instance of aPageDescriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theeditorCompatiblerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pageRef()Returns the value of thepageRefrecord component.sections()Returns the value of thesectionsrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
PageDescription
public PageDescription(String pageRef, LayoutVersion version, List<SectionDescription> sections, Boolean editorCompatible) Creates an instance of aPageDescriptionrecord class.- Parameters:
pageRef- the value for thepageRefrecord componentversion- the value for theversionrecord componentsections- the value for thesectionsrecord componenteditorCompatible- the value for theeditorCompatiblerecord 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). -
pageRef
Returns the value of thepageRefrecord component.- Returns:
- the value of the
pageRefrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
sections
Returns the value of thesectionsrecord component.- Returns:
- the value of the
sectionsrecord component
-
editorCompatible
Returns the value of theeditorCompatiblerecord component.- Returns:
- the value of the
editorCompatiblerecord component
-