Пример #1
0
        protected override void handle_result(TypeValue new_value)
        {
            StockAttributeJSON result = new StockAttributeJSON();

            result.setValue(new_value);
            handle_result(result);
        }
Пример #2
0
    private void  fromJSONAttributeType(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        StockAttributeJSON convert_classy = StockAttributeJSON.from_json(json_value, ignore_extras, true);

        setAttributeType(convert_classy);
    }
Пример #3
0
 public void setAttributeType(StockAttributeJSON new_value)
 {
     if (flagHasAttributeType)
     {
     }
     flagHasAttributeType = true;
     storeAttributeType   = new_value;
 }
Пример #4
0
 public void setAttributeType(string chars)
 {
     StockAttributeJSON.TypeValueKnownValues known     = StockAttributeJSON.stringToValue(chars);
     StockAttributeJSON.TypeValue            new_value = new StockAttributeJSON.TypeValue();
     if (known == StockAttributeJSON.TypeValueKnownValues.Value__none)
     {
         new_value.in_known_list = false;
         new_value.string_value  = chars;
     }
     else
     {
         new_value.in_known_list = true;
         new_value.list_value    = known;
     }
     setAttributeType(new_value);
 }
Пример #5
0
 protected override void handle_result(StockAttributeJSON result)
 {
     top.value.Add(result);
 }
Пример #6
0
        protected override void handle_result(StockAttributeJSON result)
        {
//@@@            Debug.Assert(!have_value);
            have_value = true;
            value      = result;
        }
Пример #7
0
 protected abstract void handle_result(StockAttributeJSON new_result);