return new IDLType(c, new String[]{"java", "lang"}, "Object"); return new IDLType(c, new String[]{"CORBA"}, "WStringValue"); return new IDLType(c, new String[]{"javax", "rmi", "CORBA"}, "ClassDesc"); return new IDLType(c, new String[]{"java", "io"}, "Serializable"); return new IDLType(c, new String[]{"java", "io"}, "Externalizable"); return new IDLType(c, new String[]{"java", "rmi"}, "Remote"); return new IDLType(c, "Object");
public static String getExceptionId(Class<?> cls) { // Requirements for this method: // 1. cls must be an exception but not a RemoteException. // 2. If cls has an IDL keyword name, an underscore is prepended (1.3.2.2). // 3. If cls jas a leading underscore, J is prepended (1.3.2.3). // 4. If cls has an illegal IDL ident char, it is mapped to UXXXX where // XXXX is the unicode value in hex of the char (1.3.2.4). // 5. double underscore for inner class (1.3.2.5). // 6. The ID is "IDL:" + name with / separators + ":1.0". IDLType itype = classToIDLType(cls); return itype.getExceptionName(); }
public String getModuleName() { // Note that this should probably be makeConcatenatedName( '/', true ) for spec compliance, but rmic does it // this way, so we'll leave this. // The effect is that an overloaded method like void foo( bar.typedef.Baz ) will get an IDL name of // foo__bar_typedef_Baz instead of foo__bar__typedef_Baz (note the extra _ before typedef). return makeConcatenatedName('_', false); }
if (componentIdlType.hasModule()) modules = (String[]) ObjectUtility.concatenateArrays(modules, componentIdlType.getModules()); + componentIdlType.getMemberName(); idlType = new IDLType(c, modules, memberName); idlType = new IDLType(c, memberName); idlType = new IDLType(c, modules, memberName);
String moduleName = idlType.getModuleName(); String memberName = idlType.getMemberName();
if (componentIdlType.hasModule()) modules = (String[]) ObjectUtility.concatenateArrays(modules, componentIdlType.getModules()); + componentIdlType.getMemberName(); idlType = new IDLType(c, modules, memberName); idlType = new IDLType(c, memberName); idlType = new IDLType(c, modules, memberName);
String moduleName = idlType.getModuleName(); String memberName = idlType.getMemberName();
public String getModuleName() { // Note that this should probably be makeConcatenatedName( '/', true ) for spec compliance, but rmic does it // this way, so we'll leave this. // The effect is that an overloaded method like void foo( bar.typedef.Baz ) will get an IDL name of // foo__bar_typedef_Baz instead of foo__bar__typedef_Baz (note the extra _ before typedef). return makeConcatenatedName('_', false); }
public static String getExceptionId(Class<?> cls) { // Requirements for this method: // 1. cls must be an exception but not a RemoteException. // 2. If cls has an IDL keyword name, an underscore is prepended (1.3.2.2). // 3. If cls jas a leading underscore, J is prepended (1.3.2.3). // 4. If cls has an illegal IDL ident char, it is mapped to UXXXX where // XXXX is the unicode value in hex of the char (1.3.2.4). // 5. double underscore for inner class (1.3.2.5). // 6. The ID is "IDL:" + name with / separators + ":1.0". IDLType itype = classToIDLType(cls); return itype.getExceptionName(); }
public String getExceptionName() { // Here we will check for IDL keyword collisions (see bug 5010332). // This means that the repository ID for foo.exception.SomeException is "IDL:foo/_exception/SomeEx:1.0" (note // the underscore in front of the exception module name). String modName = makeConcatenatedName('/', true); String suffix = "Exception"; String excName = memberName_; if (excName.endsWith(suffix)) { int last = excName.length() - suffix.length(); excName = excName.substring(0, last); } // See bug 4989312: we must always add the Ex. excName += "Ex"; if (modName.length() == 0) return "IDL:" + excName + ":1.0"; else return "IDL:" + modName + '/' + excName + ":1.0"; }
return new IDLType(c, new String[]{"java", "lang"}, "Object"); return new IDLType(c, new String[]{"CORBA"}, "WStringValue"); return new IDLType(c, new String[]{"javax", "rmi", "CORBA"}, "ClassDesc"); return new IDLType(c, new String[]{"java", "io"}, "Serializable"); return new IDLType(c, new String[]{"java", "io"}, "Externalizable"); return new IDLType(c, new String[]{"java", "rmi"}, "Remote"); return new IDLType(c, "Object");
public String getExceptionName() { // Here we will check for IDL keyword collisions (see bug 5010332). // This means that the repository ID for foo.exception.SomeException is "IDL:foo/_exception/SomeEx:1.0" (note // the underscore in front of the exception module name). String modName = makeConcatenatedName('/', true); String suffix = "Exception"; String excName = memberName_; if (excName.endsWith(suffix)) { int last = excName.length() - suffix.length(); excName = excName.substring(0, last); } // See bug 4989312: we must always add the Ex. excName += "Ex"; if (modName.length() == 0) return "IDL:" + excName + ":1.0"; else return "IDL:" + modName + '/' + excName + ":1.0"; }