Example #1
0
    private void  fromJSONSourceTimeZone(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        TimeZoneJSON convert_classy = TimeZoneJSON.from_json(json_value, ignore_extras, true);

        setSourceTimeZone(convert_classy);
    }
Example #2
0
 public void setTimeZone(TimeZoneJSON new_value)
 {
     if (flagHasTimeZone)
     {
     }
     flagHasTimeZone = true;
     storeTimeZone   = new_value;
 }
Example #3
0
 public void setDestinationTimeZone(TimeZoneJSON new_value)
 {
     if (flagHasDestinationTimeZone)
     {
     }
     flagHasDestinationTimeZone = true;
     storeDestinationTimeZone   = new_value;
 }
Example #4
0
        protected override void finish()
        {
            TimeZoneJSON result = new TimeZoneJSON();

            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.extraTimeZoneAppendPair(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);
        }
Example #5
0
 protected void finish(TimeZoneJSON result)
 {
     if (fieldGeneratorOlsonName.have_value)
     {
         result.setOlsonName(fieldGeneratorOlsonName.value);
         fieldGeneratorOlsonName.have_value = false;
     }
     else if ((!(result.hasOlsonName())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"OlsonName\" field was missing.");
     }
     if (fieldGeneratorLabel.have_value)
     {
         result.setLabel(fieldGeneratorLabel.value);
         fieldGeneratorLabel.have_value = false;
     }
     if (fieldGeneratorSpokenLabel.have_value)
     {
         result.setSpokenLabel(fieldGeneratorSpokenLabel.value);
         fieldGeneratorSpokenLabel.have_value = false;
     }
 }
Example #6
0
 protected override void handle_result(TimeZoneJSON result)
 {
     top.value.Add(result);
 }
Example #7
0
        protected override void handle_result(TimeZoneJSON result)
        {
//@@@            Debug.Assert(!have_value);
            have_value = true;
            value      = result;
        }
Example #8
0
 protected abstract void handle_result(TimeZoneJSON new_result);