Package org.exist.xquery

Examples of org.exist.xquery.Option


  }

        private Sequence getOption(Sequence[] args) throws XPathException {
            final String qnameString = args[0].getStringValue();
            final QName qname = QName.parse(context, qnameString, context.getDefaultFunctionNamespace());
            final Option option = context.getOption(qname);

            if(option != null) {
                return new StringValue(option.getContents());
            } else {
                return Sequence.EMPTY_SEQUENCE;
            }
        }
View Full Code Here

TOP

Related Classes of org.exist.xquery.Option

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.