Record Class LoginPageContent.Message
java.lang.Object
java.lang.Record
ecmwf.common.text.LoginPageContent.Message
- Enclosing class:
LoginPageContent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarticle()Returns the value of thearticlerecord component.audience()Returns the value of theaudiencerecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.getLabel()getText()final inthashCode()Returns a hash code value for this object.booleanbooleanlabel()Returns the value of thelabelrecord component.booleanmarkdown()Returns the value of themarkdownrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Message
-
Message
public Message(String text, String article, String label, String audience, boolean enabled, boolean markdown) Creates an instance of aMessagerecord class.- Parameters:
text- the value for thetextrecord componentarticle- the value for thearticlerecord componentlabel- the value for thelabelrecord componentaudience- the value for theaudiencerecord componentenabled- the value for theenabledrecord componentmarkdown- the value for themarkdownrecord component
-
-
Method Details
-
isMarkdown
public boolean isMarkdown() -
getText
-
getArticle
-
getLabel
-
getAudience
-
isEnabled
public boolean isEnabled() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
article
Returns the value of thearticlerecord component.- Returns:
- the value of the
articlerecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
audience
Returns the value of theaudiencerecord component.- Returns:
- the value of the
audiencerecord component
-
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
markdown
public boolean markdown()Returns the value of themarkdownrecord component.- Returns:
- the value of the
markdownrecord component
-