Examples of DoubleAttribute


Examples of com.sun.xacml.attr.DoubleAttribute

            retVal = new AnyURIAttribute((URI) object);
        if (object instanceof Boolean)
            retVal = ((Boolean) object) ? BooleanAttribute.getTrueInstance() : BooleanAttribute
                    .getFalseInstance();
        if (object instanceof Double)
            retVal = new DoubleAttribute((Double) object);
        if (object instanceof Float)
            retVal = new DoubleAttribute((Float) object);
        if (object instanceof Integer)
            retVal = new IntegerAttribute((Integer) object);
        if (object instanceof Date)
            retVal = new DateTimeAttribute((Date) object);
        if (object instanceof Geometry) {
View Full Code Here

Examples of com.sun.xacml.attr.DoubleAttribute

        }
        if (BooleanAttribute.identifier.equals(type)) {
            return BooleanAttribute.getInstance(value);
        }
        if (DoubleAttribute.identifier.equals(type)) {
            return new DoubleAttribute(Double.parseDouble(value));
        }
        if (DateAttribute.identifier.equals(type)) {
            return new DateAttribute(DateFormat.getDateInstance().parse(value));
        }
        if (DateTimeAttribute.identifier.equals(type)) {
View Full Code Here

Examples of com.sun.xacml.attr.DoubleAttribute

        case ID_DOUBLE_MULTIPLY: {
            double arg0 = ((DoubleAttribute) argValues[0]).getValue();
            double arg1 = ((DoubleAttribute) argValues[1]).getValue();
            double product = arg0 * arg1;

            result = new EvaluationResult(new DoubleAttribute(product));
            break;
        }
        }

        return result;
View Full Code Here

Examples of com.sun.xacml.attr.DoubleAttribute

        EvaluationResult result = evalArgs(inputs, context, argValues);
        if (result != null)
            return result;

        GeometryAttribute geomAttr = (GeometryAttribute) (argValues[0]);
        DoubleAttribute doubleAttr = (DoubleAttribute) (argValues[1]);

        Geometry resultGeom = null;

        try {
            resultGeom = geomAttr.getGeometry().buffer(doubleAttr.getValue());
        } catch (Throwable t) {
            return exceptionError(t);
        }

        return createGeometryInBagResult(resultGeom, geomAttr.getSrsName());
View Full Code Here

Examples of com.sun.xacml.attr.DoubleAttribute

            return result;

        // Now that we have real values, perform the floor operation
        double arg = ((DoubleAttribute) argValues[0]).getValue();

        return new EvaluationResult(new DoubleAttribute(Math.floor(arg)));
    }
View Full Code Here

Examples of com.sun.xacml.attr.DoubleAttribute

        }
        case ID_DOUBLE_ABS: {
            double arg = ((DoubleAttribute) argValues[0]).getValue();
            double absValue = Math.abs(arg);

            result = new EvaluationResult(new DoubleAttribute(absValue));
            break;
        }
        }

        return result;
View Full Code Here

Examples of com.sun.xacml.attr.DoubleAttribute

        }
        case ID_INTEGER_TO_DOUBLE: {
            long arg0 = ((IntegerAttribute) argValues[0]).getValue();
            double doubleValue = (double) arg0;

            result = new EvaluationResult(new DoubleAttribute(doubleValue));
            break;
        }
        }

        return result;
View Full Code Here

Examples of com.sun.xacml.attr.DoubleAttribute

            retVal = new AnyURIAttribute((URI) object);
        if (object instanceof Boolean)
            retVal = ((Boolean) object) ? BooleanAttribute.getTrueInstance() : BooleanAttribute
                    .getFalseInstance();
        if (object instanceof Double)
            retVal = new DoubleAttribute((Double) object);
        if (object instanceof Float)
            retVal = new DoubleAttribute((Float) object);
        if (object instanceof Integer)
            retVal = new IntegerAttribute((Integer) object);
        if (object instanceof Date)
            retVal = new DateTimeAttribute((Date) object);
        if (object instanceof Geometry) {
View Full Code Here

Examples of com.sun.xacml.attr.DoubleAttribute

            for (int index = 0; index < argValues.length; index++) {
                double arg = ((DoubleAttribute) argValues[index]).getValue();
                sum = sum + arg;
            }

            result = new EvaluationResult(new DoubleAttribute(sum));
            break;
        }
        }

        return result;
View Full Code Here

Examples of com.sun.xacml.attr.DoubleAttribute

                roundValue = lower;
            else
                roundValue = higher;
        }

        return new EvaluationResult(new DoubleAttribute(roundValue));
    }
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.