Package com.liferay.portal.kernel.xml

Examples of com.liferay.portal.kernel.xml.Element.elements()


            List<EntityColumn> orderColsList = new ArrayList<EntityColumn>();

            order = new EntityOrder(asc, orderColsList);

            List<Element> orderColumnElements = orderElement.elements(
                    "order-column");

            for (Element orderColElement : orderColumnElements) {
                String orderColName = orderColElement.attributeValue("name");
                boolean orderColCaseSensitive = GetterUtil.getBoolean(
View Full Code Here


        Document doc = _saxReader.read(is);

        Element root = doc.getRootElement();

        Iterator<Element> itr1 = root.elements("hint-collection").iterator();

        while (itr1.hasNext()) {
            Element hintCollection = itr1.next();

            String name = hintCollection.attributeValue("name");
View Full Code Here

                hints = new HashMap<String, String>();

                _hintCollections.put(name, hints);
            }

            Iterator<Element> itr2 = hintCollection.elements("hint").iterator();

            while (itr2.hasNext()) {
                Element hint = itr2.next();

                String hintName = hint.attributeValue("name");
View Full Code Here

            _defaultHints.put(name, defaultHints);

            Element defaultHintsEl = model.element("default-hints");

            if (defaultHintsEl != null) {
                Iterator<Element> itr2 = defaultHintsEl.elements(
                        "hint").iterator();

                while (itr2.hasNext()) {
                    Element hint = itr2.next();
View Full Code Here

                Map<String, String> fieldHints = new HashMap<String, String>();

                fieldHints.putAll(defaultHints);

                Iterator<Element> itr3 = field.elements(
                        "hint-collection").iterator();

                while (itr3.hasNext()) {
                    Element hintCollection = itr3.next();
View Full Code Here

            List<String> exceptionList = new ArrayList<String>();

            Element exceptionsElement = rootElement.element("exceptions");

            if (exceptionsElement != null) {
                List<Element> exceptionElements = exceptionsElement.elements(
                        "exception");

                for (Element exceptionElement : exceptionElements) {
                    exceptionList.add(exceptionElement.getText());
                }
View Full Code Here

        Document document = SAXReaderUtil.read(content);

        Element rootElement = document.getRootElement();

        for (Element element : rootElement.elements()) {
            String elementName = element.getName();

            if (!elementName.equals("service-builder-import")) {
                continue;
            }
View Full Code Here

            Element serviceBuilderImportRootElement =
                    serviceBuilderImportDocument.getRootElement();

            for (Element serviceBuilderImportElement :
                    serviceBuilderImportRootElement.elements()) {

                serviceBuilderImportElement.detach();

                rootElement.add(serviceBuilderImportElement);
            }
View Full Code Here

        Document document = SAXReaderUtil.read(new File(_springFileName));

        Element rootElement = document.getRootElement();

        List<Element> beanElements = rootElement.elements("bean");

        for (Element beanElement : beanElements) {
            String beanId = beanElement.attributeValue("id");

            if (beanId.endsWith("Service") &&
View Full Code Here

    Document document = SAXReaderUtil.read(xml);

    Element rootElement = document.getRootElement();

    List<Element> batchElements = rootElement.elements("batch");

    for (Element batchElement : batchElements) {
      String testSQL = batchElement.elementText("test-sql");

      int count = getCount(testSQL);
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.