Examples of promote()


Examples of com.clarkparsia.pellet.rules.builtins.NumericPromotion.promote()

    return ComparisonTesters.notEqual.test( new Literal[] { l1, l2 } );
  }
 
  private void numeric( NumericFunction f, Number expected, Number... args ) {
    NumericPromotion promoter = new NumericPromotion();
    promoter.promote( args );
   
    FunctionApplicationVisitor visitor = new FunctionApplicationVisitor( f );
    promoter.accept( visitor );
    Number result = visitor.getResult();
   
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.block.BlockMgr.promote()

    {
        BlockMgr mgr = setup() ;
        write(mgr, 1234) ;
        mgr.beginRead() ;
        Block b0 = mgr.getRead(0) ;
        mgr.promote(b0) ;
        mgr.endRead() ;
    }

    @Test(expected=BlockException.class)
    public void track_05()
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.block.BlockMgr.promote()

    {
        BlockMgr mgr = setup() ;
        write(mgr, 1234) ;
        mgr.beginRead() ;
        Block b0 = mgr.getRead(0) ;
        mgr.promote(b0) ;
        mgr.endRead() ;
    }

    @Test(expected=BlockException.class)
    public void track_05()
View Full Code Here

Examples of com.volantis.mcs.dom.Element.promote()

                                tracker.closed(stylisticElement);
                            }
                        }
                        if (pushedDown) {
                            // Promote and then remove anti-element.
                            childElement.promote(true);
                            removeElement(childElement);
                            removed = true;

                            // I have had an anti-element that has been
                            // promoted. The dom tree may have changed
View Full Code Here

Examples of org.apache.maven.scm.provider.accurev.AccuRev.promote()

                                                       basedir.getAbsolutePath() ) );
            }
        }
        else
        {
            promotedFiles = accuRev.promote( basedir, fileList, message );
        }


        if ( promotedFiles != null )
        {
View Full Code Here

Examples of org.apache.maven.scm.provider.accurev.AccuRev.promote()

                                                       basedir.getAbsolutePath() ) );
            }
        }
        else
        {
            promotedFiles = accuRev.promote( basedir, fileList, message );
        }


        if ( promotedFiles != null )
        {
View Full Code Here

Examples of org.exist.xquery.value.AtomicValue.promote()

                    if (!Type.subTypeOf(min.getType(), Type.NUMBER))
                      {throw new XPathException(this, ErrorCodes.FORG0006, "Cannot compare " + Type.getTypeName(min.getType()) +
                          " and " + Type.getTypeName(value.getType()), min);}
                    if (((NumericValue) value).isNaN()) {
                      //Type NaN correctly
                      value = value.promote(min);                     
                           if (value.getType() == Type.FLOAT)
                               {min = FloatValue.NaN;}
                           else
                               {min = DoubleValue.NaN;}
                           //although result will be NaN, we need to continue on order to type correctly
View Full Code Here

Examples of org.exist.xquery.value.AtomicValue.promote()

                  if (value instanceof ComputableValue) {
                        if (!(min instanceof ComputableValue))
                            {throw new XPathException(this, ErrorCodes.FORG0006, "Cannot compare " + Type.getTypeName(min.getType()) +
                                    " and " + Type.getTypeName(value.getType()), min);}
                    //Type value correctly
                    value = value.promote(min);
                      min = min.min(collator, value);
                      computableProcessing = true;
                  } else {
                    if (computableProcessing)
                      {throw new XPathException(this, ErrorCodes.FORG0006, "Cannot compare " + Type.getTypeName(min.getType()) +
View Full Code Here

Examples of org.exist.xquery.value.AtomicValue.promote()

                    if (!Type.subTypeOf(max.getType(), Type.NUMBER))
                      {throw new XPathException(this, ErrorCodes.FORG0006, "Cannot compare " + Type.getTypeName(max.getType()) +
                          " and " + Type.getTypeName(value.getType()), max);}
                    if (((NumericValue) value).isNaN()) {
                      //Type NaN correctly
                      value = value.promote(max);
                            if (value.getType() == Type.FLOAT)
                                   {max = FloatValue.NaN;}
                               else
                                   {max = DoubleValue.NaN;}
                            //although result will be NaN, we need to continue on order to type correctly
View Full Code Here

Examples of org.exist.xquery.value.AtomicValue.promote()

                      {max = max.promote(value);}
                  }
                  //Ugly test
                  if (max instanceof ComputableValue && value instanceof ComputableValue) {
                    //Type value correctly
                    value = value.promote(max);
                      max = (ComputableValue) max.max(collator, value);
                      computableProcessing = true;
                  } else {
                    if (computableProcessing)
                      {throw new XPathException(this, ErrorCodes.FORG0006, "Cannot compare " + Type.getTypeName(max.getType()) +
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.