Examples of attributeValue()


Examples of com.btaz.datautil.xml.model.Element.attributeValue()

            }

            // - attributes values
            for(int i=0; i<ea.getAttributeNames().size(); i++) {
                if(! ea.attributeValue(ea.getAttributeNames().get(i))
                        .equals(eb.attributeValue(eb.getAttributeNames().get(i)))) {
                    return new Difference(a, b, "Element attribute values are different");
                }
            }

            // - element type
View Full Code Here

Examples of com.btaz.util.reader.xml.model.Element.attributeValue()

                    return true;
                }
                break;
            case NODENAME_NAME_VALUE:
                if((nodename.equals("*") || nodename.equals(element.getName()))
                        && (attributeName.equals("*") || attributeValue.equals(element.attributeValue(attributeName)))) {
                    return true;
                }
                break;
            default:
                return false;
View Full Code Here

Examples of com.btaz.util.xml.model.Element.attributeValue()

        }
        Element element = (Element) node;
        if(this.level != level) {
            return MatchType.NOT_A_MATCH;
        } else if(element.getName().equals(elementName) && element.hasAttribute(attributeName)
                && element.attributeValue(attributeName).equals(attributeValue)) {
            return MatchType.NODE_MATCH;
        }
        return MatchType.NOT_A_MATCH;
    }
View Full Code Here

Examples of com.dotcms.repackage.org.dom4j.Element.attributeValue()

    Iterator itr1 = doc.getRootElement().elements("category").iterator();

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

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

      List portlets = new ArrayList();

      Iterator itr2 = category.elements("portlet").iterator();
View Full Code Here

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

Examples of org.dom4j.Attribute.attributeValue()

    }
    for (Iterator<Element> iterator = rootElement.elementIterator(); iterator.hasNext();)
    {
      Element element = iterator.next();
      String nodeName = element.getName();
      int level = element.attributeValue("level") == null ? 0 : Integer.valueOf(element.attributeValue("level"));
      int lease = (int) ((element.attributeValue("lease") == null ? 0 : Integer.valueOf(element.attributeValue("lease"))) * Config.RESIDENCE_LEASE_FUNC_MULTIPLIER);
      int npcId = element.attributeValue("npcId") == null ? 0 : Integer.valueOf(element.attributeValue("npcId"));
      int listId = element.attributeValue("listId") == null ? 0 : Integer.valueOf(element.attributeValue("listId"));
      ResidenceFunction function = null;
      if (nodeName.equalsIgnoreCase("teleport"))
View Full Code Here

Examples of org.dom4j.Element.attributeValue()

            while (iter.hasNext()) {
                Element element = (Element) iter.next();
                if ("settings".equals(element.getName())) {
                    readElements(element, settings);
                } else if ("objects".equals(element.getName())) {
                    Class clazz = Class.forName(element.attributeValue("class"));
                    readGeneric(clazz, element);
                }
            }
        } catch (Exception ex) {
            throw new RuntimeException(ex);
View Full Code Here

Examples of org.dom4j.Element.attributeValue()

                } else if ("eventsMap".equals(element.getName())) {
                    Map map = FastMap.newInstance();
                    for (Object evEl : element.elements()) {
                        Element evElement = (Element) evEl;
                        long ref = getRef(evElement);
                        Role role = Role.valueOf(evElement.attributeValue("role"));
                        map.put(getObject(ref, Event.class), role);
                    }
                    return (T) map;
                }
            } else if (Event.class.isAssignableFrom(obj.getClass())) {
View Full Code Here

Examples of org.dom4j.Element.attributeValue()

            Element element = (Element) obj;
            Constraint constraint = null;

            if (RasterConstraint.class.getSimpleName().equals(element.getName())) {
                BitSet bs = getResult(obj, BitSet.class, element);
                int length = Integer.parseInt(element.attributeValue("length"));
                constraint = new RasterConstraint(new WeekRasterImpl(
                        new BitRasterImpl(bs, length)));

            } else if (EventOrderConstraint.class.getSimpleName().equals(element.getName())) {
                UnsupportedOperationException excFirstEl = new UnsupportedOperationException(
View Full Code Here

Examples of org.dom4j.Element.attributeValue()

            List list = document.getRootElement().elements();
            Iterator iter = list.iterator();
            while (iter.hasNext()) {
                Element element = (Element) iter.next();
                try {
                    Class clazz = Class.forName(element.attributeValue("class"));
                    Parsing p = objParsing.getParsing(clazz);
                    Object obj = p.parse(element.getText());
                    setObject(element.getName(), obj);
                } catch (Exception ex) {
                    throw new UnsupportedOperationException("Couldn't read property:"
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.