Examples of DMAttribute


Examples of xbird.xquery.dm.value.node.DMAttribute

            Iterator<DMAttribute> a2Itor = e2.attribute().iterator();
            while(a1Itor.hasNext()) {
                if(!a2Itor.hasNext()) {
                    return false;
                }
                DMAttribute a1 = a1Itor.next();
                DMAttribute a2 = a2Itor.next();
                QualifiedName a1name = a1.nodeName();
                QualifiedName a2name = a2.nodeName();
                if(!a1name.equals(a2name)) {
                    return false;
                }
                String a1val = a1.getContent();
                String a2val = a2.getContent();
                assert (a1val != null);
                if(collator != null) {
                    if(!collator.equals(a1val, a2val)) {
                        return false;
                    }
View Full Code Here

Examples of xbird.xquery.dm.value.node.DMAttribute

                                nodes.add(e);
                            }
                            continue;
                        }
                    }
                    DMAttribute idatt = e.getAttribute(XMLConstants.XML_NS_URI, "id");
                    if(idatt != null && id.equals(idatt.getContent())) {
                        nodes.add(e);
                    }
                } else {
                    assert (curNode instanceof DTMElement);
                    // If no candidate ID value matches the IDREF value of any element or attribute,
                    // the function returns the empty sequence.
                    return Collections.<XQNode> emptyList();
                }
            } else if(byIDRef && nodekind == NodeKind.ATTRIBUTE) {
                if(curNode instanceof DMAttribute) {
                    DMAttribute att = (DMAttribute) curNode;
                    if(att.isIdrefs()) {
                        String val = att.typedValue().stringValue();
                        if(id.equals(val)) {
                            nodes.add(att);
                        }
                        continue;
                    }
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.