Search in sources :

Example 26 with TypeCode

use of org.omg.CORBA.TypeCode in project cxf by apache.

the class CorbaUtilsTest method testULongTypeCode.

@Test
public void testULongTypeCode() {
    QName type = new QName(CorbaConstants.NU_WSDL_CORBA, "ulong", "corba");
    TypeCode tc = CorbaUtils.getPrimitiveTypeCode(orb, type);
    assertNotNull(tc);
    assertTrue(tc.kind().value() == TCKind._tk_ulong);
    assertTrue(CorbaUtils.isPrimitiveIdlType(type));
}
Also used : TypeCode(org.omg.CORBA.TypeCode) QName(javax.xml.namespace.QName) Test(org.junit.Test)

Example 27 with TypeCode

use of org.omg.CORBA.TypeCode in project cxf by apache.

the class CorbaUtilsTest method testDoubleTypeCode.

@Test
public void testDoubleTypeCode() {
    QName type = new QName(CorbaConstants.NU_WSDL_CORBA, "double", "corba");
    TypeCode tc = CorbaUtils.getPrimitiveTypeCode(orb, type);
    assertNotNull(tc);
    assertTrue(tc.kind().value() == TCKind._tk_double);
    assertTrue(CorbaUtils.isPrimitiveIdlType(type));
}
Also used : TypeCode(org.omg.CORBA.TypeCode) QName(javax.xml.namespace.QName) Test(org.junit.Test)

Example 28 with TypeCode

use of org.omg.CORBA.TypeCode in project cxf by apache.

the class CorbaUtilsTest method testUShortTypeCode.

@Test
public void testUShortTypeCode() {
    QName type = new QName(CorbaConstants.NU_WSDL_CORBA, "ushort", "corba");
    TypeCode tc = CorbaUtils.getPrimitiveTypeCode(orb, type);
    assertNotNull(tc);
    assertTrue(tc.kind().value() == TCKind._tk_ushort);
    assertTrue(CorbaUtils.isPrimitiveIdlType(type));
}
Also used : TypeCode(org.omg.CORBA.TypeCode) QName(javax.xml.namespace.QName) Test(org.junit.Test)

Example 29 with TypeCode

use of org.omg.CORBA.TypeCode in project cxf by apache.

the class CorbaUtilsTest method testLongLongTypeCode.

@Test
public void testLongLongTypeCode() {
    QName type = new QName(CorbaConstants.NU_WSDL_CORBA, "longlong", "corba");
    TypeCode tc = CorbaUtils.getPrimitiveTypeCode(orb, type);
    assertNotNull(tc);
    assertTrue(tc.kind().value() == TCKind._tk_longlong);
    assertTrue(CorbaUtils.isPrimitiveIdlType(type));
}
Also used : TypeCode(org.omg.CORBA.TypeCode) QName(javax.xml.namespace.QName) Test(org.junit.Test)

Example 30 with TypeCode

use of org.omg.CORBA.TypeCode in project cxf by apache.

the class CorbaUtilsTest method testULongLongTypeCode.

@Test
public void testULongLongTypeCode() {
    QName type = new QName(CorbaConstants.NU_WSDL_CORBA, "ulonglong", "corba");
    TypeCode tc = CorbaUtils.getPrimitiveTypeCode(orb, type);
    assertNotNull(tc);
    assertTrue(tc.kind().value() == TCKind._tk_ulonglong);
    assertTrue(CorbaUtils.isPrimitiveIdlType(type));
}
Also used : TypeCode(org.omg.CORBA.TypeCode) QName(javax.xml.namespace.QName) Test(org.junit.Test)

Aggregations

TypeCode (org.omg.CORBA.TypeCode)69 QName (javax.xml.namespace.QName)49 Test (org.junit.Test)44 CorbaPrimitiveHandler (org.apache.cxf.binding.corba.types.CorbaPrimitiveHandler)18 InputStream (org.omg.CORBA.portable.InputStream)15 OutputStream (org.omg.CORBA.portable.OutputStream)14 StructMember (org.omg.CORBA.StructMember)9 CorbaBindingException (org.apache.cxf.binding.corba.CorbaBindingException)6 MemberType (org.apache.cxf.binding.corba.wsdl.MemberType)6 Any (org.omg.CORBA.Any)6 NVList (org.omg.CORBA.NVList)6 CorbaStreamable (org.apache.cxf.binding.corba.CorbaStreamable)5 CorbaObjectHandler (org.apache.cxf.binding.corba.types.CorbaObjectHandler)4 Array (org.apache.cxf.binding.corba.wsdl.Array)4 Enum (org.apache.cxf.binding.corba.wsdl.Enum)4 Enumerator (org.apache.cxf.binding.corba.wsdl.Enumerator)4 Sequence (org.apache.cxf.binding.corba.wsdl.Sequence)4 Struct (org.apache.cxf.binding.corba.wsdl.Struct)4 IOException (java.io.IOException)3 Alias (org.apache.cxf.binding.corba.wsdl.Alias)3