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); }
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); }
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); }
public void setCountryName(StockAttributeValueJSON new_value) { if (flagHasCountryName) { } flagHasCountryName = true; storeCountryName = new_value; }
public void setStockExchangeSymbol(StockAttributeValueJSON new_value) { if (flagHasStockExchangeSymbol) { } flagHasStockExchangeSymbol = true; storeStockExchangeSymbol = new_value; }
public void setStockExchangeLongName(StockAttributeValueJSON new_value) { if (flagHasStockExchangeLongName) { } flagHasStockExchangeLongName = true; storeStockExchangeLongName = new_value; }
public void setRequestedStockExchangeShortName(StockAttributeValueJSON new_value) { if (flagHasRequestedStockExchangeShortName) { } flagHasRequestedStockExchangeShortName = true; storeRequestedStockExchangeShortName = new_value; }
public void setLongName(StockAttributeValueJSON new_value) { if (flagHasLongName) { } flagHasLongName = true; storeLongName = new_value; }
public void setMediumName(StockAttributeValueJSON new_value) { if (flagHasMediumName) { } flagHasMediumName = true; storeMediumName = new_value; }
public void setShortPossessiveName(StockAttributeValueJSON new_value) { if (flagHasShortPossessiveName) { } flagHasShortPossessiveName = true; storeShortPossessiveName = new_value; }
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); }
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."); } }
protected override void handle_result(StockAttributeValueJSON result) { top.value.Add(result); }
protected override void handle_result(StockAttributeValueJSON result) { //@@@ Debug.Assert(!have_value); have_value = true; value = result; }
protected abstract void handle_result(StockAttributeValueJSON new_result);