Package net.sf.saxon.value

Examples of net.sf.saxon.value.FloatValue


         } else if (source instanceof Byte) {
             result = new IntegerValue((Byte)source);
         } else if (source instanceof Double) {
             result = new DoubleValue((Double)source);
         } else if (source instanceof Float) {
             result = new FloatValue((Float)source);
         } else if (source instanceof BigDecimal) {
             result = new DecimalValue((BigDecimal)source);
         } else if (source instanceof String) {
             result = new StringValue(((String)source));
         } else {
View Full Code Here


    }

    public Value transform(Object source, TransformationContext context) {
        // WORKAROUND for ClassCastException in ObjectValue.toJavaObject(float)
        if (source instanceof Float) {
            return new FloatValue(((Float)source).floatValue());
        }
        return new ObjectValue(source);
    }
View Full Code Here

         } else if (source instanceof Byte) {
             result = new IntegerValue((Byte)source);
         } else if (source instanceof Double) {
             result = new DoubleValue((Double)source);
         } else if (source instanceof Float) {
             result = new FloatValue((Float)source);
         } else if (source instanceof BigDecimal) {
             result = new DecimalValue((BigDecimal)source);
         } else if (source instanceof String) {
             result = new StringValue(((String)source));
         } else {
View Full Code Here

    }

    public Value transform(Object source, TransformationContext context) {
        // WORKAROUND for ClassCastException in ObjectValue.toJavaObject(float)
        if (source instanceof Float) {
            return new FloatValue(((Float)source).floatValue());
        }
        return new ObjectValue(source);
    }
View Full Code Here

    }

    public Value transform(Object source, TransformationContext context) {
        // WORKAROUND for ClassCastException in ObjectValue.toJavaObject(float)
        if (source instanceof Float) {
            return new FloatValue(((Float)source).floatValue());
        }
        return new ObjectValue(source);
    }
View Full Code Here

        } else if (source instanceof Byte) {
            result = new IntegerValue((Byte)source);
        } else if (source instanceof Double) {
            result = new DoubleValue((Double)source);
        } else if (source instanceof Float) {
            result = new FloatValue((Float)source);
        } else if (source instanceof BigDecimal) {
            result = new DecimalValue((BigDecimal)source);
        } else if (source instanceof String) {
            result = new StringValue(((String)source));
        } else {
View Full Code Here

        } else if (source instanceof Byte) {
            result = new IntegerValue((Byte)source);
        } else if (source instanceof Double) {
            result = new DoubleValue((Double)source);
        } else if (source instanceof Float) {
            result = new FloatValue((Float)source);
        } else if (source instanceof BigDecimal) {
            result = new DecimalValue((BigDecimal)source);
        } else if (source instanceof String) {
            result = new StringValue(((String)source));
        } else {
View Full Code Here

    }

    public Value transform(Object source, TransformationContext context) {
        // WORKAROUND for ClassCastException in ObjectValue.toJavaObject(float)
        if (source instanceof Float) {
            return new FloatValue(((Float)source).floatValue());
        }
        return new ObjectValue(source);
    }
View Full Code Here

    } else if(source instanceof Byte) {
      result = IntegerValue.makeIntegerValue(BigInteger.valueOf(((Byte)source)));
    } else if(source instanceof Double) {
      result = new DoubleValue((Double)source);
    } else if(source instanceof Float) {
      result = new FloatValue((Float)source);
    } else if(source instanceof BigDecimal) {
      result = new DecimalValue((BigDecimal)source);
    } else if(source instanceof String) {
      result = new StringValue(((String)source));
    } else {
View Full Code Here

        } else if (source instanceof Byte) {
            result = new IntegerValue((Byte)source);
        } else if (source instanceof Double) {
            result = new DoubleValue((Double)source);
        } else if (source instanceof Float) {
            result = new FloatValue((Float)source);
        } else if (source instanceof BigDecimal) {
            result = new DecimalValue((BigDecimal)source);
        } else if (source instanceof String) {
            result = new StringValue(((String)source));
        } else {
View Full Code Here

TOP

Related Classes of net.sf.saxon.value.FloatValue

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.