Examples of QualifiedName


Examples of xbird.xquery.misc.QNameTable.QualifiedName

            long attid;
            for(int i = 0; (attid = getAttribute(i)) != -1; i++) {
                assert (attid != -1);
                byte attkind = store.getNodeKindAt(attid);
                if(attkind == NodeKind.ATTRIBUTE) {
                    QualifiedName qname = store.getAttributeName(attid);
                    String nsuri = qname.getNamespaceURI();
                    String attname = qname.getLocalPart();
                    if(XQueryConstants.XSI_URI.equals(nsuri) && "nil".equals(attname)) {
                        String attval = store.getText(attid);
                        if(attval == null) {
                            return false;
                        }

Examples of xbird.xquery.misc.QNameTable.QualifiedName

        Item firstItem = argv.getItem(0);
        if(firstItem.isEmpty()) {
            return ValueSequence.EMPTY_SEQUENCE;
        }
        QNameValue arg = (QNameValue) firstItem;
        QualifiedName qname = arg.getValue();
        String prefix = qname.getPrefix();
        if(prefix.length() == 0) {
            return ValueSequence.EMPTY_SEQUENCE;
        }
        return new XString(prefix, NCNameType.NCNAME);
    }

Examples of xbird.xquery.misc.QNameTable.QualifiedName

        String baseuri = super.baseUri();
        if(baseuri != null) {
            return baseuri;
        }
        for(DMAttribute att : _attributes) {
            QualifiedName attname = att.nodeName();
            if(XMLConstants.XML_NS_URI.equals(attname.getNamespaceURI())
                    && "base".equals(attname.getLocalPart())) {
                String uri = att.getContent();
                setBaseUri(uri);
                return uri;
            }
        }

Examples of xbird.xquery.misc.QNameTable.QualifiedName

        if(!(trg instanceof QNameValue)) {
            throw new XQRTException("err:XPTY0004", "Imcomparable "
                    + trg.getClass().getSimpleName() + " with QNameValue");
        }
        final QNameValue qname = (QNameValue) trg;
        final QualifiedName targetName = qname.getValue();
        if(value.equals(targetName)) {
            return 0;
        } else {
            return value.identity() > qname.value.identity() ? 1 : -1;
        }

Examples of xbird.xquery.misc.QNameTable.QualifiedName

    public CastingFunction() {
        super();
    }

    public void initialize(String funcName) {
        QualifiedName resolvedName = resolve(funcName);
        this._funcName = resolvedName;
        Type type = obtainType(funcName);
        this._returnType = type;
        final FunctionSignature[] sig = new FunctionSignature[1];
        sig[0] = new FunctionSignature(resolvedName, new Type[] { TypeRegistry.safeGet("xs:anyAtomicType?") });

Examples of xbird.xquery.misc.QNameTable.QualifiedName

                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();

Examples of xbird.xquery.misc.QNameTable.QualifiedName

            }
        }
    }

    public final int getNameCode() {
        QualifiedName name = nodeName();
        if(name == null) {
            return -1;
        }
        return name.identity();
    }

Examples of xbird.xquery.misc.QNameTable.QualifiedName

        return expr;
    }

    public XQExpression visit(AttributeConstructor constructor, XQueryContext ctxt)
            throws XQueryException {
        final QualifiedName name = constructor.getName();
        if(name == null) {
            XQExpression nameExpr = constructor.getNameExpr();
            nameExpr.visit(this, ctxt);
        }
        for(XQExpression v : constructor.getValueExprs()) {

Examples of xbird.xquery.misc.QNameTable.QualifiedName

        return ret;
    }

    private static Map<String, DTMDocument> resolveCatalog(DTMDocument catalog, DynamicContext dynEnv)
            throws XQueryException {
        QualifiedName top = catalog.nodeName();
        if(QNameUtil.isSame(top, COLLECTION_CATALOG_NSURI, "collection")) {
            Map<String, DTMDocument> map = new HashMap<String, DTMDocument>();
            for(XQNode child = catalog.firstChild(); child != null; child = child.nextSibling()) {
                QualifiedName sec = child.nodeName();
                if(QNameUtil.isSame(sec, COLLECTION_CATALOG_NSURI, "document")) {
                    String urlstr = child.stringValue();
                    final URL url;
                    try {
                        url = new URL(urlstr);
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.