Package com.volantis.mcs.expression

Examples of com.volantis.mcs.expression.DevicePolicyValueAccessor


        // the return value
        Value value = Sequence.EMPTY;

        // extract the DevicePolicyValueAccessor that contains the current
        // device
        DevicePolicyValueAccessor devicePolicyValueAccessor =
                (DevicePolicyValueAccessor) expressionContext.getProperty(
                        DevicePolicyValueAccessor.class);

        if (devicePolicyValueAccessor != null) {
            String policyValue = devicePolicyValueAccessor.getDeviceName();
            value = createValue(expressionContext.getFactory(), policyValue);
        }

        return value;
    }
View Full Code Here


        super(policyName, policyValue);
    }

    // Javadoc inherited.
    protected Object getCurrentValue(ExpressionContext context) {
        DevicePolicyValueAccessor accessor =
                (DevicePolicyValueAccessor) context.getProperty(
                        DevicePolicyValueAccessor.class);

        return accessor.getDevicePolicyValue(name);
    }
View Full Code Here

         // Default to a UNKNOWN relationship
        DeviceAncestorRelationship deviceRelationship =
                DeviceAncestorRelationship.UNKNOWN;

        // retrieve the DevicePolicyValueAccessor
        DevicePolicyValueAccessor policyAccessor =
                (DevicePolicyValueAccessor) expressionContext.getProperty(
                        DevicePolicyValueAccessor.class);


        if (policyAccessor != null) {
            Value deviceValue = values[0];
            String deviceName = deviceValue.stringValue().asJavaString();

            deviceRelationship = policyAccessor.getRelationshipTo(deviceName);
        }

        // allow sublcasses to process the relationship
        return createFunctionReturnValue(expressionContext.getFactory(),
                                         deviceRelationship);
View Full Code Here

        // the return value

        // extract the DevicePolicyValueAccessor that contains the current
        // device
        DevicePolicyValueAccessor devicePolicyValueAccessor =
                (DevicePolicyValueAccessor) expressionContext.getProperty(
                        DevicePolicyValueAccessor.class);

//        if (devicePolicyValueAccessor != null) {
            String policyValue =
                    devicePolicyValueAccessor.getDependentPolicyValue(
                            policyName);
        Value value = createValue(expressionContext.getFactory(), policyValue);           
//        }

        return value;
View Full Code Here

     */
    public Value invoke(ExpressionContext expressionContext, Value[] values)
            throws ExpressionException {

        // Extract the DevicePolicyValueAccessor for the current device.
        DevicePolicyValueAccessor accessor =
                (DevicePolicyValueAccessor) expressionContext.getProperty(
                        DevicePolicyValueAccessor.class);

        Value defaultValue = Sequence.EMPTY;

View Full Code Here

    protected Value execute(
            ExpressionContext expressionContext, String name,
            Value defaultValue) {

        // Extract the DevicePolicyValueAccessor for the current device.
        DevicePolicyValueAccessor accessor =
                (DevicePolicyValueAccessor) expressionContext.getProperty(
                        DevicePolicyValueAccessor.class);

        return execute(expressionContext, accessor, name, defaultValue);
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.expression.DevicePolicyValueAccessor

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.