Package org.exist.xquery.value

Examples of org.exist.xquery.value.AnyURIValue


  {
    if(attributeQName == null)
      {return null;}
    if(attributeValue == null)
      {return null;}
    final AtomicValue comparison = new AnyURIValue(attributeValue);

    final DocumentSet documentSet = getPolicyDocuments(broker, true);
    final NodeSet nodeSet = documentSet.docsToNodeSet();

        final NativeValueIndex valueIndex = broker.getValueIndex();
View Full Code Here


      return doQuery(query, docs, null, null);
    }
 
  protected void setupContext(Source source, XQueryContext context) throws XMLDBException, XPathException {
      try {
        context.setBaseURI(new AnyURIValue(properties.getProperty("base-uri", collection.getPath())));
      } catch(final XPathException e) {
        throw new XMLDBException(ErrorCodes.INVALID_URI,"Invalid base uri",e);
      }
    if(moduleLoadPath != null)
      {context.setModuleLoadPath(moduleLoadPath);}
View Full Code Here

          //declare external variables
          context.declareVariable(bindingPrefix + "type", EVENT_TYPE_PREPARE);
          context.declareVariable(bindingPrefix + "event", new StringValue(eventToString(event)));
         
          if (isCollection)
            {context.declareVariable(bindingPrefix + "collection", new AnyURIValue(src));}
          else
            {context.declareVariable(bindingPrefix + "collection", new AnyURIValue(src.removeLastSegment()));}

          context.declareVariable(bindingPrefix + "uri", new AnyURIValue(src));
          if (dst == null)
            {context.declareVariable(bindingPrefix + "new-uri", Sequence.EMPTY_SEQUENCE);}
          else
            {context.declareVariable(bindingPrefix + "new-uri", new AnyURIValue(dst));}
         
          // For backward compatibility
          context.declareVariable(bindingPrefix + "eventType", EVENT_TYPE_PREPARE);
          context.declareVariable(bindingPrefix + "triggerEvent", new StringValue(eventToString(event)));

          if (isCollection)
            {context.declareVariable(bindingPrefix + "collectionName", new AnyURIValue(src));}
          else {
            context.declareVariable(bindingPrefix + "collectionName", new AnyURIValue(src.removeLastSegment()));
            context.declareVariable(bindingPrefix + "documentName", new AnyURIValue(src));
          }
         
          //declare user defined parameters as external variables
          for(final Iterator itUserVarName = userDefinedVariables.keySet().iterator(); itUserVarName.hasNext();)
          {
View Full Code Here

          //declare external variables
          context.declareVariable(bindingPrefix + "type", EVENT_TYPE_FINISH);
          context.declareVariable(bindingPrefix + "event", new StringValue(eventToString(event)));
         
          if (isCollection)
            {context.declareVariable(bindingPrefix + "collection", new AnyURIValue(src));}
          else
            {context.declareVariable(bindingPrefix + "collection", new AnyURIValue(src.removeLastSegment()));}
       
          context.declareVariable(bindingPrefix + "uri", new AnyURIValue(src));
          if (dst == null)
            {context.declareVariable(bindingPrefix + "new-uri", Sequence.EMPTY_SEQUENCE);}
          else
            {context.declareVariable(bindingPrefix + "new-uri", new AnyURIValue(dst));}
         
          // For backward compatibility
          context.declareVariable(bindingPrefix + "eventType", EVENT_TYPE_FINISH);
          context.declareVariable(bindingPrefix + "triggerEvent", new StringValue(eventToString(event)));
          if (isCollection)
            {context.declareVariable(bindingPrefix + "collectionName", new AnyURIValue(src));}
          else {
            context.declareVariable(bindingPrefix + "collectionName", new AnyURIValue(src.removeLastSegment()));
            context.declareVariable(bindingPrefix + "documentName", new AnyURIValue(src));
          }
         
          //declare user defined parameters as external variables
          for(final Iterator itUserVarName = userDefinedVariables.keySet().iterator(); itUserVarName.hasNext();)
          {
View Full Code Here

         
        final UserDefinedFunction function = context.resolveFunction(functionName, urls.length);
        if (function != null) {
          final List<Expression> args = new ArrayList<Expression>(urls.length);
          for (int i = 0; i < urls.length; i++)
            args.add(new LiteralValue(context, new AnyURIValue(urls[i])));
         
          pm = broker.getBrokerPool().getProcessMonitor();
         
              context.getProfiler().traceQueryStart();
              pm.queryStarted(context.getWatchDog());
View Full Code Here

TOP

Related Classes of org.exist.xquery.value.AnyURIValue

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.