base = Util.javaToIDLName(base); iDef = new InterfaceDefImpl(ia.getRepositoryId(), base, "1.0", m, base_interfaces, impl); addTypeCode(cls, iDef.type()); m.add(base, iDef);
public TypeCode type() { if (typeCode == null) typeCode = getORB().create_interface_tc(id, name); return typeCode; }
public void allDone() throws IRConstructionException { getReference(); delegate.allDone(); }
public IRObject getReference() { if (ref == null) { ref = org.omg.CORBA.InterfaceDefHelper.narrow( servantToReference(new InterfaceDefPOATie(this))); } return ref; }
/** * Add a set of interfaces to the IR. * * @return An array of the IR IDs of the interfaces. */ private String[] addInterfaces(ContainerAnalysis ca) throws RMIIIOPViolationException, IRConstructionException { InterfaceAnalysis[] interfaces = ca.getInterfaces(); List base_interfaces = new ArrayList(); for (int i = 0; i < interfaces.length; ++i) { InterfaceDefImpl idi = addInterface(interfaces[i]); base_interfaces.add(idi.id()); } String[] strArr = new String[base_interfaces.size()]; return (String[]) base_interfaces.toArray(strArr); }
public FullInterfaceDescription describe_interface() { if (fullInterfaceDescription != null) return fullInterfaceDescription; // Has to create the FullInterfaceDescription // TODO OperationDescription[] operations = new OperationDescription[0]; AttributeDescription[] attributes = new AttributeDescription[0]; String defined_in_id = "IDL:Global:1.0"; if (defined_in instanceof org.omg.CORBA.ContainedOperations) defined_in_id = ((org.omg.CORBA.ContainedOperations) defined_in).id(); fullInterfaceDescription = new FullInterfaceDescription(name, id, defined_in_id, version, operations, attributes, base_interfaces, type(), is_abstract); return fullInterfaceDescription; }
else if (compType.isInterface() && !RmiIdlUtil.isAbstractValueType(compType)) typeName = ((InterfaceDefImpl) interfaceMap.get(compType)).name(); else if (Exception.class.isAssignableFrom(compType)) // exception type typeName = ((ExceptionDefImpl) exceptionMap.get(compType)).name();
public IRObject getReference() { if (ref == null) { ref = org.omg.CORBA.InterfaceDefHelper.narrow( servantToReference(new InterfaceDefPOATie(this))); } return ref; }
/** * Add a set of interfaces to the IR. * * @return An array of the IR IDs of the interfaces. */ private String[] addInterfaces(ContainerAnalysis ca) throws RMIIIOPViolationException, IRConstructionException { InterfaceAnalysis[] interfaces = ca.getInterfaces(); List base_interfaces = new ArrayList(); for (int i = 0; i < interfaces.length; ++i) { InterfaceDefImpl idi = addInterface(interfaces[i]); base_interfaces.add(idi.id()); } String[] strArr = new String[base_interfaces.size()]; return (String[]) base_interfaces.toArray(strArr); }
public FullInterfaceDescription describe_interface() { if (fullInterfaceDescription != null) return fullInterfaceDescription; // Has to create the FullInterfaceDescription // TODO OperationDescription[] operations = new OperationDescription[0]; AttributeDescription[] attributes = new AttributeDescription[0]; String defined_in_id = "IDL:Global:1.0"; if (defined_in instanceof org.omg.CORBA.ContainedOperations) defined_in_id = ((org.omg.CORBA.ContainedOperations) defined_in).id(); fullInterfaceDescription = new FullInterfaceDescription(name, id, defined_in_id, version, operations, attributes, base_interfaces, type(), is_abstract); return fullInterfaceDescription; }
else if (compType.isInterface() && !RmiIdlUtil.isAbstractValueType(compType)) typeName = ((InterfaceDefImpl) interfaceMap.get(compType)).name(); else if (Exception.class.isAssignableFrom(compType)) // exception type typeName = ((ExceptionDefImpl) exceptionMap.get(compType)).name();
base = Util.javaToIDLName(base); iDef = new InterfaceDefImpl(ia.getRepositoryId(), base, "1.0", m, base_interfaces, impl); addTypeCode(cls, iDef.type()); m.add(base, iDef);
public Description describe() { String defined_in_id = "IR"; if (defined_in instanceof org.omg.CORBA.ContainedOperations) defined_in_id = ((org.omg.CORBA.ContainedOperations) defined_in).id(); org.omg.CORBA.InterfaceDescription md = new InterfaceDescription(name, id, defined_in_id, version, base_interfaces, false); Any any = getORB().create_any(); InterfaceDescriptionHelper.insert(any, md); return new Description(DefinitionKind.dk_Interface, any); }
public IRObject getReference() { if (ref == null) { ref = org.omg.CORBA.InterfaceDefHelper.narrow( servantToReference(new InterfaceDefPOATie(this))); } return ref; }
public void allDone() throws IRConstructionException { getReference(); delegate.allDone(); }
/** * Add a set of interfaces to the IR. * * @return An array of the IR IDs of the interfaces. */ private String[] addInterfaces(ContainerAnalysis ca) throws RMIIIOPViolationException, IRConstructionException { InterfaceAnalysis[] interfaces = ca.getInterfaces(); List base_interfaces = new ArrayList(); for (int i = 0; i < interfaces.length; ++i) { InterfaceDefImpl idi = addInterface(interfaces[i]); base_interfaces.add(idi.id()); } String[] strArr = new String[base_interfaces.size()]; return (String[]) base_interfaces.toArray(strArr); }
public FullInterfaceDescription describe_interface() { if (fullInterfaceDescription != null) return fullInterfaceDescription; // Has to create the FullInterfaceDescription // TODO OperationDescription[] operations = new OperationDescription[0]; AttributeDescription[] attributes = new AttributeDescription[0]; String defined_in_id = "IDL:Global:1.0"; if (defined_in instanceof org.omg.CORBA.ContainedOperations) defined_in_id = ((org.omg.CORBA.ContainedOperations) defined_in).id(); fullInterfaceDescription = new FullInterfaceDescription(name, id, defined_in_id, version, operations, attributes, base_interfaces, type(), is_abstract); return fullInterfaceDescription; }
else if (compType.isInterface() && !RmiIdlUtil.isAbstractValueType(compType)) typeName = ((InterfaceDefImpl) interfaceMap.get(compType)).name(); else if (Exception.class.isAssignableFrom(compType)) // exception type typeName = ((ExceptionDefImpl) exceptionMap.get(compType)).name();
base = Util.javaToIDLName(base); iDef = new InterfaceDefImpl(ia.getRepositoryId(), base, "1.0", m, base_interfaces, impl); addTypeCode(cls, iDef.type()); m.add(base, iDef);
public TypeCode type() { if (typeCode == null) typeCode = getORB().create_interface_tc(id, name); return typeCode; }