Record Class ContentWarning
java.lang.Object
java.lang.Record
io.mindspice.simplypages.components.content.ContentWarning
Non-fatal parse or generation warning captured during content bundle generation.
For generated detail/index collisions,
sectionKey and sourcePath
identify the detail's section and file. The message also identifies the index's
section and directory, states detail precedence and pagination masking, and suggests
choosing non-overlapping base paths or published slugs. Source paths are diagnostic
context, not content intended for automatic public display.-
Constructor Summary
ConstructorsConstructorDescriptionContentWarning(String sectionKey, Path sourcePath, String message) Creates an instance of aContentWarningrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.Returns the value of thesectionKeyrecord component.Returns the value of thesourcePathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ContentWarning
Creates an instance of aContentWarningrecord class.- Parameters:
sectionKey- the value for thesectionKeyrecord componentsourcePath- the value for thesourcePathrecord componentmessage- the value for themessagerecord 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). -
sectionKey
Returns the value of thesectionKeyrecord component.- Returns:
- the value of the
sectionKeyrecord component
-
sourcePath
Returns the value of thesourcePathrecord component.- Returns:
- the value of the
sourcePathrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-