XmlMetaModel更新

This commit is contained in:
r-ca 2024-01-14 16:34:41 +09:00
parent bd5a041424
commit cd5a588545
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -4,12 +4,8 @@ import java.util.ArrayList;
public class XmlMetaModel { public class XmlMetaModel {
String title; String revisionId;
String author;
String description;
// Date created;
// Date updated;
String defaultBranch;
ArrayList<XmlMetaPageModel> pages; ArrayList<XmlMetaPageModel> pages;
// Constructor // Constructor
@ -17,31 +13,15 @@ public class XmlMetaModel {
public XmlMetaModel() { public XmlMetaModel() {
} }
public XmlMetaModel(String title, String author, String description, String defaultBranch, ArrayList<XmlMetaPageModel> pages) { public XmlMetaModel(String revisionId, ArrayList<XmlMetaPageModel> pages) {
this.title = title; this.revisionId = revisionId;
this.author = author;
this.description = description;
this.defaultBranch = defaultBranch;
this.pages = pages; this.pages = pages;
} }
// Getter // Getter
public String getTitle() { public String getRevisionId() {
return title; return revisionId;
}
public String getAuthor() {
return author;
}
public String getDescription() {
return description;
}
public String getDefaultBranch() {
return defaultBranch;
} }
public ArrayList<XmlMetaPageModel> getPages() { public ArrayList<XmlMetaPageModel> getPages() {
@ -50,24 +30,11 @@ public class XmlMetaModel {
// Setter // Setter
public void setTitle(String title) { public void setRevisionId(String revisionId) {
this.title = title; this.revisionId = revisionId;
}
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) { public void setPages(ArrayList<XmlMetaPageModel> pages) {
this.pages = pages; this.pages = pages;
} }
} }