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); }
public virtual void test_type() { assertEquals(ReportingCurrencyType.of("Specific").ToString(), "Specific"); assertEquals(ReportingCurrencyType.of("Natural").ToString(), "Natural"); assertEquals(ReportingCurrencyType.of("None").ToString(), "None"); }
private ReportingCurrency(ReportingCurrencyType type, Currency currency) { JodaBeanUtils.notNull(type, "type"); this.type = type; this.currency = currency; }