Examples of evaluate()


Examples of org.javex.operands.ListOperand.evaluate()

      else
        ret = o.toString();
    } else if (JavexUtils.isList(value)) {
      ListOperand lo = new ListOperand(value);
      try {
        List l = (List) lo.evaluate();
        String aux = "";
        for (int n = 0; n < l.size(); n++) {
          String nr = l.get(n).toString();
          if (JavexUtils.isVariable(nr)) {
            Object o = variables.get(nr.toUpperCase());

Examples of org.jaxen.BaseXPath.evaluate()

    protected void assertValueOfXPath(String expected, Object context, String xpathStr) throws JaxenException
    {
        try
        {
            BaseXPath xpath = new BaseXPath(xpathStr, getNavigator());
            Object node = xpath.evaluate(getContext(context));
            String result = StringFunction.evaluate(node,
                    getNavigator());
            log(debug,
                    "  Select :: " + xpathStr);
            log(debug,

Examples of org.jaxen.XPath.evaluate()

  public NodeList selectNodeList(Node contextNode, String expression) throws JRException
  {
    try
    {
      XPath xpath = getXPath(contextNode, expression);
      Object object = xpath.evaluate(contextNode);
      List nodes;
      if (object instanceof List)
      {
        nodes = (List) object;
      }

Examples of org.jaxen.dom.DOMXPath.evaluate()

  public Object selectObject(Node contextNode, String expression) throws JRException
  {
    try
    {
      XPath xpath = new DOMXPath(expression);
      Object object = xpath.evaluate(contextNode);
      Object value;
      if (object instanceof List)
      {
        List list = (List) object;
        if (list.isEmpty())

Examples of org.jaxen.javabean.JavaBeanXPath.evaluate()

        bob.addBrother( new Person( "dave", 32 ) );
        bob.addBrother( new Person( "jim", 29 ) );
        bob.addBrother( new Person( "larry", 42 ) );
        bob.addBrother( new Person( "ted", 22 ) );

        List result = (List) xpath.evaluate( bob );
        assertEquals(3, result.size());
       
    }

}

Examples of org.jboss.security.xacml.interfaces.PolicyDecisionPoint.evaluate()

        
         PolicyDecisionPoint pdp = util.getPDP(policyRegistration, this.policyContextID);
         if(pdp == null)
            throw new IllegalStateException("PDP is null");
        
         ResponseContext response = pdp.evaluate(requestCtx);
         result = response.getDecision() == XACMLConstants.DECISION_PERMIT ?
               AuthorizationContext.PERMIT : AuthorizationContext.DENY;
      }
      catch(Exception e)
      {

Examples of org.jboss.security.xacml.sunxacml.AbstractPolicy.evaluate()

                return new Result(Result.DECISION_DENY,
                                  context.getResourceId().encode());

            if (match.getResult() == MatchResult.MATCH) {
                // evaluate the policy
                Result result = policy.evaluate(context);
                int effect = result.getDecision();
               
                // unlike in the RuleCombining version of this alg, we always
                // return DENY if any Policy returns DENY or INDETERMINATE
                if ((effect == Result.DECISION_DENY) ||

Examples of org.jboss.security.xacml.sunxacml.Rule.evaluate()

                          List ruleElements) {
        Iterator it = ruleElements.iterator();
       
        while (it.hasNext()) {
            Rule rule = ((RuleCombinerElement)(it.next())).getRule();
            Result result = rule.evaluate(context);
            int value = result.getDecision();
           
            // in the case of PERMIT, DENY, or INDETERMINATE, we always
            // just return that result, so only on a rule that doesn't
            // apply do we keep going...

Examples of org.jboss.test.security.sunxacml.conformance.support.TestPDP.evaluate()

         String requestFile = null;
         if(i < 10)
            requestFile = mandatoryBase + "IID00" + i + "Request.xml";
         else
            requestFile = mandatoryBase + "IID0" + i + "Request.xml";
         ResponseCtx actualResponse = pdp.evaluate(requestFile);
         assertNotNull("Response for" + i,actualResponse);
        
         String responseFile = null;
         if(i < 10)
            responseFile = mandatoryBase + "IID00" + i + "Response.xml";

Examples of org.jbpm.process.instance.impl.ConstraintEvaluator.evaluate()

                for ( final Iterator<Connection> iterator = outgoing.iterator(); iterator.hasNext(); ) {
                    final Connection connection = (Connection) iterator.next();
                    ConstraintEvaluator constraint = (ConstraintEvaluator) split.getConstraint( connection );
                    if ( constraint != null && constraint.getPriority() < priority && !constraint.isDefault()) {
                        try {
                          if ( constraint.evaluate( this,
                                                      connection,
                                                      constraint ) ) {
                            selected = connection;
                            priority = constraint.getPriority();
                          }
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.