public void parse(Attribute attribute, MediaData.Builder builder, ParseState state) { bool isAutoSelect = ParseUtil.parseYesNo(attribute); builder.withAutoSelect(isAutoSelect); state.getMaster().isNotAutoSelect = !isAutoSelect; if (state.getMaster().isDefault&& !isAutoSelect) { throw ParseException.create(ParseExceptionType.AUTO_SELECT_DISABLED_FOR_DEFAULT, tag: null, context: attribute.ToString()); } }
public void parse(Attribute attribute, StartData.Builder builder, ParseState state) { builder.withPrecise(ParseUtil.parseYesNo(attribute)); }
public void parse(Attribute attribute, MediaData.Builder builder, ParseState state) { builder.withForced(ParseUtil.parseYesNo(attribute)); }