mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
index廃止
This commit is contained in:
parent
4b0ea02f16
commit
ff905d9280
|
@ -41,7 +41,6 @@ public class XmlMetaParserImpl implements XmlMetaParser{
|
||||||
for(int i = 0; i < rootElement.getElementsByTagName("pages").getLength(); i++) {
|
for(int i = 0; i < rootElement.getElementsByTagName("pages").getLength(); i++) {
|
||||||
Element pageElement = (Element) rootElement.getElementsByTagName("page").item(i);
|
Element pageElement = (Element) rootElement.getElementsByTagName("page").item(i);
|
||||||
XmlMetaPageModel page = new XmlMetaPageModel();
|
XmlMetaPageModel page = new XmlMetaPageModel();
|
||||||
page.setIndex(Integer.parseInt(pageElement.getElementsByTagName("index").item(0).getTextContent()));
|
|
||||||
page.setFilename(pageElement.getElementsByTagName("filename").item(0).getTextContent());
|
page.setFilename(pageElement.getElementsByTagName("filename").item(0).getTextContent());
|
||||||
pages.add(page);
|
pages.add(page);
|
||||||
}
|
}
|
||||||
|
@ -73,7 +72,6 @@ public class XmlMetaParserImpl implements XmlMetaParser{
|
||||||
Element pagesElement = document.createElement("pages");
|
Element pagesElement = document.createElement("pages");
|
||||||
for(XmlMetaPageModel page : meta.getPages()) {
|
for(XmlMetaPageModel page : meta.getPages()) {
|
||||||
Element pageElement = document.createElement("page");
|
Element pageElement = document.createElement("page");
|
||||||
appendElement(document, pageElement, "index", String.valueOf(page.getIndex()));
|
|
||||||
appendElement(document, pageElement, "filename", page.getFilename());
|
appendElement(document, pageElement, "filename", page.getFilename());
|
||||||
pagesElement.appendChild(pageElement);
|
pagesElement.appendChild(pageElement);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user