com.thaiopensource.relaxng.translate.util.NmtokenParam 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.translate.util;
import com.thaiopensource.xml.util.Naming;
public abstract class NmtokenParam extends AbstractParam {
public void set(String value) throws InvalidParamValueException {
if (!Naming.isNmtoken(value))
throw new ParamProcessor.LocalizedInvalidValueException("invalid_nmtoken");
setNmtoken(value);
}
protected abstract void setNmtoken(String value) throws InvalidParamValueException;
}