Java Code Examples for org.omg.CORBA.TCKind._tk_fixed
The following are Jave code examples for showing how to use
_tk_fixed of the
org.omg.CORBA.TCKind
class.
You can vote up the examples you like. Your votes will be used in our system to get
more good examples.
+ Save this method
Example 1
Project: OpenJSharp File: TypeCodeImpl.java View Source Code | 6 votes |
public TypeCodeImpl(ORB orb, int creationKind, short digits, short scale) // for fixed { this(orb) ; //if (digits < 1 || digits > 31) //throw new BAD_TYPECODE(); if (creationKind == TCKind._tk_fixed) { _kind = creationKind; _digits = digits; _scale = scale; } // else initializes to null }
Example 2
Project: openjdk-jdk10 File: TypeCodeImpl.java View Source Code | 6 votes |
public TypeCodeImpl(ORB orb, int creationKind, short digits, short scale) // for fixed { this(orb) ; //if (digits < 1 || digits > 31) //throw new BAD_TYPECODE(); if (creationKind == TCKind._tk_fixed) { _kind = creationKind; _digits = digits; _scale = scale; } // else initializes to null }
Example 3
Project: OpenJSharp File: TypeCodeImpl.java View Source Code | 5 votes |
public short fixed_digits() throws BadKind { switch (_kind) { case TCKind._tk_fixed: return _digits; default: throw new BadKind(); } }
Example 4
Project: OpenJSharp File: TypeCodeImpl.java View Source Code | 5 votes |
public short fixed_scale() throws BadKind { switch (_kind) { case TCKind._tk_fixed: return _scale; default: throw new BadKind(); } }
Example 5
Project: OpenJSharp File: DynAnyUtil.java View Source Code | 5 votes |
static boolean isConstructedDynAny(DynAny dynAny) { // DynFixed is constructed but not a subclass of DynAnyConstructedImpl //return (dynAny instanceof DynAnyConstructedImpl); int kind = dynAny.type().kind().value(); return (kind == TCKind._tk_sequence || kind == TCKind._tk_struct || kind == TCKind._tk_array || kind == TCKind._tk_union || kind == TCKind._tk_enum || kind == TCKind._tk_fixed || kind == TCKind._tk_value || kind == TCKind._tk_value_box); }
Example 6
Project: OpenJSharp File: DynAnyUtil.java View Source Code | 5 votes |
static DynAny createMostDerivedDynAny(Any any, ORB orb, boolean copyValue) throws org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode { if (any == null || ! DynAnyUtil.isConsistentType(any.type())) throw new org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode(); switch (any.type().kind().value()) { case TCKind._tk_sequence: return new DynSequenceImpl(orb, any, copyValue); case TCKind._tk_struct: return new DynStructImpl(orb, any, copyValue); case TCKind._tk_array: return new DynArrayImpl(orb, any, copyValue); case TCKind._tk_union: return new DynUnionImpl(orb, any, copyValue); case TCKind._tk_enum: return new DynEnumImpl(orb, any, copyValue); case TCKind._tk_fixed: return new DynFixedImpl(orb, any, copyValue); case TCKind._tk_value: return new DynValueImpl(orb, any, copyValue); case TCKind._tk_value_box: return new DynValueBoxImpl(orb, any, copyValue); default: return new DynAnyBasicImpl(orb, any, copyValue); } }
Example 7
Project: OpenJSharp File: DynAnyUtil.java View Source Code | 5 votes |
static DynAny createMostDerivedDynAny(TypeCode typeCode, ORB orb) throws org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode { if (typeCode == null || ! DynAnyUtil.isConsistentType(typeCode)) throw new org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode(); switch (typeCode.kind().value()) { case TCKind._tk_sequence: return new DynSequenceImpl(orb, typeCode); case TCKind._tk_struct: return new DynStructImpl(orb, typeCode); case TCKind._tk_array: return new DynArrayImpl(orb, typeCode); case TCKind._tk_union: return new DynUnionImpl(orb, typeCode); case TCKind._tk_enum: return new DynEnumImpl(orb, typeCode); case TCKind._tk_fixed: return new DynFixedImpl(orb, typeCode); case TCKind._tk_value: return new DynValueImpl(orb, typeCode); case TCKind._tk_value_box: return new DynValueBoxImpl(orb, typeCode); default: return new DynAnyBasicImpl(orb, typeCode); } }
Example 8
Project: openjdk-jdk10 File: TypeCodeImpl.java View Source Code | 5 votes |
public short fixed_digits() throws BadKind { switch (_kind) { case TCKind._tk_fixed: return _digits; default: throw new BadKind(); } }
Example 9
Project: openjdk-jdk10 File: TypeCodeImpl.java View Source Code | 5 votes |
public short fixed_scale() throws BadKind { switch (_kind) { case TCKind._tk_fixed: return _scale; default: throw new BadKind(); } }
Example 10
Project: openjdk-jdk10 File: DynAnyUtil.java View Source Code | 5 votes |
static boolean isConstructedDynAny(DynAny dynAny) { // DynFixed is constructed but not a subclass of DynAnyConstructedImpl //return (dynAny instanceof DynAnyConstructedImpl); int kind = dynAny.type().kind().value(); return (kind == TCKind._tk_sequence || kind == TCKind._tk_struct || kind == TCKind._tk_array || kind == TCKind._tk_union || kind == TCKind._tk_enum || kind == TCKind._tk_fixed || kind == TCKind._tk_value || kind == TCKind._tk_value_box); }
Example 11
Project: openjdk-jdk10 File: DynAnyUtil.java View Source Code | 5 votes |
static DynAny createMostDerivedDynAny(Any any, ORB orb, boolean copyValue) throws org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode { if (any == null || ! DynAnyUtil.isConsistentType(any.type())) throw new org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode(); switch (any.type().kind().value()) { case TCKind._tk_sequence: return new DynSequenceImpl(orb, any, copyValue); case TCKind._tk_struct: return new DynStructImpl(orb, any, copyValue); case TCKind._tk_array: return new DynArrayImpl(orb, any, copyValue); case TCKind._tk_union: return new DynUnionImpl(orb, any, copyValue); case TCKind._tk_enum: return new DynEnumImpl(orb, any, copyValue); case TCKind._tk_fixed: return new DynFixedImpl(orb, any, copyValue); case TCKind._tk_value: return new DynValueImpl(orb, any, copyValue); case TCKind._tk_value_box: return new DynValueBoxImpl(orb, any, copyValue); default: return new DynAnyBasicImpl(orb, any, copyValue); } }
Example 12
Project: openjdk-jdk10 File: DynAnyUtil.java View Source Code | 5 votes |
static DynAny createMostDerivedDynAny(TypeCode typeCode, ORB orb) throws org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode { if (typeCode == null || ! DynAnyUtil.isConsistentType(typeCode)) throw new org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode(); switch (typeCode.kind().value()) { case TCKind._tk_sequence: return new DynSequenceImpl(orb, typeCode); case TCKind._tk_struct: return new DynStructImpl(orb, typeCode); case TCKind._tk_array: return new DynArrayImpl(orb, typeCode); case TCKind._tk_union: return new DynUnionImpl(orb, typeCode); case TCKind._tk_enum: return new DynEnumImpl(orb, typeCode); case TCKind._tk_fixed: return new DynFixedImpl(orb, typeCode); case TCKind._tk_value: return new DynValueImpl(orb, typeCode); case TCKind._tk_value_box: return new DynValueBoxImpl(orb, typeCode); default: return new DynAnyBasicImpl(orb, typeCode); } }
Example 13
Project: OpenJSharp File: ORB.java View Source Code | 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
Project: OpenJSharp File: ORBImpl.java View Source Code | 4 votes |
public synchronized org.omg.CORBA.TypeCode create_fixed_tc(short digits, short scale) { checkShutdownState(); return new TypeCodeImpl(this, TCKind._tk_fixed, digits, scale); }
Example 15
Project: OpenJSharp File: ORBSingleton.java View Source Code | 4 votes |
public org.omg.CORBA.TypeCode create_fixed_tc(short digits, short scale) { return new TypeCodeImpl(this, TCKind._tk_fixed, digits, scale); }
Example 16
Project: openjdk-jdk10 File: ORB.java View Source Code | 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 17
Project: openjdk-jdk10 File: ORBImpl.java View Source Code | 4 votes |
public synchronized org.omg.CORBA.TypeCode create_fixed_tc(short digits, short scale) { checkShutdownState(); return new TypeCodeImpl(this, TCKind._tk_fixed, digits, scale); }
Example 18
Project: openjdk-jdk10 File: ORBSingleton.java View Source Code | 4 votes |
public org.omg.CORBA.TypeCode create_fixed_tc(short digits, short scale) { return new TypeCodeImpl(this, TCKind._tk_fixed, digits, scale); }