Package com.liferay.portal.kernel.xml

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


            boolean localized = GetterUtil.getBoolean(
                    columnElement.attributeValue("localized"));
            boolean colJsonEnabled = GetterUtil.getBoolean(
                    columnElement.attributeValue("json-enabled"), jsonEnabled);
            boolean containerModel = GetterUtil.getBoolean(
                    columnElement.attributeValue("container-model"));
            boolean parentContainerModel = GetterUtil.getBoolean(
                    columnElement.attributeValue("parent-container-model"));

            EntityColumn col = new EntityColumn(
                    columnName, columnDBName, columnType, primary, accessor,
View Full Code Here


            boolean colJsonEnabled = GetterUtil.getBoolean(
                    columnElement.attributeValue("json-enabled"), jsonEnabled);
            boolean containerModel = GetterUtil.getBoolean(
                    columnElement.attributeValue("container-model"));
            boolean parentContainerModel = GetterUtil.getBoolean(
                    columnElement.attributeValue("parent-container-model"));

            EntityColumn col = new EntityColumn(
                    columnName, columnDBName, columnType, primary, accessor,
                    filterPrimary, collectionEntity, mappingTable, idType, idParam,
                    convertNull, lazy, localized, colJsonEnabled, containerModel,
View Full Code Here

        if (orderElement != null) {
            boolean asc = true;

            if ((orderElement.attribute("by") != null) &&
                    orderElement.attributeValue("by").equals("desc")) {

                asc = false;
            }

            List<EntityColumn> orderColsList = new ArrayList<EntityColumn>();
View Full Code Here

            List<Element> finderColumnElements = finderElement.elements(
                    "finder-column");

            for (Element finderColumnElement : finderColumnElements) {
                String finderColName = finderColumnElement.attributeValue(
                        "name");
                boolean finderColCaseSensitive = GetterUtil.getBoolean(
                        finderColumnElement.attributeValue("case-sensitive"), true);
                String finderColComparator = GetterUtil.getString(
                        finderColumnElement.attributeValue("comparator"), "=");
View Full Code Here

            for (Element finderColumnElement : finderColumnElements) {
                String finderColName = finderColumnElement.attributeValue(
                        "name");
                boolean finderColCaseSensitive = GetterUtil.getBoolean(
                        finderColumnElement.attributeValue("case-sensitive"), true);
                String finderColComparator = GetterUtil.getString(
                        finderColumnElement.attributeValue("comparator"), "=");
                String finderColArrayableOperator =
                        GetterUtil.getString(
                                finderColumnElement.attributeValue(
View Full Code Here

                String finderColName = finderColumnElement.attributeValue(
                        "name");
                boolean finderColCaseSensitive = GetterUtil.getBoolean(
                        finderColumnElement.attributeValue("case-sensitive"), true);
                String finderColComparator = GetterUtil.getString(
                        finderColumnElement.attributeValue("comparator"), "=");
                String finderColArrayableOperator =
                        GetterUtil.getString(
                                finderColumnElement.attributeValue(
                                        "arrayable-operator"));
View Full Code Here

                        finderColumnElement.attributeValue("case-sensitive"), true);
                String finderColComparator = GetterUtil.getString(
                        finderColumnElement.attributeValue("comparator"), "=");
                String finderColArrayableOperator =
                        GetterUtil.getString(
                                finderColumnElement.attributeValue(
                                        "arrayable-operator"));

                EntityColumn col = Entity.getColumn(finderColName, columnList);

                if (!col.isFinderPath()) {
View Full Code Here

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

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

            String name = hintCollection.attributeValue("name");

            Map<String, String> hints = _hintCollections.get(name);

            if (hints == null) {
                hints = new HashMap<String, String>();
View Full Code Here

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

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

                String hintName = hint.attributeValue("name");
                String hintValue = hint.getText();

                hints.put(hintName, hintValue);
            }
        }
View Full Code Here

        itr1 = root.elements("model").iterator();

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

            String name = model.attributeValue("name");

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

            _defaultHints.put(name, defaultHints);
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.