Пример #1
0
    private void  fromJSONCountryName(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        StockAttributeValueJSON convert_classy = StockAttributeValueJSON.from_json(json_value, ignore_extras, true);

        setCountryName(convert_classy);
    }
Пример #2
0
    private void  fromJSONRequestedStockExchangeLongName(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        StockAttributeValueJSON convert_classy = StockAttributeValueJSON.from_json(json_value, ignore_extras, true);

        setRequestedStockExchangeLongName(convert_classy);
    }
Пример #3
0
    private void  fromJSONStockExchangeSymbol(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        StockAttributeValueJSON convert_classy = StockAttributeValueJSON.from_json(json_value, ignore_extras, true);

        setStockExchangeSymbol(convert_classy);
    }
Пример #4
0
 public void setCountryName(StockAttributeValueJSON new_value)
 {
     if (flagHasCountryName)
     {
     }
     flagHasCountryName = true;
     storeCountryName   = new_value;
 }
Пример #5
0
 public void setStockExchangeSymbol(StockAttributeValueJSON new_value)
 {
     if (flagHasStockExchangeSymbol)
     {
     }
     flagHasStockExchangeSymbol = true;
     storeStockExchangeSymbol   = new_value;
 }
Пример #6
0
 public void setStockExchangeLongName(StockAttributeValueJSON new_value)
 {
     if (flagHasStockExchangeLongName)
     {
     }
     flagHasStockExchangeLongName = true;
     storeStockExchangeLongName   = new_value;
 }
Пример #7
0
 public void setRequestedStockExchangeShortName(StockAttributeValueJSON new_value)
 {
     if (flagHasRequestedStockExchangeShortName)
     {
     }
     flagHasRequestedStockExchangeShortName = true;
     storeRequestedStockExchangeShortName   = new_value;
 }
Пример #8
0
 public void setLongName(StockAttributeValueJSON new_value)
 {
     if (flagHasLongName)
     {
     }
     flagHasLongName = true;
     storeLongName   = new_value;
 }
Пример #9
0
 public void setMediumName(StockAttributeValueJSON new_value)
 {
     if (flagHasMediumName)
     {
     }
     flagHasMediumName = true;
     storeMediumName   = new_value;
 }
Пример #10
0
 public void setShortPossessiveName(StockAttributeValueJSON new_value)
 {
     if (flagHasShortPossessiveName)
     {
     }
     flagHasShortPossessiveName = true;
     storeShortPossessiveName   = new_value;
 }
Пример #11
0
        protected override void finish()
        {
            StockAttributeValueJSON result = new StockAttributeValueJSON();

            Debug.Assert(result != null);
            finish(result);
            int extra_count = unknownFieldGenerator.field_names.Count;

            Debug.Assert(extra_count == unknownFieldGenerator.field_values.Count);
            for (int extra_num = 0; extra_num < extra_count; ++extra_num)
            {
                result.extraStockAttributeValueAppendPair(unknownFieldGenerator.field_names[extra_num], unknownFieldGenerator.field_values[extra_num]);
            }
            unknownFieldGenerator.field_names.Clear();
            unknownFieldGenerator.field_values.Clear();
            unknownFieldGenerator.index = new Dictionary <string, JSONValue>();
            handle_result(result);
        }
Пример #12
0
 protected void finish(StockAttributeValueJSON result)
 {
     if (fieldGeneratorSpoken.have_value)
     {
         result.setSpoken(fieldGeneratorSpoken.value);
         fieldGeneratorSpoken.have_value = false;
     }
     else if ((!(result.hasSpoken())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"Spoken\" field was missing.");
     }
     if (fieldGeneratorDisplay.have_value)
     {
         result.setDisplay(fieldGeneratorDisplay.value);
         fieldGeneratorDisplay.have_value = false;
     }
     else if ((!(result.hasDisplay())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"Display\" field was missing.");
     }
     if (fieldGeneratorTable.have_value)
     {
         result.setTable(fieldGeneratorTable.value);
         fieldGeneratorTable.have_value = false;
     }
     if (fieldGeneratorNative.have_value)
     {
         result.setNative(fieldGeneratorNative.value);
         fieldGeneratorNative.have_value = false;
     }
     else if ((!(result.hasNative())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"Native\" field was missing.");
     }
     if (fieldGeneratorRationalValue.have_value)
     {
         result.setRationalValueText(fieldGeneratorRationalValue.value);
         fieldGeneratorRationalValue.have_value = false;
     }
     else if ((!(result.hasRationalValue())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"RationalValue\" field was missing.");
     }
 }
Пример #13
0
 protected override void handle_result(StockAttributeValueJSON result)
 {
     top.value.Add(result);
 }
Пример #14
0
        protected override void handle_result(StockAttributeValueJSON result)
        {
//@@@            Debug.Assert(!have_value);
            have_value = true;
            value      = result;
        }
Пример #15
0
 protected abstract void handle_result(StockAttributeValueJSON new_result);