Examples of IntegerAttribute


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.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

        switch (getFunctionId()) {
        case ID_INTEGER_ABS: {
            long arg = ((IntegerAttribute) argValues[0]).getValue();
            long absValue = Math.abs(arg);

            result = new EvaluationResult(new IntegerAttribute(absValue));
            break;
        }
        case ID_DOUBLE_ABS: {
            double arg = ((DoubleAttribute) argValues[0]).getValue();
            double absValue = Math.abs(arg);
View Full Code Here

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

        switch (getFunctionId()) {
        case ID_DOUBLE_TO_INTEGER: {
            double arg0 = ((DoubleAttribute) argValues[0]).getValue();
            long longValue = (long) arg0;

            result = new EvaluationResult(new IntegerAttribute(longValue));
            break;
        }
        case ID_INTEGER_TO_DOUBLE: {
            long arg0 = ((IntegerAttribute) argValues[0]).getValue();
            double doubleValue = (double) arg0;
View Full Code Here

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

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

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

        switch (getFunctionId()) {
        case ID_INTEGER_ABS: {
            long arg = ((IntegerAttribute) argValues[0]).getValue();
            long absValue = Math.abs(arg);

            result = new EvaluationResult(new IntegerAttribute(absValue));
            break;
        }
        case ID_DOUBLE_ABS: {
            double arg = ((DoubleAttribute) argValues[0]).getValue();
            double absValue = Math.abs(arg);
View Full Code Here

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

        switch (getFunctionId()) {
        case ID_DOUBLE_TO_INTEGER: {
            double arg0 = ((DoubleAttribute) argValues[0]).getValue();
            long longValue = (long) arg0;

            result = new EvaluationResult(new IntegerAttribute(longValue));
            break;
        }
        case ID_INTEGER_TO_DOUBLE: {
            long arg0 = ((IntegerAttribute) argValues[0]).getValue();
            double doubleValue = (double) arg0;
View Full Code Here

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
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.