Examples of addProperty()


Examples of org.apache.synapse.mediators.ext.ClassMediator.addProperty()

                handleException(
                    "A Class mediator property must specify the name attribute");
            } else {
                if (child.getAttribute(ATT_VALUE) != null) {
                    String value = child.getAttribute(ATT_VALUE).getAttributeValue();
                    classMediator.addProperty(propName, value);
                    PropertyHelper.setInstanceProperty(propName, value, m);
                } else {
                    OMNode omElt = child.getFirstElement();
                    if (omElt != null) {
                        classMediator.addProperty(propName, omElt);

Examples of org.apache.synapse.samples.framework.SampleClientResult.addProperty()

                            .getFirstChildWithName(
                                    new QName(addressingNamespace.getNamespaceURI(), "ReferenceParameters"))
                            .getFirstChildWithName(
                                    new QName(eventingNamespace.getNamespaceURI(), "Identifier")).getText();
            log.info("Subscription identifier: " + subId);
            clientResult.addProperty("subId", subId);
            clientResult.incrementResponseCount();
        } catch (Exception e) {
            log.error("Fault Received : " + e.toString(), e);
            clientResult.setException(e);
        }

Examples of org.apache.synapse.task.TaskDescription.addProperty()

        OMElement propElem = FACTORY.createOMElement("property", TASK_OM_NAMESPACE);
        OMNamespace nullNS = FACTORY.createOMNamespace("", "");
        propElem.addAttribute("name", "axisService", nullNS);
        propElem.addAttribute("value", axisService.getName(), nullNS);
        taskDescription.addProperty(propElem);

        resources.put(MashupConstants.AXIS2_CONFIGURATION_CONTEXT, configurationContext);


        switch (argCount) {

Examples of org.apache.syncope.client.to.ConnBundleTO.addProperty()

                    connConfPropSchema.setOrder(configurationProperty.getOrder());

                    // set confidential
                    connConfPropSchema.setConfidential(configurationProperty.isConfidential());

                    connectorBundleTO.addProperty(connConfPropSchema);
                }

                LOG.debug("Bundle properties: {}", connectorBundleTO.getProperties());

                connectorBundleTOs.add(connectorBundleTO);

Examples of org.apache.syncope.client.to.WorkflowFormTO.addProperty()

            }
            if (propertyTO.getType() == WorkflowFormPropertyType.Enum) {
                propertyTO.setEnumValues((Map<String, String>) fProp.getType().getInformation("values"));
            }

            formTO.addProperty(propertyTO);
        }

        return formTO;
    }

Examples of org.apache.syncope.common.to.ConnBundleTO.addProperty()

                    connConfPropSchema.setRequired(configurationProperty.isRequired());
                    connConfPropSchema.setType(configurationProperty.getType().getName());
                    connConfPropSchema.setOrder(configurationProperty.getOrder());
                    connConfPropSchema.setConfidential(configurationProperty.isConfidential());

                    connBundleTO.addProperty(connConfPropSchema);
                }

                LOG.debug("Connector bundle: {}", connBundleTO);

                connectorBundleTOs.add(connBundleTO);

Examples of org.apache.syncope.common.to.WorkflowFormTO.addProperty()

            }
            if (propertyTO.getType() == WorkflowFormPropertyType.Enum) {
                propertyTO.setEnumValues((Map<String, String>) fProp.getType().getInformation("values"));
            }

            formTO.addProperty(propertyTO);
        }

        return formTO;
    }

Examples of org.apache.tuscany.core.builder.ContextFactory.addProperty()

            }
            // handle properties
            List<ConfiguredProperty> configuredProperties = component.getConfiguredProperties();
            if (configuredProperties != null) {
                for (ConfiguredProperty property : configuredProperties) {
                    contextFactory.addProperty(property.getName(), property.getValue());
                }
            }
            // handle references and source side reference chains
            List<ConfiguredReference> configuredReferences = component.getConfiguredReferences();
            if (configuredReferences != null) {

Examples of org.apache.tuscany.sca.binding.notification.encoding.ReferenceProperties.addProperty()

            epr.setEndpointAddress(epa);
            if (brokerID != null) {
                BrokerID cbi = new BrokerID();
                cbi.setID(brokerID);
                ReferenceProperties crp = new ReferenceProperties();
                crp.addProperty(cbi);
                epr.setReferenceProperties(crp);
            }
            ConsumerReference cr = new ConsumerReference();
            cr.setReference(epr);
            sub = new Subscribe();

Examples of org.apache.velocity.app.VelocityEngine.addProperty()

    public void testIncludeNotFound() throws Exception
    {
        VelocityEngine ve = new VelocityEngine();
        ve.setProperty(RuntimeConstants.EVENTHANDLER_INCLUDE, "org.apache.velocity.app.event.implement.IncludeNotFound");
        ve.addProperty(RuntimeConstants.FILE_RESOURCE_LOADER_PATH, FILE_RESOURCE_LOADER_PATH);
        ve.init();

        Template template;
        FileOutputStream fos;
        Writer fwriter;
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.