Package org.omg.CORBA

Examples of org.omg.CORBA.Any.type()


        resultValue = anyHandler.getValueData();
        resultSchemaType = anyHandler.getSchemaType();
        assertTrue(resultValue.equals(value));
        assertTrue(resultSchemaType.equals(schemaType));
        resultAny = anyHandler.getValue();
        assertTrue(resultAny.type().kind().value() == TCKind._tk_char);

        value = "1234.56";
        schemaType = "xs:double";
        anyHandler.setValueFromData(orb, value, schemaType);
        resultValue = anyHandler.getValueData();
View Full Code Here


        resultValue = anyHandler.getValueData();
        resultSchemaType = anyHandler.getSchemaType();
        assertTrue(resultValue.equals(value));
        assertTrue(resultSchemaType.equals(schemaType));
        resultAny = anyHandler.getValue();
        assertTrue(resultAny.type().kind().value() == TCKind._tk_double);

        value = "987654.321";
        schemaType = "xs:float";
        anyHandler.setValueFromData(orb, value, schemaType);
        resultSchemaType = anyHandler.getSchemaType();
View Full Code Here

        schemaType = "xs:float";
        anyHandler.setValueFromData(orb, value, schemaType);
        resultSchemaType = anyHandler.getSchemaType();
        assertTrue(resultSchemaType.equals(schemaType));
        resultAny = anyHandler.getValue();
        assertTrue(resultAny.type().kind().value() == TCKind._tk_float);

        value = "12345";
        schemaType = "xs:int";
        anyHandler.setValueFromData(orb, value, schemaType);
        resultValue = anyHandler.getValueData();
View Full Code Here

        resultValue = anyHandler.getValueData();
        resultSchemaType = anyHandler.getSchemaType();
        assertTrue(resultValue.equals(value));
        assertTrue(resultSchemaType.equals(schemaType));
        resultAny = anyHandler.getValue();
        assertTrue(resultAny.type().kind().value() == TCKind._tk_long);

        value = "123456789";
        schemaType = "xs:long";
        anyHandler.setValueFromData(orb, value, schemaType);
        resultValue = anyHandler.getValueData();
View Full Code Here

        resultValue = anyHandler.getValueData();
        resultSchemaType = anyHandler.getSchemaType();
        assertTrue(resultValue.equals(value));
        assertTrue(resultSchemaType.equals(schemaType));
        resultAny = anyHandler.getValue();
        assertTrue(resultAny.type().kind().value() == TCKind._tk_longlong);

        value = "123";
        schemaType = "xs:short";
        anyHandler.setValueFromData(orb, value, schemaType);
        resultValue = anyHandler.getValueData();
View Full Code Here

        resultValue = anyHandler.getValueData();
        resultSchemaType = anyHandler.getSchemaType();
        assertTrue(resultValue.equals(value));
        assertTrue(resultSchemaType.equals(schemaType));
        resultAny = anyHandler.getValue();
        assertTrue(resultAny.type().kind().value() == TCKind._tk_short);

        value = "test string";
        schemaType = "xs:string";
        anyHandler.setValueFromData(orb, value, schemaType);
        resultValue = anyHandler.getValueData();
View Full Code Here

        resultValue = anyHandler.getValueData();
        resultSchemaType = anyHandler.getSchemaType();
        assertTrue(resultValue.equals(value));
        assertTrue(resultSchemaType.equals(schemaType));
        resultAny = anyHandler.getValue();
        assertTrue(resultAny.type().kind().value() == TCKind._tk_string);

        value = "9";
        schemaType = "xs:unsignedByte";
        anyHandler.setValueFromData(orb, value, schemaType);
        resultValue = anyHandler.getValueData();
View Full Code Here

        resultValue = anyHandler.getValueData();
        resultSchemaType = anyHandler.getSchemaType();
        assertTrue(resultValue.equals(value));
        assertTrue(resultSchemaType.equals(schemaType));
        resultAny = anyHandler.getValue();
        assertTrue(resultAny.type().kind().value() == TCKind._tk_octet);

        value = "654321";
        schemaType = "xs:unsignedInt";
        anyHandler.setValueFromData(orb, value, schemaType);
        resultValue = anyHandler.getValueData();
View Full Code Here

        resultValue = anyHandler.getValueData();
        resultSchemaType = anyHandler.getSchemaType();
        assertTrue(resultValue.equals(value));
        assertTrue(resultSchemaType.equals(schemaType));
        resultAny = anyHandler.getValue();
        assertTrue(resultAny.type().kind().value() == TCKind._tk_ulong);

        value = "987654321";
        schemaType = "xs:unsignedLong";
        anyHandler.setValueFromData(orb, value, schemaType);
        resultValue = anyHandler.getValueData();
View Full Code Here

        resultValue = anyHandler.getValueData();
        resultSchemaType = anyHandler.getSchemaType();
        assertTrue(resultValue.equals(value));
        assertTrue(resultSchemaType.equals(schemaType));
        resultAny = anyHandler.getValue();
        assertTrue(resultAny.type().kind().value() == TCKind._tk_ulonglong);

        value = "321";
        schemaType = "xs:unsignedShort";
        anyHandler.setValueFromData(orb, value, schemaType);
        resultValue = anyHandler.getValueData();
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.