Package com.opengamma.financial.expression

Examples of com.opengamma.financial.expression.NavigablePortfolioNode


      if ("Depth".equals(identifier)) {
        return node.getDepth();
      } else if ("Name".equals(identifier)) {
        return node.getName();
      } else if (identifier.startsWith("Parent.")) {
        final NavigablePortfolioNode parent = node.getNavigableParentNode();
        if (parent != null) {
          return evaluateNodeIdentifier(identifier.substring(7), parent);
        } else {
          return null;
        }
View Full Code Here


    }

    @Override
    protected Object evaluate(final Evaluator evaluator) {
      Position position = (Position) nullForNA(evaluator.getVariable("position"));
      NavigablePortfolioNode node = (NavigablePortfolioNode) nullForNA(evaluator.getVariable("node"));
      if ("isNode".equals(_text)) {
        return (position == null);
      } else if ("isPosition".equals(_text)) {
        return (position != null);
      } else if ((node != null) && _text.startsWith("Node.")) {
View Full Code Here

TOP

Related Classes of com.opengamma.financial.expression.NavigablePortfolioNode

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.