Esempio n. 1
0
    private void  fromJSONDeviationFromScheduled(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        TimeDifferenceJSON convert_classy = TimeDifferenceJSON.from_json(json_value, ignore_extras, true);

        setDeviationFromScheduled(convert_classy);
    }
Esempio n. 2
0
    private void  fromJSONWaitingPeriod(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        TimeDifferenceJSON convert_classy = TimeDifferenceJSON.from_json(json_value, ignore_extras, true);

        setWaitingPeriod(convert_classy);
    }
Esempio n. 3
0
 public void setDeviationFromScheduled(TimeDifferenceJSON new_value)
 {
     if (flagHasDeviationFromScheduled)
     {
     }
     flagHasDeviationFromScheduled = true;
     storeDeviationFromScheduled   = new_value;
 }
Esempio n. 4
0
 public void setWaitingPeriod(TimeDifferenceJSON new_value)
 {
     if (flagHasWaitingPeriod)
     {
     }
     flagHasWaitingPeriod = true;
     storeWaitingPeriod   = new_value;
 }
Esempio n. 5
0
        protected override void finish()
        {
            TimeDifferenceJSON result = new TimeDifferenceJSON();

            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.extraTimeDifferenceAppendPair(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);
        }
Esempio n. 6
0
 protected void finish(TimeDifferenceJSON result)
 {
     if (fieldGeneratorAmount.have_value)
     {
         result.setAmount(fieldGeneratorAmount.value);
         fieldGeneratorAmount.have_value = false;
     }
     else if ((!(result.hasAmount())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"Amount\" field was missing.");
     }
     if (fieldGeneratorText.have_value)
     {
         result.setText(fieldGeneratorText.value);
         fieldGeneratorText.have_value = false;
     }
     else if ((!(result.hasText())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"Text\" field was missing.");
     }
     if (fieldGeneratorSpokenText.have_value)
     {
         result.setSpokenText(fieldGeneratorSpokenText.value);
         fieldGeneratorSpokenText.have_value = false;
     }
     else if ((!(result.hasSpokenText())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"SpokenText\" field was missing.");
     }
     if (fieldGeneratorShortText.have_value)
     {
         result.setShortText(fieldGeneratorShortText.value);
         fieldGeneratorShortText.have_value = false;
     }
     else if ((!(result.hasShortText())) && !allow_incomplete)
     {
         error("When parsing the object for %what%, the \"ShortText\" field was missing.");
     }
 }
Esempio n. 7
0
 protected override void handle_result(TimeDifferenceJSON result)
 {
     top.value.Add(result);
 }
Esempio n. 8
0
        protected override void handle_result(TimeDifferenceJSON result)
        {
//@@@            Debug.Assert(!have_value);
            have_value = true;
            value      = result;
        }
Esempio n. 9
0
 protected abstract void handle_result(TimeDifferenceJSON new_result);