Exemplo 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);
            }
Exemplo 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");
 }
Exemplo n.º 3
0
 private ReportingCurrency(ReportingCurrencyType type, Currency currency)
 {
     JodaBeanUtils.notNull(type, "type");
     this.type     = type;
     this.currency = currency;
 }