Examples of IntegerAttribute


Examples of org.jboss.security.xacml.sunxacml.attr.IntegerAttribute

        case ID_INTEGER_MULTIPLY: {
            long arg0 = ((IntegerAttribute) argValues[0]).getValue();
            long arg1 = ((IntegerAttribute) argValues[1]).getValue();
            long product = arg0 * arg1;

            result = new EvaluationResult(new IntegerAttribute(product));
            break;
        }
        case ID_DOUBLE_MULTIPLY: {
            double arg0 = ((DoubleAttribute) argValues[0]).getValue();
            double arg1 = ((DoubleAttribute) argValues[1]).getValue();
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.attr.IntegerAttribute

            for (int index = 0; index < argValues.length; index++) {
                long arg = ((IntegerAttribute) argValues[index]).getValue();
                sum += arg;
            }
           
            result = new EvaluationResult(new IntegerAttribute(sum));
            break;
        }
        case ID_DOUBLE_ADD: {
            double sum = 0;
            for (int index = 0; index < argValues.length; index++) {
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.attr.IntegerAttribute

            // *-size takes a single bag and returns an integer
        case ID_BASE_BAG_SIZE: {
            BagAttribute bag = (BagAttribute)(argValues[0]);

            attrResult = new IntegerAttribute(bag.size());
            break;
        }

            // *-bag takes any number of elements of baseType and
            // returns a bag containing those elements
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.attr.IntegerAttribute

        case ID_INTEGER_SUBTRACT: {
            long arg0 = ((IntegerAttribute) argValues[0]).getValue();
            long arg1 = ((IntegerAttribute) argValues[1]).getValue();
            long difference = arg0 - arg1;

            result = new EvaluationResult(new IntegerAttribute(difference));
            break;
        }
        case ID_DOUBLE_SUBTRACT: {
            double arg0 = ((DoubleAttribute) argValues[0]).getValue();
            double arg1 = ((DoubleAttribute) argValues[1]).getValue();
View Full Code Here

Examples of org.jboss.security.xacml.sunxacml.attr.IntegerAttribute

                break;
            }

            long quotient = dividend / divisor;

            result = new EvaluationResult(new IntegerAttribute(quotient));
            break;
        }
        case ID_DOUBLE_DIVIDE: {
            double dividend = ((DoubleAttribute) argValues[0]).getValue();
            double divisor = ((DoubleAttribute) argValues[1]).getValue();
View Full Code Here

Examples of org.tinyradius.attribute.IntegerAttribute

   */
  public void setAcctStatusType(int acctStatusType) {
    if (acctStatusType < 1 || acctStatusType > 15)
      throw new IllegalArgumentException("bad Acct-Status-Type");
    removeAttributes(ACCT_STATUS_TYPE);
    addAttribute(new IntegerAttribute(ACCT_STATUS_TYPE, acctStatusType));
  }
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.