com.thaiopensource.relaxng.translate.util.NCNameParam 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
Trang, a multi-format schema converter based on RELAX NG.
package com.thaiopensource.relaxng.translate.util;
import com.thaiopensource.xml.util.Naming;
public abstract class NCNameParam extends AbstractParam {
public void set(String value) throws InvalidParamValueException {
if (!Naming.isNcname(value))
throw new ParamProcessor.LocalizedInvalidValueException("invalid_ncname");
setNCName(value);
}
protected abstract void setNCName(String value) throws InvalidParamValueException;
}