Java Code Examples for org.omg.CORBA.TCKind#_tk_ulong
The following examples show how to use
org.omg.CORBA.TCKind#_tk_ulong .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DynAnyBasicImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public void insert_ulong(int value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { if (status == STATUS_DESTROYED) { throw wrapper.dynAnyDestroyed() ; } if (any.type().kind().value() != TCKind._tk_ulong) throw new TypeMismatch(); any.insert_ulong(value); }
Example 2
Source File: DynAnyBasicImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void insert_ulong(int value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { if (status == STATUS_DESTROYED) { throw wrapper.dynAnyDestroyed() ; } if (any.type().kind().value() != TCKind._tk_ulong) throw new TypeMismatch(); any.insert_ulong(value); }
Example 3
Source File: DynAnyBasicImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public int get_ulong() throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { if (status == STATUS_DESTROYED) { throw wrapper.dynAnyDestroyed() ; } if (any.type().kind().value() != TCKind._tk_ulong) throw new TypeMismatch(); return any.extract_ulong(); }
Example 4
Source File: DynAnyBasicImpl.java From JDKSourceCode1.8 with MIT License | 5 votes |
public void insert_ulong(int value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { if (status == STATUS_DESTROYED) { throw wrapper.dynAnyDestroyed() ; } if (any.type().kind().value() != TCKind._tk_ulong) throw new TypeMismatch(); any.insert_ulong(value); }
Example 5
Source File: DynAnyBasicImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public int get_ulong() throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { if (status == STATUS_DESTROYED) { throw wrapper.dynAnyDestroyed() ; } if (any.type().kind().value() != TCKind._tk_ulong) throw new TypeMismatch(); return any.extract_ulong(); }
Example 6
Source File: DynAnyBasicImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void insert_ulong(int value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { if (status == STATUS_DESTROYED) { throw wrapper.dynAnyDestroyed() ; } if (any.type().kind().value() != TCKind._tk_ulong) throw new TypeMismatch(); any.insert_ulong(value); }
Example 7
Source File: DynAnyBasicImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void insert_ulong(int value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { if (status == STATUS_DESTROYED) { throw wrapper.dynAnyDestroyed() ; } if (any.type().kind().value() != TCKind._tk_ulong) throw new TypeMismatch(); any.insert_ulong(value); }
Example 8
Source File: DynAnyBasicImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public int get_ulong() throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { if (status == STATUS_DESTROYED) { throw wrapper.dynAnyDestroyed() ; } if (any.type().kind().value() != TCKind._tk_ulong) throw new TypeMismatch(); return any.extract_ulong(); }
Example 9
Source File: DynAnyBasicImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public void insert_ulong(int value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { if (status == STATUS_DESTROYED) { throw wrapper.dynAnyDestroyed() ; } if (any.type().kind().value() != TCKind._tk_ulong) throw new TypeMismatch(); any.insert_ulong(value); }
Example 10
Source File: DynAnyBasicImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public int get_ulong() throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { if (status == STATUS_DESTROYED) { throw wrapper.dynAnyDestroyed() ; } if (any.type().kind().value() != TCKind._tk_ulong) throw new TypeMismatch(); return any.extract_ulong(); }
Example 11
Source File: DynAnyBasicImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public void insert_ulong(int value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { if (status == STATUS_DESTROYED) { throw wrapper.dynAnyDestroyed() ; } if (any.type().kind().value() != TCKind._tk_ulong) throw new TypeMismatch(); any.insert_ulong(value); }
Example 12
Source File: DynAnyBasicImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
public void insert_ulong(int value) throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch, org.omg.DynamicAny.DynAnyPackage.InvalidValue { if (status == STATUS_DESTROYED) { throw wrapper.dynAnyDestroyed() ; } if (any.type().kind().value() != TCKind._tk_ulong) throw new TypeMismatch(); any.insert_ulong(value); }
Example 13
Source File: ORB.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
protected ORB() { // Initialize logging first, since it is needed nearly // everywhere (for example, in TypeCodeImpl). wrapperMap = new ConcurrentHashMap(); wrapper = ORBUtilSystemException.get( this, CORBALogDomains.RPC_PRESENTATION ) ; omgWrapper = OMGSystemException.get( this, CORBALogDomains.RPC_PRESENTATION ) ; typeCodeMap = new HashMap(); primitiveTypeCodeConstants = new TypeCodeImpl[] { new TypeCodeImpl(this, TCKind._tk_null), new TypeCodeImpl(this, TCKind._tk_void), new TypeCodeImpl(this, TCKind._tk_short), new TypeCodeImpl(this, TCKind._tk_long), new TypeCodeImpl(this, TCKind._tk_ushort), new TypeCodeImpl(this, TCKind._tk_ulong), new TypeCodeImpl(this, TCKind._tk_float), new TypeCodeImpl(this, TCKind._tk_double), new TypeCodeImpl(this, TCKind._tk_boolean), new TypeCodeImpl(this, TCKind._tk_char), new TypeCodeImpl(this, TCKind._tk_octet), new TypeCodeImpl(this, TCKind._tk_any), new TypeCodeImpl(this, TCKind._tk_TypeCode), new TypeCodeImpl(this, TCKind._tk_Principal), new TypeCodeImpl(this, TCKind._tk_objref), null, // tk_struct null, // tk_union null, // tk_enum new TypeCodeImpl(this, TCKind._tk_string), null, // tk_sequence null, // tk_array null, // tk_alias null, // tk_except new TypeCodeImpl(this, TCKind._tk_longlong), new TypeCodeImpl(this, TCKind._tk_ulonglong), new TypeCodeImpl(this, TCKind._tk_longdouble), new TypeCodeImpl(this, TCKind._tk_wchar), new TypeCodeImpl(this, TCKind._tk_wstring), new TypeCodeImpl(this, TCKind._tk_fixed), new TypeCodeImpl(this, TCKind._tk_value), new TypeCodeImpl(this, TCKind._tk_value_box), new TypeCodeImpl(this, TCKind._tk_native), new TypeCodeImpl(this, TCKind._tk_abstract_interface) } ; monitoringManager = MonitoringFactories.getMonitoringManagerFactory( ). createMonitoringManager( MonitoringConstants.DEFAULT_MONITORING_ROOT, MonitoringConstants.DEFAULT_MONITORING_ROOT_DESCRIPTION); }
Example 14
Source File: ORB.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
protected ORB() { // Initialize logging first, since it is needed nearly // everywhere (for example, in TypeCodeImpl). wrapperMap = new ConcurrentHashMap(); wrapper = ORBUtilSystemException.get( this, CORBALogDomains.RPC_PRESENTATION ) ; omgWrapper = OMGSystemException.get( this, CORBALogDomains.RPC_PRESENTATION ) ; typeCodeMap = new HashMap(); primitiveTypeCodeConstants = new TypeCodeImpl[] { new TypeCodeImpl(this, TCKind._tk_null), new TypeCodeImpl(this, TCKind._tk_void), new TypeCodeImpl(this, TCKind._tk_short), new TypeCodeImpl(this, TCKind._tk_long), new TypeCodeImpl(this, TCKind._tk_ushort), new TypeCodeImpl(this, TCKind._tk_ulong), new TypeCodeImpl(this, TCKind._tk_float), new TypeCodeImpl(this, TCKind._tk_double), new TypeCodeImpl(this, TCKind._tk_boolean), new TypeCodeImpl(this, TCKind._tk_char), new TypeCodeImpl(this, TCKind._tk_octet), new TypeCodeImpl(this, TCKind._tk_any), new TypeCodeImpl(this, TCKind._tk_TypeCode), new TypeCodeImpl(this, TCKind._tk_Principal), new TypeCodeImpl(this, TCKind._tk_objref), null, // tk_struct null, // tk_union null, // tk_enum new TypeCodeImpl(this, TCKind._tk_string), null, // tk_sequence null, // tk_array null, // tk_alias null, // tk_except new TypeCodeImpl(this, TCKind._tk_longlong), new TypeCodeImpl(this, TCKind._tk_ulonglong), new TypeCodeImpl(this, TCKind._tk_longdouble), new TypeCodeImpl(this, TCKind._tk_wchar), new TypeCodeImpl(this, TCKind._tk_wstring), new TypeCodeImpl(this, TCKind._tk_fixed), new TypeCodeImpl(this, TCKind._tk_value), new TypeCodeImpl(this, TCKind._tk_value_box), new TypeCodeImpl(this, TCKind._tk_native), new TypeCodeImpl(this, TCKind._tk_abstract_interface) } ; monitoringManager = MonitoringFactories.getMonitoringManagerFactory( ). createMonitoringManager( MonitoringConstants.DEFAULT_MONITORING_ROOT, MonitoringConstants.DEFAULT_MONITORING_ROOT_DESCRIPTION); }
Example 15
Source File: ORB.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
protected ORB() { // Initialize logging first, since it is needed nearly // everywhere (for example, in TypeCodeImpl). wrapperMap = new ConcurrentHashMap(); wrapper = ORBUtilSystemException.get( this, CORBALogDomains.RPC_PRESENTATION ) ; omgWrapper = OMGSystemException.get( this, CORBALogDomains.RPC_PRESENTATION ) ; typeCodeMap = new HashMap(); primitiveTypeCodeConstants = new TypeCodeImpl[] { new TypeCodeImpl(this, TCKind._tk_null), new TypeCodeImpl(this, TCKind._tk_void), new TypeCodeImpl(this, TCKind._tk_short), new TypeCodeImpl(this, TCKind._tk_long), new TypeCodeImpl(this, TCKind._tk_ushort), new TypeCodeImpl(this, TCKind._tk_ulong), new TypeCodeImpl(this, TCKind._tk_float), new TypeCodeImpl(this, TCKind._tk_double), new TypeCodeImpl(this, TCKind._tk_boolean), new TypeCodeImpl(this, TCKind._tk_char), new TypeCodeImpl(this, TCKind._tk_octet), new TypeCodeImpl(this, TCKind._tk_any), new TypeCodeImpl(this, TCKind._tk_TypeCode), new TypeCodeImpl(this, TCKind._tk_Principal), new TypeCodeImpl(this, TCKind._tk_objref), null, // tk_struct null, // tk_union null, // tk_enum new TypeCodeImpl(this, TCKind._tk_string), null, // tk_sequence null, // tk_array null, // tk_alias null, // tk_except new TypeCodeImpl(this, TCKind._tk_longlong), new TypeCodeImpl(this, TCKind._tk_ulonglong), new TypeCodeImpl(this, TCKind._tk_longdouble), new TypeCodeImpl(this, TCKind._tk_wchar), new TypeCodeImpl(this, TCKind._tk_wstring), new TypeCodeImpl(this, TCKind._tk_fixed), new TypeCodeImpl(this, TCKind._tk_value), new TypeCodeImpl(this, TCKind._tk_value_box), new TypeCodeImpl(this, TCKind._tk_native), new TypeCodeImpl(this, TCKind._tk_abstract_interface) } ; monitoringManager = MonitoringFactories.getMonitoringManagerFactory( ). createMonitoringManager( MonitoringConstants.DEFAULT_MONITORING_ROOT, MonitoringConstants.DEFAULT_MONITORING_ROOT_DESCRIPTION); }
Example 16
Source File: TypeCodeImpl.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private void printStream(PrintStream s, int level) { if (_kind == tk_indirect) { s.print("indirect " + _id); return; } switch (_kind) { case TCKind._tk_null: case TCKind._tk_void: case TCKind._tk_short: case TCKind._tk_long: case TCKind._tk_ushort: case TCKind._tk_ulong: case TCKind._tk_float: case TCKind._tk_double: case TCKind._tk_boolean: case TCKind._tk_char: case TCKind._tk_octet: case TCKind._tk_any: case TCKind._tk_TypeCode: case TCKind._tk_Principal: case TCKind._tk_objref: case TCKind._tk_longlong: case TCKind._tk_ulonglong: case TCKind._tk_longdouble: case TCKind._tk_wchar: case TCKind._tk_native: s.print(kindNames[_kind] + " " + _name); break; case TCKind._tk_struct: case TCKind._tk_except: case TCKind._tk_value: s.println(kindNames[_kind] + " " + _name + " = {"); for(int i=0; i<_memberCount; i++) { // memberName might differ from the name of the member. s.print(indent(level + 1)); if (_memberTypes[i] != null) _memberTypes[i].printStream(s, level + 1); else s.print("<unknown type>"); s.println(" " + _memberNames[i] + ";"); } s.print(indent(level) + "}"); break; case TCKind._tk_union: s.print("union " + _name + "..."); break; case TCKind._tk_enum: s.print("enum " + _name + "..."); break; case TCKind._tk_string: if (_length == 0) s.print("unbounded string " + _name); else s.print("bounded string(" + _length + ") " + _name); break; case TCKind._tk_sequence: case TCKind._tk_array: s.println(kindNames[_kind] + "[" + _length + "] " + _name + " = {"); s.print(indent(level + 1)); if (lazy_content_type() != null) { lazy_content_type().printStream(s, level + 1); } s.println(indent(level) + "}"); break; case TCKind._tk_alias: s.print("alias " + _name + " = " + (_contentType != null ? _contentType._name : "<unresolved>")); break; case TCKind._tk_wstring: s.print("wstring[" + _length + "] " + _name); break; case TCKind._tk_fixed: s.print("fixed(" + _digits + ", " + _scale + ") " + _name); break; case TCKind._tk_value_box: s.print("valueBox " + _name + "..."); break; case TCKind._tk_abstract_interface: s.print("abstractInterface " + _name + "..."); break; default: s.print("<unknown type>"); break; } }
Example 17
Source File: CorbaAnyHelper.java From cxf with Apache License 2.0 | 4 votes |
public static QName getPrimitiveIdlTypeFromTypeCode(TypeCode tc) { TCKind type = tc.kind(); QName result = null; switch(type.value()) { case TCKind._tk_boolean: result = CorbaConstants.NT_CORBA_BOOLEAN; break; case TCKind._tk_char: result = CorbaConstants.NT_CORBA_CHAR; break; case TCKind._tk_wchar: result = CorbaConstants.NT_CORBA_WCHAR; break; case TCKind._tk_octet: result = CorbaConstants.NT_CORBA_OCTET; break; case TCKind._tk_short: result = CorbaConstants.NT_CORBA_SHORT; break; case TCKind._tk_ushort: result = CorbaConstants.NT_CORBA_USHORT; break; case TCKind._tk_long: result = CorbaConstants.NT_CORBA_LONG; break; case TCKind._tk_ulong: result = CorbaConstants.NT_CORBA_ULONG; break; case TCKind._tk_longlong: result = CorbaConstants.NT_CORBA_LONGLONG; break; case TCKind._tk_ulonglong: result = CorbaConstants.NT_CORBA_ULONGLONG; break; case TCKind._tk_float: result = CorbaConstants.NT_CORBA_FLOAT; break; case TCKind._tk_double: result = CorbaConstants.NT_CORBA_DOUBLE; break; case TCKind._tk_string: result = CorbaConstants.NT_CORBA_STRING; break; case TCKind._tk_wstring: result = CorbaConstants.NT_CORBA_WSTRING; break; default: result = null; } return result; }
Example 18
Source File: CorbaPrimitiveHandler.java From cxf with Apache License 2.0 | 4 votes |
public void setValueFromData(String data) { Object obj = null; switch (typeCode.kind().value()) { case TCKind._tk_boolean: obj = Boolean.valueOf(data); break; case TCKind._tk_char: // A char is mapped to a byte, we need it as a character Byte byteValue = Byte.valueOf(data); // for values < 0 + 256 // This means that we can directly write out the chars in the normal // range 0-127 even when using UTF-8 obj = Character.valueOf((char)(byteValue.byteValue() < 0 ? byteValue.byteValue() + UNSIGNED_MAX : byteValue.byteValue())); break; case TCKind._tk_wchar: // A wide char is mapped to a string, we need it as a character obj = Character.valueOf(data.charAt(0)); break; case TCKind._tk_octet: obj = Short.valueOf(data).byteValue(); //NOPMD break; case TCKind._tk_short: obj = Short.valueOf(data); break; case TCKind._tk_ushort: obj = Integer.valueOf(data); break; case TCKind._tk_long: obj = Integer.valueOf(data); break; case TCKind._tk_longlong: obj = Long.valueOf(data); break; case TCKind._tk_ulong: obj = Long.valueOf(data); break; case TCKind._tk_ulonglong: obj = new java.math.BigInteger(data); break; case TCKind._tk_float: if ("INF".equals(data)) { obj = Float.POSITIVE_INFINITY; } else if ("-INF".equals(data)) { obj = Float.NEGATIVE_INFINITY; } else { obj = Float.valueOf(data); } break; case TCKind._tk_double: if ("INF".equals(data)) { obj = Double.POSITIVE_INFINITY; } else if ("-INF".equals(data)) { obj = Double.NEGATIVE_INFINITY; } else { obj = Double.valueOf(data); } break; case TCKind._tk_string: case TCKind._tk_wstring: obj = data; break; default: // Default: just store the data we were given. We'll expect that whatever stored the data // will also know how to convert it into what it needs. obj = data; } setValue(obj); }
Example 19
Source File: CorbaPrimitiveHandler.java From cxf with Apache License 2.0 | 4 votes |
public void setIntoAny(Any val, CorbaStreamable stream, boolean output) { any = val; if (stream != null) { val.insert_Streamable(stream); } if (output && value != null) { switch (this.typeCode.kind().value()) { case TCKind._tk_boolean: any.insert_boolean((Boolean)value); break; case TCKind._tk_char: any.insert_char(((Character)value).charValue()); break; case TCKind._tk_wchar: any.insert_wchar(((Character)value).charValue()); break; case TCKind._tk_octet: any.insert_octet(((Byte)value).byteValue()); break; case TCKind._tk_short: any.insert_short(((Short)value).shortValue()); break; case TCKind._tk_ushort: any.insert_ushort((short)((Integer)value).intValue()); break; case TCKind._tk_long: any.insert_long(((Integer)value).intValue()); break; case TCKind._tk_longlong: any.insert_longlong(((Long)value).longValue()); break; case TCKind._tk_ulong: any.insert_ulong((int)((Long)value).longValue()); break; case TCKind._tk_ulonglong: any.insert_ulonglong(((java.math.BigInteger)value).longValue()); break; case TCKind._tk_float: any.insert_float((Float)value); break; case TCKind._tk_double: any.insert_double((Double)value); break; case TCKind._tk_string: any.insert_string((String)value); break; case TCKind._tk_wstring: any.insert_wstring((String)value); break; default: // Default: assume that whatever stored the data will also know how to convert it into what // it needs. } } }
Example 20
Source File: ORB.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
protected ORB() { // Initialize logging first, since it is needed nearly // everywhere (for example, in TypeCodeImpl). wrapperMap = new ConcurrentHashMap<>(); wrapper = ORBUtilSystemException.get( this, CORBALogDomains.RPC_PRESENTATION ) ; omgWrapper = OMGSystemException.get( this, CORBALogDomains.RPC_PRESENTATION ) ; typeCodeMap = new HashMap<>(); primitiveTypeCodeConstants = new TypeCodeImpl[] { new TypeCodeImpl(this, TCKind._tk_null), new TypeCodeImpl(this, TCKind._tk_void), new TypeCodeImpl(this, TCKind._tk_short), new TypeCodeImpl(this, TCKind._tk_long), new TypeCodeImpl(this, TCKind._tk_ushort), new TypeCodeImpl(this, TCKind._tk_ulong), new TypeCodeImpl(this, TCKind._tk_float), new TypeCodeImpl(this, TCKind._tk_double), new TypeCodeImpl(this, TCKind._tk_boolean), new TypeCodeImpl(this, TCKind._tk_char), new TypeCodeImpl(this, TCKind._tk_octet), new TypeCodeImpl(this, TCKind._tk_any), new TypeCodeImpl(this, TCKind._tk_TypeCode), new TypeCodeImpl(this, TCKind._tk_Principal), new TypeCodeImpl(this, TCKind._tk_objref), null, // tk_struct null, // tk_union null, // tk_enum new TypeCodeImpl(this, TCKind._tk_string), null, // tk_sequence null, // tk_array null, // tk_alias null, // tk_except new TypeCodeImpl(this, TCKind._tk_longlong), new TypeCodeImpl(this, TCKind._tk_ulonglong), new TypeCodeImpl(this, TCKind._tk_longdouble), new TypeCodeImpl(this, TCKind._tk_wchar), new TypeCodeImpl(this, TCKind._tk_wstring), new TypeCodeImpl(this, TCKind._tk_fixed), new TypeCodeImpl(this, TCKind._tk_value), new TypeCodeImpl(this, TCKind._tk_value_box), new TypeCodeImpl(this, TCKind._tk_native), new TypeCodeImpl(this, TCKind._tk_abstract_interface) } ; monitoringManager = MonitoringFactories.getMonitoringManagerFactory( ). createMonitoringManager( MonitoringConstants.DEFAULT_MONITORING_ROOT, MonitoringConstants.DEFAULT_MONITORING_ROOT_DESCRIPTION); }