![JAR search and dependency download from the Maven repository](/logo.png)
com.thaiopensource.relaxng.output.OutputDirectoryParamProcessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trang Show documentation
Show all versions of trang Show documentation
Jing/Trang - tools for validating and translating RelaxNG
The newest version!
package com.thaiopensource.relaxng.output;
import com.thaiopensource.relaxng.translate.util.ParamProcessor;
import com.thaiopensource.relaxng.translate.util.EncodingParam;
import com.thaiopensource.relaxng.translate.util.IntegerParam;
public class OutputDirectoryParamProcessor extends ParamProcessor {
private final OutputDirectory od;
private static final int MAX_INDENT = 16;
public OutputDirectoryParamProcessor(OutputDirectory od) {
this.od = od;
super.declare("encoding",
new EncodingParam() {
protected void setEncoding(String encoding) {
OutputDirectoryParamProcessor.this.od.setEncoding(encoding);
}
});
super.declare("indent",
new IntegerParam(0, MAX_INDENT) {
protected void setInteger(int value) {
OutputDirectoryParamProcessor.this.od.setIndent(value);
}
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy