Esempio n. 1
0
            public override Builder set(string propertyName, object newValue)
            {
                switch (propertyName.GetHashCode())
                {
                case 3575610:         // type
                    this.type = (ReportingCurrencyType)newValue;
                    break;

                case 575402001:         // currency
                    this.currency = (Currency)newValue;
                    break;

                default:
                    throw new NoSuchElementException("Unknown property: " + propertyName);
                }
                return(this);
            }
Esempio n. 2
0
 public virtual void test_type()
 {
     assertEquals(ReportingCurrencyType.of("Specific").ToString(), "Specific");
     assertEquals(ReportingCurrencyType.of("Natural").ToString(), "Natural");
     assertEquals(ReportingCurrencyType.of("None").ToString(), "None");
 }
Esempio n. 3
0
 private ReportingCurrency(ReportingCurrencyType type, Currency currency)
 {
     JodaBeanUtils.notNull(type, "type");
     this.type     = type;
     this.currency = currency;
 }