Modifier and Type | Field and Description |
---|---|
private PartOfDay |
OnlineNewsStory.partOfDay
The part of the day that the news story was captured (morning or
afternoon).
|
private PartOfDay |
TVNewsStory.partOfDay
The part of the day that the news story was broadcast (morning,
afternoon, evening, or late night).
|
Modifier and Type | Method and Description |
---|---|
private static PartOfDay |
NoozFileProcessor.decodePartOfDay(java.lang.String partOfDayCode)
This method decodes the part of the day, which is represented by a
numeral in the data file.
|
PartOfDay |
OnlineNewsStory.getPartOfDay()
Accessor method that returns the part of the day when the capture
occurred.
|
PartOfDay |
TVNewsStory.getPartOfDay()
Accessor method for the part of the day when the broadcast occurred.
|
static PartOfDay |
PartOfDay.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PartOfDay[] |
PartOfDay.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
OnlineNewsStory.setPartOfDay(PartOfDay partOfDay)
Mutator method for the part of the day when the capture occurred.
|
void |
TVNewsStory.setPartOfDay(PartOfDay partOfDay)
Mutator method for the part of the day when the broadcast occurred.
|
Constructor and Description |
---|
OnlineNewsStory(java.time.LocalDate date,
java.lang.String sourceName,
int length,
java.lang.String topic,
java.lang.String subject,
PartOfDay partOfDay,
NewsMaker newsMaker1,
NewsMaker newsMaker2)
The constructor which takes parameters for all of the fields can simply
pass most of them to the constructor for
NewsStory and let
it do most of the work. |
TVNewsStory(java.time.LocalDate date,
java.lang.String sourceName,
int length,
java.lang.String topic,
java.lang.String subject,
PartOfDay partOfDay,
NewsMaker newsMaker1,
NewsMaker newsMaker2)
The constructor which takes parameters for all of the fields can simply
pass most of them to the constructor for
NewsStory and let
it do most of the work. |