Package com.opengamma.financial.security.swap

Examples of com.opengamma.financial.security.swap.SecurityNotional$Meta


      }

      @Override
      public Notional visitSecurityNotional(SecurityNotional ignore) {
        UniqueId uniqueId = uniqueIdBeanToUniqueId(bean.getIdentifier());
        return new SecurityNotional(uniqueId);
      }

      @Override
      public Notional visitVarianceSwapNotional(VarianceSwapNotional notional) {
        return new VarianceSwapNotional(currencyBeanToCurrency(bean.getCurrency()), bean.getAmount());
View Full Code Here


        String[] s = str.split(" ", 2);       
        return new InterestRateNotional(Currency.of(s[0].trim()), Double.parseDouble(s[1].trim()));
      } else if (cls.isAssignableFrom(CommodityNotional.class)) {
        return new CommodityNotional();
      } else if (cls.isAssignableFrom(SecurityNotional.class)) {
        return new SecurityNotional(UniqueId.parse(str));
      } else if (cls.isAssignableFrom(VarianceSwapNotional.class)) {
        String[] s = str.split(" ", 2);
        return new VarianceSwapNotional(Currency.of(s[0].trim()), Double.parseDouble(s[1].trim()));
      }
      return null;
View Full Code Here

TOP

Related Classes of com.opengamma.financial.security.swap.SecurityNotional$Meta

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.