| Constructor and Description |
|---|
Story()
Empty builder
|
Story(int idStory,
String title,
Theme theme1,
Theme theme2,
User author,
Date date)
Builder of a Story
|
Story(String title,
Theme theme1,
Theme theme2,
User author,
Date date)
Builder of a Story without id
|
Story(String title,
Theme theme1,
User author,
Date date)
Builder of a Story without id and theme2
|
| Modifier and Type | Method and Description |
|---|---|
User |
getAuthor()
Returns the author of a story
|
Date |
getDate()
Returns the date of a story
|
int |
getIdStory()
Returns the id of a story
|
String |
getText()
Returns the text of a story
|
Theme |
getTheme1()
Returns the theme1 of a story
|
Theme |
getTheme2()
Returns the theme2 of a story
|
String |
getTitle()
Returns the title of a story
|
void |
setAuthor(User author)
Modify the author of a story, without being null
|
void |
setDate(Date date)
Modify the date of a story, without being null
|
void |
setText(String text)
Modify the text of a story, without being null
|
void |
setTheme1(Theme theme1)
Modify the theme1 of a story, without being null
|
void |
setTheme2(Theme theme2)
Modify the theme2 of a story, without being null
|
void |
setTitle(String title)
Modify the title of a story, without being null
|
protected String text
public Story(String title, Theme theme1, Theme theme2, User author, Date date)
title - theme1 - theme2 - author - date - public Story(int idStory,
String title,
Theme theme1,
Theme theme2,
User author,
Date date)
idStory - title - theme1 - theme2 - author - date - public Story(String title, Theme theme1, User author, Date date)
title - theme1 - author - date - public Story()
public int getIdStory()
public String getTitle()
public void setTitle(String title)
title - public Theme getTheme1()
public void setTheme1(Theme theme1)
theme1 - public Theme getTheme2()
public void setTheme2(Theme theme2)
theme2 - public User getAuthor()
public void setAuthor(User author)
author - public Date getDate()
public void setDate(Date date)
date - public String getText()
public void setText(String text)
text - Copyright © 2019. All rights reserved.