Package com.opengamma.financial.depgraph.rest

Examples of com.opengamma.financial.depgraph.rest.DependencyGraphTraceBuilderProperties.addRequirement()


      constraints = ValueProperties.parse(valueReq.substring(i + 1, valueReq.length() - 1));
    } else {
      name = valueReq;
      constraints = ValueProperties.none();
    }
    properties = properties.addRequirement(new ValueRequirement(name, targetType, ((UniqueIdentifiable) leafNode).getUniqueId(), constraints));
    DependencyGraphBuildTrace trace = getToolContext().getDependencyGraphTraceProvider().getTrace(properties);
    ResolutionFailureTreeTableModel failuresTreeTableModel = new ResolutionFailureTreeTableModel(trace.getFailures());
    return failuresTreeTableModel;
  }
 
View Full Code Here


    String valueName = "test1";
    String targetType = "POSITION";
    String idStr = "GOLDMAN~Foo1";
    ExternalId id = ExternalId.parse(idStr);

    properties = properties.addRequirement(new ValueRequirement(valueName, new ComputationTargetRequirement(ComputationTargetType.POSITION, id)));

    URI uri = _provider.buildUri(properties);

    String uriStr = decode(uri);
    assertTrue(uriStr.contains("requirement/" + valueName + "/" + targetType + "/" + idStr));
View Full Code Here

    String valueName = "test1";
    String targetType = "POSITION";
    String idStr = "GOLDMAN~Foo1";
    UniqueId id = UniqueId.parse(idStr);

    properties = properties.addRequirement(new ValueRequirement(valueName, new ComputationTargetSpecification(ComputationTargetType.POSITION, id)));

    URI uri = _provider.buildUri(properties);

    String uriStr = decode(uri);
    assertTrue(uriStr.contains("value/" + valueName + "/" + targetType + "/" + idStr));
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.