Package com.opengamma.financial.security.lookup

Examples of com.opengamma.financial.security.lookup.SecurityAttributeMapper.valueFor()


    CurrencyPairs ccyPairs = (CurrencyPairs) inputs.getComputedValue(ValueRequirementNames.CURRENCY_PAIRS).getValue();

    SecurityAttributeMapper mapper = DefaultSecurityAttributeMappings.create(ccyPairs);
   
    Security security = target.getPositionOrTrade().getSecurity();
    Object result = mapper.valueFor(_attribute, security);
   
    return Collections.singleton(new ComputedValue(getSpec(target), result));
  }

  private ValueSpecification getSpec(ComputationTarget target) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.