Examples of toObject()


Examples of com.ibm.as400.access.AS400DataType.toObject()

                if (getISeriesEndpoint().getFormat() == Format.binary) {
                    typeConverter = new AS400ByteArray(length);
                } else {
                    typeConverter = new AS400Text(length, iSeries);
                }
                javaValue = typeConverter.toObject(output);
            }

            results.add(javaValue);
            i++;
        }
View Full Code Here

Examples of com.ibm.as400.access.AS400Text.toObject()

            if (output != null) {
                int length = pgmParam.getOutputDataLength();

                AS400Text text = new AS400Text(length);
                value = (String) text.toObject(output);
            }

            results.add(value);
            i++;
        }
View Full Code Here

Examples of com.jme3.scene.plugins.blender.objects.ObjectHelper.toObject()

                    Pointer pCurveOb = (Pointer) modifierStructure.getFieldValue("curve_ob");
                    float length = 0;
                    if (pCurveOb.isNotNull()) {
                        Structure curveStructure = pCurveOb.fetchData().get(0);
                        ObjectHelper objectHelper = blenderContext.getHelper(ObjectHelper.class);
                        Node curveObject = (Node) objectHelper.toObject(curveStructure, blenderContext);
                        Set<Number> referencesToCurveLengths = new HashSet<Number>(curveObject.getChildren().size());
                        for (Spatial spatial : curveObject.getChildren()) {
                            if (spatial instanceof Geometry) {
                                Mesh mesh = ((Geometry) spatial).getMesh();
                                if (mesh instanceof Curve) {
View Full Code Here

Examples of com.salesforce.phoenix.schema.PDataType.toObject()

        Expression expression = getExpression();
        if (!expression.evaluate(tuple, ptr)) {
            return false;
        }
        PDataType type = expression.getDataType();
        Object value = formatter.format(type.toObject(ptr, expression.getColumnModifier()));
        byte[] b = getDataType().toBytes(value);
        ptr.set(b);
        return true;
     }
View Full Code Here

Examples of com.sun.star.uno.AnyConverter.toObject()

        aText = "Value of property IterationCount: ";
        aText += aAnyConv.toInt(xPropSet.getPropertyValue( "IterationCount" ));
        System.out.println( aText );
        aText = "Value of property NullDate: ";
        com.sun.star.util.Date aDate = (com.sun.star.util.Date)
            aAnyConv.toObject(com.sun.star.util.Date.class, xPropSet.getPropertyValue( "NullDate" ));
        aText += aDate.Year + "-" + aDate.Month + "-" + aDate.Day;
        System.out.println( aText );


        // --- Data validation ---
View Full Code Here

Examples of eu.admire.gridminer.datapreprocessing.statistic.ModelStatsInterval.toObject()

        ModelStatsInterval modelStats =
            new ModelStatsInterval(tuples, pmmlInput);
        modelStats.countStatistics();
        try
        {
            mOutput.write(modelStats.toObject());
        }
        catch (PipeClosedException e)
        {
            iterativeStageComplete();
        }
View Full Code Here

Examples of net.percederberg.mibble.MibValue.toObject()

        throws MibException {

        MibValue  value = ref.initialize(log, type);

        if (value instanceof NumberValue) {
            this.value.set(((Number) value.toObject()).intValue());
        } else {
            throw new MibException(ref.getLocation(),
                                   "referenced value is not a number");
        }
    }
View Full Code Here

Examples of net.percederberg.mibble.value.NumberValue.toObject()

    public boolean isCompatible(MibValue value) {
        NumberValue  number;

        if (value instanceof NumberValue) {
            number = (NumberValue) value;
            if (number.toObject() instanceof Float) {
                return true;
            }
        }
        return false;
    }
View Full Code Here

Examples of net.sf.kpex.prolog.JavaObject.toObject()

  public int exec(Prog p)
  {
    // get the handle to the wrapped Label
    JavaObject wrapper = (JavaObject) getArg(0);
    // get the Label
    Label L = (Label) wrapper.toObject();
    L.setText(getArg(1).toUnquoted());
    return 1;
  }
}
View Full Code Here

Examples of org.apache.phoenix.schema.PDataType.toObject()

    public static LiteralExpression getConstantExpression(Expression expression, ImmutableBytesWritable ptr)
            throws SQLException {
        Object value = null;
        PDataType type = expression.getDataType();
        if (expression.evaluate(null, ptr) && ptr.getLength() != 0) {
            value = type.toObject(ptr);
        }
        return LiteralExpression.newConstant(value, type, expression.isDeterministic());
    }

    public static boolean isNull(Expression expression, ImmutableBytesWritable ptr) {
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.