Examples of XpathDefinition


Examples of org.wso2.carbon.cep.core.XpathDefinition

            OMElement xpathDefinitionElement = (OMElement) iterator.next();
            String prefix = xpathDefinitionElement.getAttributeValue(
                    new QName(CEPConstants.CEP_CONF_ATTR_PREFIX));
            String namespace = xpathDefinitionElement.getAttributeValue(
                    new QName(CEPConstants.CEP_CONF_ATTR_NAMESPACE));
            XpathDefinition xpathDefinition = new XpathDefinition();
            xpathDefinition.setPrefix(prefix);
            xpathDefinition.setNamespace(namespace);
            mapping.addXpathDefinition(xpathDefinition);
        }

        for (Iterator iterator = mappingElement.getChildrenWithName(new QName(CEPConstants.CEP_CONF_NAMESPACE,
                CEPConstants.CEP_CONF_ELE_PROPERTY)); iterator.hasNext();) {
View Full Code Here

Examples of org.wso2.carbon.cep.core.XpathDefinition

        try {
            StAXOMBuilder stAXOMBuilder = new StAXOMBuilder(new ByteArrayInputStream(xmlString.getBytes()));
            OMElement omElement = stAXOMBuilder.getDocumentElement();

            ArrayList<XpathDefinition> xpathDefinitionsList = new ArrayList<XpathDefinition>();
            XpathDefinition xpathDefinition = new XpathDefinition();
            xpathDefinition.setPrefix("statdata");
            xpathDefinition.setNamespace("http://wso2.org/ns/2009/09/bam/service/statistics/data");
            xpathDefinitionsList.add(xpathDefinition);

            Object value = OMElementProcessor.getValue(omElement,
                    "//statdata:ServiceStatisticsData/statdata:RequestCount",
                    "java.lang.Integer",
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.