Commit c18419d4 authored by Vincent Calame's avatar Vincent Calame

Nettoyage de code

parent 9ccfc643
......@@ -170,7 +170,7 @@ public final class OdXML {
xmlWriter.closeTag("table:table");
}
public static void addTableColummn(XMLWriter xmlWriter, String styleName, int columnsRepeated, String defaultCellStyleName) throws IOException {
public static void addTableColumn(XMLWriter xmlWriter, String styleName, int columnsRepeated, String defaultCellStyleName) throws IOException {
xmlWriter.startOpenTag("table:table-column");
xmlWriter.addAttribute("table:style-name", styleName);
if (columnsRepeated > 1) {
......
......@@ -74,7 +74,7 @@ public class CellStyleEngine {
return;
}
for (OdColumn odColumn : tableInfo.odColumnList) {
OdXML.addTableColummn(xmlWriter, odColumn.getStyleName(), 1, odColumn.getDefaultCellStyle().getName());
OdXML.addTableColumn(xmlWriter, odColumn.getStyleName(), 1, odColumn.getDefaultCellStyle().getName());
}
}
......
......@@ -10,7 +10,6 @@
package net.mapeadores.util.xml;
import java.io.IOException;
import net.mapeadores.util.xml.ns.NameSpace;
/**
......@@ -86,21 +85,6 @@ public class DefaultXMLWriter implements AppendableXMLWriter {
startOpenTag(name, true);
}
public void startOpenTag(String name, NameSpace nameSpace) throws IOException {
startOpenTag(name, true);
String prefix = nameSpace.getPrefix();
append(' ');
append("xmlns");
if (prefix.length() > 0) {
append(':');
append(prefix);
}
append('=');
append('\"');
addText(nameSpace.getName());
append('\"');
}
@Override
public void startOpenTag(String name, boolean indentBefore) throws IOException {
if (indentBefore) {
......@@ -253,21 +237,6 @@ public class DefaultXMLWriter implements AppendableXMLWriter {
}
}
public void addNameSpaceAttribute(NameSpace nameSpace) throws IOException {
String prefix = nameSpace.getPrefix();
String name = nameSpace.getName();
append(' ');
append("xmlns");
if (prefix.length() > 0) {
append(':');
append(prefix);
}
append('=');
append('\"');
addText(name);
append('\"');
}
@Override
public void addAttribute(String attributeName, String value) throws IOException {
if ((value == null) || (value.length() == 0)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment