Examples of atomize()


Examples of org.exist.xquery.value.Item.atomize()

        AtomicValue min = null;
        while (iter.hasNext()) {
                final Item item = iter.nextItem();
                if (item instanceof QNameValue)
                {throw new XPathException(this, ErrorCodes.FORG0006, "Cannot compare " + Type.getTypeName(item.getType()), arg);}
                AtomicValue value = item.atomize();

                //Duration values must either all be xs:yearMonthDuration values or must all be xs:dayTimeDuration values.
            if (Type.subTypeOf(value.getType(), Type.DURATION)) {
              value = ((DurationValue)value).wrap();
              if (value.getType() == Type.YEAR_MONTH_DURATION) {
View Full Code Here

Examples of org.exist.xquery.value.Item.atomize()

                final Item item = iter.nextItem();

                if (item instanceof QNameValue)
                {throw new XPathException(this, ErrorCodes.FORG0006, "Cannot compare " + Type.getTypeName(item.getType()), arg);}
               
                AtomicValue value = item.atomize();                

                //Duration values must either all be xs:yearMonthDuration values or must all be xs:dayTimeDuration values.
            if (Type.subTypeOf(value.getType(), Type.DURATION)) {
              value = ((DurationValue)value).wrap();
              if (value.getType() == Type.YEAR_MONTH_DURATION) {
View Full Code Here

Examples of org.exist.xquery.value.Item.atomize()

        Item item;
        AtomicValue value;
        boolean hasAlreadyNaN = false;
        for (final SequenceIterator i = seq.iterate(); i.hasNext();) {
            item = i.nextItem();
            value = item.atomize();
            if (!set.contains(value)) {
                if (Type.subTypeOf(value.getType(), Type.NUMBER)) {
                    if (((NumericValue)value).isNaN()) {
                        //although NaN does not equal itself, if $arg
                        //contains multiple NaN values a single NaN is returned.
View Full Code Here

Examples of org.exist.xquery.value.Item.atomize()

        {zero = getArgument(1).eval(contextSequence, contextItem);}
      result = zero;
    } else {
        final SequenceIterator iter = inner.iterate();
        Item item = iter.nextItem();
        AtomicValue value = item.atomize();

          value = check(value, null);
       
        //Set the first value
        ComputableValue sum = (ComputableValue) value;
View Full Code Here

Examples of org.exist.xquery.value.Item.atomize()

  private void evalEnclosedExpr(Sequence seq, StringBuilder buf) throws XPathException {
    Item item;
    AtomicValue atomic;
    for(final SequenceIterator i = seq.iterate(); i.hasNext();) {
      item = i.nextItem();
      atomic = item.atomize();
      buf.append(atomic.getStringValue());
      if(i.hasNext())
        {buf.append(' ');}
    }
  }
View Full Code Here

Examples of org.exist.xquery.value.NodeValue.atomize()

                                    if (value instanceof ReferenceNode)
                                        {value = ((ReferenceNode) value).getReference();}
                                }
                                final String type = elem.getAttribute("type");
        if (type != null && Type.subTypeOf(Type.getType(type), Type.ATOMIC)) {
          innerContext.declareVariable(qname, value.atomize().convertTo(Type.getType(type)));
        } else {
          innerContext.declareVariable(qname, value);
        }
      } else if (child.getNodeType() == Node.ELEMENT_NODE &&  "output-size-limit".equals(child.getLocalName())) {
        final Element elem = (Element) child;
View Full Code Here

Examples of org.pdf4j.saxon.type.SchemaType.atomize()

            if (stype == null) {
                String typeName = getNamePool().getDisplayName(annotation);
                throw new XPathException("Unknown type annotation " +
                        Err.wrap(typeName) + " in document instance");
            } else {
                return stype.atomize(this);
            }
        }
    }

View Full Code Here

Examples of org.pdf4j.saxon.type.SchemaType.atomize()

            if (stype == null) {
                String typeName = getNamePool().getDisplayName(annotation);
                throw new XPathException("Unknown type annotation " +
                        Err.wrap(typeName) + " in document instance");
            } else {
                return stype.atomize(this);
            }
        }
    }

    /**
 
View Full Code Here

Examples of org.pdf4j.saxon.type.SchemaType.atomize()

                    if (stype == null) {
                        String typeName = config.getNamePool().getDisplayName(typeAnnotation);
                        throw new IllegalStateException("Unknown type annotation " +
                                Err.wrap(typeName) + " in standalone node");
                    } else {
                        return stype.atomize(this);
                    }
                }
        }
    }
View Full Code Here

Examples of xbird.xquery.dm.value.Item.atomize()

    }

    public Sequence eval(Sequence<? extends Item> contextSeq, ValueSequence argv, DynamicContext dynEnv)
            throws XQueryException {
        final Item arg = argv.getItem(0);
        return arg.atomize(dynEnv);
    }

}
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.