Package org.jboss.security.xacml.sunxacml.attr

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


        // Now that we have real values, perform the mod operation
        long arg0 = ((IntegerAttribute) argValues[0]).getValue();
        long arg1 = ((IntegerAttribute) argValues[1]).getValue();
       
        return new EvaluationResult(new IntegerAttribute(arg0 % arg1));
    }
View Full Code Here


        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

            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

            // *-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

        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

                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

TOP

Related Classes of org.jboss.security.xacml.sunxacml.attr.IntegerAttribute

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.