Package xbird.xquery.dm.instance.DocumentTableModel

Examples of xbird.xquery.dm.instance.DocumentTableModel.DTMElement


                    return nsuri;
                }
            }
        } else {
            assert (node instanceof DTMElement);
            DTMElement e = ((DTMElement) node);
            DTMAttribute att = null;
            for(int i = 0; (att = e.attribute(0)) != null; i++) {
                final String attPrefix = att.nodeName().getPrefix();
                if(prefix.equals(attPrefix)) {
                    final String nsuri = att.getNamespaceURI();
                    return nsuri;
                }
View Full Code Here


            return _delegate.nodeName();
        }

        @Override
        public INodeSequence<DMAttribute> attribute() {
            DTMElement e = (DTMElement) _delegate;
            final INodeSequence attributes = new AttributeStep.AttributeEmurationSequence(e, NodeTest.ANYNODE, DynamicContext.DUMMY);
            return new DMNodeSequenceEmuration<DMAttribute>(attributes);
        }
View Full Code Here

            return new DMNodeSequenceEmuration<DMAttribute>(attributes);
        }

        @Override
        public INodeSequence<DMNamespace> namespaceNodes() {
            DTMElement e = (DTMElement) _delegate;
            final INodeSequence namespaces = new AttributeStep.NamespaceEmurationSequence(e, NodeTest.ANYNODE, DynamicContext.DUMMY);
            return new DMNodeSequenceEmuration<DMNamespace>(namespaces);
        }
View Full Code Here

                }
            }
        } else {
            // TODO performance improvement!
            assert (n1 instanceof DTMElement && n2 instanceof DTMElement);
            DTMElement e1 = (DTMElement) n1, e2 = (DTMElement) n2;
            DTMAttribute att1 = null;
            for(int i = 0; (att1 = e1.attribute(i)) != null; i++) {
                DTMAttribute att2 = e2.attribute(i);
                if(!att1.nodeName().equals(att2.nodeName())) {
                    return false;
                }
                final String att1val = att1.getContent();
View Full Code Here

            return _delegate.nodeName();
        }

        @Override
        public INodeSequence<DMAttribute> attribute() {
            DTMElement e = (DTMElement) _delegate;
            final INodeSequence attributes = new AttributeStep.AttributeEmurationSequence(e, NodeTest.ANYNODE, DynamicContext.DUMMY);
            return new DMNodeSequenceEmuration<DMAttribute>(attributes);
        }
View Full Code Here

            return new DMNodeSequenceEmuration<DMAttribute>(attributes);
        }

        @Override
        public INodeSequence<DMNamespace> namespaceNodes() {
            DTMElement e = (DTMElement) _delegate;
            final INodeSequence namespaces = new AttributeStep.NamespaceEmurationSequence(e, NodeTest.ANYNODE, DynamicContext.DUMMY);
            return new DMNodeSequenceEmuration<DMNamespace>(namespaces);
        }
View Full Code Here

TOP

Related Classes of xbird.xquery.dm.instance.DocumentTableModel.DTMElement

Copyright © 2018 www.massapicom. 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.