Examples of XdmItem


Examples of net.sf.saxon.s9api.XdmItem

    this.typeFactory = typeFactory;
  }

  @Override
  public XdmValue call(XdmValue[] arguments) throws SaxonApiException {
      XdmItem item = arguments[0].itemAt(0);
      ASTNode nodeOrNull = Utils.getMappedAstNode(mapping, item);
      return (nodeOrNull == null) ? XdmEmptySequence.getInstance() : new ObjValue(nodeOrNull);
  }
View Full Code Here

Examples of net.sf.saxon.s9api.XdmItem

    @Override
    public XdmValue call(XdmValue[] arguments) throws SaxonApiException {
      Object[] funcArguments = new Object[arguments.length];
      Class<?>[] argTypes = func.getArgumentType();
      for(int i=0; i< arguments.length; i++) {
        XdmItem item = arguments[i].itemAt(0);
        funcArguments[i] = translateValue(argTypes[i], item);
      }
        Object result = func.execute(funcArguments, analysisContext);
        if (func.getResultType() == Boolean.class)
          return new XdmAtomicValue((Boolean)result);
View Full Code Here

Examples of net.sf.saxon.s9api.XdmItem

    this.typeFactory = typeFactory;
  }

  @Override
  public XdmValue call(XdmValue[] arguments) throws SaxonApiException {
      XdmItem item = arguments[0].itemAt(0);
      ObjectValue value = (ObjectValue) item.getUnderlyingValue();
    ASTNode node = (ASTNode) value.getObject();
    return new XdmAtomicValue(node.toString());
  }
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.