Beispiel #1
0
    private void  fromJSONAmount(JSONValue json_value, bool ignore_extras)
    {
        Debug.Assert(json_value != null);
        AmountJSON convert_classy = AmountJSON.from_json(json_value, ignore_extras, true);

        setAmount(convert_classy);
    }
Beispiel #2
0
 public void setAmount(AmountJSON new_value)
 {
     if (flagHasAmount)
     {
     }
     flagHasAmount = true;
     storeAmount   = new_value;
 }
Beispiel #3
0
 public void setValue(AmountJSON new_value)
 {
     if (flagHasValue)
     {
     }
     flagHasValue = true;
     storeValue   = new_value;
 }
Beispiel #4
0
    public static MonetaryAmountJSON from_AmountJSON_json(AmountJSON ancestor, bool ignore_extras)
    {
        Debug.Assert(ancestor != null);
        MonetaryAmountJSON result;

        {
            HoldingGenerator handler = new HoldingGenerator("Type MonetaryAmount", ignore_extras);
            ancestor.write_as_json(handler);
            result = handler.value;
        }
        return(result);
    }
Beispiel #5
0
 protected override void handle_result(AmountJSON new_result)
 {
     handle_result((MonetaryAmountJSON )new_result);
 }
Beispiel #6
0
 protected override void handle_result(AmountJSON new_result)
 {
     handle_result((UnitOfMeasureAmountJSON )new_result);
 }