コンストラクタ, Getter, Setter

This commit is contained in:
r-ca 2023-12-25 14:25:22 +09:00
parent bc06438811
commit 5ff6ac32ba
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -8,8 +8,67 @@ public class XmlMetaModel {
String title; String title;
String author; String author;
String description; String description;
Date created; // Date created;
Date updated; // Date updated;
String defaultBranch; String defaultBranch;
ArrayList<XmlMetaPageModel> pages; ArrayList<XmlMetaPageModel> pages;
// Constructor
public XmlMetaModel() {
}
public XmlMetaModel(String title, String author, String description, String defaultBranch, ArrayList<XmlMetaPageModel> pages) {
this.title = title;
this.author = author;
this.description = description;
this.defaultBranch = defaultBranch;
this.pages = pages;
}
// Getter
public String getTitle() {
return title;
}
public String getAuthor() {
return author;
}
public String getDescription() {
return description;
}
public String getDefaultBranch() {
return defaultBranch;
}
public ArrayList<XmlMetaPageModel> getPages() {
return pages;
}
// Setter
public void setTitle(String title) {
this.title = title;
}
public void setAuthor(String author) {
this.author = author;
}
public void setDescription(String description) {
this.description = description;
}
public void setDefaultBranch(String defaultBranch) {
this.defaultBranch = defaultBranch;
}
public void setPages(ArrayList<XmlMetaPageModel> pages) {
this.pages = pages;
}
} }