use of easik.xml.Prettify in project fql by CategoricalData.
the class XMLSchema method toString.
/**
* XML string of the Schema.
*
* @see Prettify
* @return the prettied string
*/
@Override
public String toString() {
final StringBuilder ret = new StringBuilder("<?xml version='1.0' ?>");
final String lineSep = EasikTools.systemLineSeparator();
ret.append(lineSep).append('<').append(getXsNSPrefix()).append("schema ").append(xsNS.toString()).append(attributeFormDefaultUnQualified ? " attributeFormDefault=\"unqualified\" " : " attributeFormDefault=\"qualified\" ").append(elementFormDefaultUnQualified ? " elementFormDefault=\"unqualified\" " : " elementFormDefault=\"qualified\" ").append(targetNS.prettyString(" ", lineSep)).append(" >").append(lineSep);
for (final XSDType t : types) {
ret.append(t.toString()).append(lineSep);
}
for (final XSDBaseNode e : elements) {
ret.append(e.toString()).append(lineSep);
}
ret.append("</").append(getXsNSPrefix()).append("schema>").append(lineSep);
return new Prettify(ret).toString();
}
Aggregations