fromStr static method
Throws SpWMLException : If the type is incorrect, Throws TypeException.
Implementation
static EnumBtnType fromStr(
String s, int lineStart, int lineEnd, SpWMLInfo? info) {
try {
return EnumBtnType.values.byName(s);
} catch (e) {
throw SpWMLException(
EnumSpWMLExceptionType.typeException, lineStart, lineEnd, info);
}
}