Java Code Examples for org.omg.CORBA.TCKind#tk_string()
The following examples show how to use
org.omg.CORBA.TCKind#tk_string() .
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: AnyImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
/** * See the description of the <a href="#anyOps">general Any operations.</a> */ public void insert_string(String s) { //debug.log ("insert_string"); // Make sure type code information for bounded strings is not erased if (typeCode.kind() == TCKind.tk_string) { int length = 0; try { length = typeCode.length(); } catch (BadKind bad) { throw wrapper.badkindCannotOccur() ; } // Check if bounded strings length is not exceeded if (length != 0 && s != null && s.length() > length) { throw wrapper.badStringBounds( new Integer(s.length()), new Integer(length) ) ; } } else { typeCode = orb.get_primitive_tc(TCKind._tk_string); } object = s; isInitialized = true; }
Example 2
Source File: AnyImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * See the description of the <a href="#anyOps">general Any operations.</a> */ public void insert_string(String s) { //debug.log ("insert_string"); // Make sure type code information for bounded strings is not erased if (typeCode.kind() == TCKind.tk_string) { int length = 0; try { length = typeCode.length(); } catch (BadKind bad) { throw wrapper.badkindCannotOccur() ; } // Check if bounded strings length is not exceeded if (length != 0 && s != null && s.length() > length) { throw wrapper.badStringBounds( new Integer(s.length()), new Integer(length) ) ; } } else { typeCode = orb.get_primitive_tc(TCKind._tk_string); } object = s; isInitialized = true; }
Example 3
Source File: AnyImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * See the description of the <a href="#anyOps">general Any operations.</a> */ public void insert_string(String s) { //debug.log ("insert_string"); // Make sure type code information for bounded strings is not erased if (typeCode.kind() == TCKind.tk_string) { int length = 0; try { length = typeCode.length(); } catch (BadKind bad) { throw wrapper.badkindCannotOccur() ; } // Check if bounded strings length is not exceeded if (length != 0 && s != null && s.length() > length) { throw wrapper.badStringBounds( new Integer(s.length()), new Integer(length) ) ; } } else { typeCode = orb.get_primitive_tc(TCKind._tk_string); } object = s; isInitialized = true; }
Example 4
Source File: AnyImpl.java From JDKSourceCode1.8 with MIT License | 6 votes |
/** * See the description of the <a href="#anyOps">general Any operations.</a> */ public void insert_string(String s) { //debug.log ("insert_string"); // Make sure type code information for bounded strings is not erased if (typeCode.kind() == TCKind.tk_string) { int length = 0; try { length = typeCode.length(); } catch (BadKind bad) { throw wrapper.badkindCannotOccur() ; } // Check if bounded strings length is not exceeded if (length != 0 && s != null && s.length() > length) { throw wrapper.badStringBounds( new Integer(s.length()), new Integer(length) ) ; } } else { typeCode = orb.get_primitive_tc(TCKind._tk_string); } object = s; isInitialized = true; }
Example 5
Source File: AnyImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * See the description of the <a href="#anyOps">general Any operations.</a> */ public void insert_string(String s) { //debug.log ("insert_string"); // Make sure type code information for bounded strings is not erased if (typeCode.kind() == TCKind.tk_string) { int length = 0; try { length = typeCode.length(); } catch (BadKind bad) { throw wrapper.badkindCannotOccur() ; } // Check if bounded strings length is not exceeded if (length != 0 && s != null && s.length() > length) { throw wrapper.badStringBounds( new Integer(s.length()), new Integer(length) ) ; } } else { typeCode = orb.get_primitive_tc(TCKind._tk_string); } object = s; isInitialized = true; }
Example 6
Source File: AnyImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * See the description of the <a href="#anyOps">general Any operations.</a> */ public void insert_string(String s) { //debug.log ("insert_string"); // Make sure type code information for bounded strings is not erased if (typeCode.kind() == TCKind.tk_string) { int length = 0; try { length = typeCode.length(); } catch (BadKind bad) { throw wrapper.badkindCannotOccur() ; } // Check if bounded strings length is not exceeded if (length != 0 && s != null && s.length() > length) { throw wrapper.badStringBounds( new Integer(s.length()), new Integer(length) ) ; } } else { typeCode = orb.get_primitive_tc(TCKind._tk_string); } object = s; isInitialized = true; }
Example 7
Source File: AnyImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * See the description of the <a href="#anyOps">general Any operations.</a> */ public void insert_string(String s) { //debug.log ("insert_string"); // Make sure type code information for bounded strings is not erased if (typeCode.kind() == TCKind.tk_string) { int length = 0; try { length = typeCode.length(); } catch (BadKind bad) { throw wrapper.badkindCannotOccur() ; } // Check if bounded strings length is not exceeded if (length != 0 && s != null && s.length() > length) { throw wrapper.badStringBounds( new Integer(s.length()), new Integer(length) ) ; } } else { typeCode = orb.get_primitive_tc(TCKind._tk_string); } object = s; isInitialized = true; }
Example 8
Source File: AnyImpl.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * See the description of the <a href="#anyOps">general Any operations.</a> */ public void insert_string(String s) { //debug.log ("insert_string"); // Make sure type code information for bounded strings is not erased if (typeCode.kind() == TCKind.tk_string) { int length = 0; try { length = typeCode.length(); } catch (BadKind bad) { throw wrapper.badkindCannotOccur() ; } // Check if bounded strings length is not exceeded if (length != 0 && s != null && s.length() > length) { throw wrapper.badStringBounds( new Integer(s.length()), new Integer(length) ) ; } } else { typeCode = orb.get_primitive_tc(TCKind._tk_string); } object = s; isInitialized = true; }
Example 9
Source File: AnyImpl.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * See the description of the <a href="#anyOps">general Any operations.</a> */ public void insert_string(String s) { //debug.log ("insert_string"); // Make sure type code information for bounded strings is not erased if (typeCode.kind() == TCKind.tk_string) { int length = 0; try { length = typeCode.length(); } catch (BadKind bad) { throw wrapper.badkindCannotOccur() ; } // Check if bounded strings length is not exceeded if (length != 0 && s != null && s.length() > length) { throw wrapper.badStringBounds( new Integer(s.length()), new Integer(length) ) ; } } else { typeCode = orb.get_primitive_tc(TCKind._tk_string); } object = s; isInitialized = true; }
Example 10
Source File: AnyImpl.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * See the description of the <a href="#anyOps">general Any operations.</a> */ public void insert_string(String s) { //debug.log ("insert_string"); // Make sure type code information for bounded strings is not erased if (typeCode.kind() == TCKind.tk_string) { int length = 0; try { length = typeCode.length(); } catch (BadKind bad) { throw wrapper.badkindCannotOccur() ; } // Check if bounded strings length is not exceeded if (length != 0 && s != null && s.length() > length) { throw wrapper.badStringBounds( new Integer(s.length()), new Integer(length) ) ; } } else { typeCode = orb.get_primitive_tc(TCKind._tk_string); } object = s; isInitialized = true; }