public class AdditionalInfo
extends java.lang.Object
SubstitutionScheduleDay.addMessage(String) might be more appropriate.| Constructor and Description |
|---|
AdditionalInfo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getText()
Get the content text of this additional info.
|
java.lang.String |
getTitle()
Get the title of this additional info
|
int |
hashCode() |
boolean |
hasInformation()
Find out if this AdditionalInfo contains urgent information the user of an app should be notified about.
|
boolean |
isFromSchedule() |
void |
setFromSchedule(boolean fromSchedule)
Set whether this AdditionalInfo was parsed from the school's own schedule (true) or from a separate
AdditionalInfoParser (false).
|
void |
setHasInformation(boolean hasInformation)
Set if this AdditionalInfo contains urgent information the user of an app should be notified about.
|
void |
setText(java.lang.String text)
Set the content text of this additional info.
|
void |
setTitle(java.lang.String title)
Set the title of this additional info.
|
@NotNull public java.lang.String getTitle()
public void setTitle(@NotNull
java.lang.String title)
title - the title to set@NotNull public java.lang.String getText()
<b>bold</b> and <i>italic</i>.public void setText(@NotNull
java.lang.String text)
<b>bold</b> and <i>italic</i>. Required.text - the text to setpublic boolean hasInformation()
public void setHasInformation(boolean hasInformation)
hasInformation - boolean indicating if this AdditionalInfo contains urgent informationpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isFromSchedule()
public void setFromSchedule(boolean fromSchedule)
fromSchedule - whether this AdditionalInfo was parsed from the school's own schedule