Пример #1
0
                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());
                    }
                }
Пример #2
0
 public void parse(Attribute attribute, StartData.Builder builder, ParseState state)
 {
     builder.withPrecise(ParseUtil.parseYesNo(attribute));
 }
Пример #3
0
 public void parse(Attribute attribute, MediaData.Builder builder, ParseState state)
 {
     builder.withForced(ParseUtil.parseYesNo(attribute));
 }