Examples of Value


Examples of org.apache.isis.applib.annotation.Value

     * Returns a {@link ValueFacet} implementation.
     */
    private ValueFacet create(final Class<?> cls, final FacetHolder holder) {

        // create from annotation, if present
        final Value annotation = Annotations.getAnnotation(cls, Value.class);
        if (annotation != null) {
            final ValueFacetAnnotation facet = new ValueFacetAnnotation(cls, holder, getIsisConfiguration(), createValueSemanticsProviderContext());
            if (facet.isValid()) {
                return facet;
            }
View Full Code Here

Examples of org.apache.ode.bpel.evar.ExternalVariableModule.Value

        }
    }

  public Node readExtVar(Variable variable, Node reference) throws ExternalVariableModuleException {
    Value val = _bpelProcess.getEVM().read(variable, reference, _iid);
    return val.value;
  }
View Full Code Here

Examples of org.apache.openjpa.kernel.exps.Value

        Expression exp = null;
        for (int i = 0; i < count; i++) {
            JPQLNode parent = parametersNode.getChild(i);
            JPQLNode node = onlyChild(parent);
            Value proj = getValue(node);
            exps.projections[i] = proj;
            exps.projectionAliases[i] = nextAlias();
        }
        return exp;
    }
View Full Code Here

Examples of org.apache.openjpa.lib.conf.Value

            ("TransactionMode", props);
        boolean managed;
        if (str == null)
            managed = conf.isTransactionModeManaged();
        else {
            Value val = conf.getValue("TransactionMode");
            managed = Boolean.parseBoolean(val.unalias(str));
        }

        Object obj = Configurations.removeProperty("ConnectionRetainMode",
            props);
        int retainMode;
        if (obj instanceof Number)
            retainMode = ((Number) obj).intValue();
        else if (obj == null)
            retainMode = conf.getConnectionRetainModeConstant();
        else {
            Value val = conf.getValue("ConnectionRetainMode");
            try {
                retainMode = Integer.parseInt(val.unalias((String) obj));
            } catch (Exception e) {
                throw new ArgumentException(_loc.get("bad-em-prop",
                    "openjpa.ConnectionRetainMode", obj),
                    new Throwable[]{ e }, obj, true);
            }
View Full Code Here

Examples of org.apache.poi.ss.formula.functions.Value

        retval[29] = new Index();
        retval[30] = new Rept();

        retval[31] = TextFunction.MID;
        retval[32] = TextFunction.LEN;
        retval[33] = new Value();
        retval[34] = BooleanFunction.TRUE;
        retval[35] = BooleanFunction.FALSE;
        retval[36] = BooleanFunction.AND;
        retval[37] = BooleanFunction.OR;
        retval[38] = BooleanFunction.NOT;
View Full Code Here

Examples of org.apache.shale.tiger.managed.Value

                    mpc.setValue(property.value());
                    mbc.addProperty(mpc);
                    continue;
                }
                // Support deprecated @Value annotation as well
                Value value = (Value) field.getAnnotation(Value.class);
                if (value != null) {
                    if (log().isDebugEnabled()) {
                        log().debug("  Field '" + field.getName() + "' has a @Value annotation");
                    }
                    ManagedPropertyConfig mpc = new ManagedPropertyConfig();
                    mpc.setName(field.getName());
                    mpc.setType(field.getType().getName()); // FIXME - primitives, arrays, etc.
                    mpc.setValue(value.value());
                    mbc.addProperty(mpc);
                    continue;
                }
            }
            config.addManagedBean(mbc);
View Full Code Here

Examples of org.apache.slide.projector.value.Value

        String username = parameter.get(USERNAME).toString();
        String retypedPassword = parameter.get(RETYPE_PASSWORD).toString();
        String password = parameter.get(PASSWORD).toString();
        String state = OK;
        // Check spelling
        Value user = NullValue.NULL;
        if ( !password.equals(retypedPassword) ) {
            context.addInformation(new Information(Information.ERROR, new ErrorMessage("register/passwordsNotIdentical"), new String[] { PASSWORD, RETYPE_PASSWORD }));
            state = FAILED;
        } else {
            try {
View Full Code Here

Examples of org.apache.synapse.mediators.Value

    private void populateParameters(MessageContext synCtx) {
        Iterator<String> params = pName2ExpressionMap.keySet().iterator();
        while (params.hasNext()) {
            String parameter = params.next();
            if (!"".equals(parameter)) {
                Value expression = pName2ExpressionMap.get(parameter);
                if (expression != null) {
                    EIPUtils.createSynapseEIPTemplateProperty(synCtx, targetTemplate, parameter, expression);
                }
            }
        }
View Full Code Here

Examples of org.apache.tapestry.ioc.annotations.Value

        AnnotationProvider annotationProvider = mockAnnotationProvider();
        ObjectLocator locator = mockObjectLocator();
        String annotationValue = "${foo}";
        String expanded = "Foo";
        Runnable coerced = mockRunnable();
        Value annotation = newMock(Value.class);

        train_getAnnotation(annotationProvider, Value.class, annotation);

        expect(annotation.value()).andReturn(annotationValue);

        train_expandSymbols(symbolSource, annotationValue, expanded);
        train_coerce(coercer, expanded, Runnable.class, coerced);

        replay();
View Full Code Here

Examples of org.apache.tapestry5.ioc.annotations.Value

    }

    @Override
    public <T> T provide(Class<T> objectType, AnnotationProvider annotationProvider, ObjectLocator locator)
    {
        Value annotation = annotationProvider.getAnnotation(Value.class);

        if (annotation == null) return null;

        String value = annotation.value();
        Object expanded = symbolSource.expandSymbols(value);

        IntermediateType intermediate = annotationProvider.getAnnotation(IntermediateType.class);

        if (intermediate != null) expanded = typeCoercer.coerce(expanded, intermediate.value());
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.