def _mapComponent(self, softpkg): javacomp = {} if self.package == '': javacomp['package'] = softpkg.basename() + '.java' else: javacomp['package'] = self.package userclass = softpkg.basename() baseclass = userclass + '_base' javacomp['baseclass'] = { 'name': baseclass, 'file': baseclass + '.java' } javacomp['userclass'] = { 'name': userclass, 'file': userclass + '.java' } javacomp['superclass'] = self.superclass(softpkg) javacomp['mainclass'] = java.qualifiedName(userclass, javacomp['package']) javacomp['jarfile'] = softpkg.basename() + '.jar' javacomp['interfacedeps'] = list( self.getInterfaceDependencies(softpkg)) javacomp['interfacejars'] = self.getInterfaceJars(softpkg) javacomp['hasmultioutport'] = self.hasMultioutPort(softpkg) javacomp['hasfrontendprovides'] = self.hasFrontendProvidesPorts( softpkg) javacomp['hastunerstatusstructure'] = self.hasTunerStatusStructure( softpkg) javacomp['implements'] = self.getImplementedInterfaces(softpkg) return javacomp
def _mapComponent(self, softpkg): javacomp = {} javacomp['package'] = self.package userclass = softpkg.name() baseclass = userclass + '_base' javacomp['baseclass'] = {'name': baseclass, 'file': baseclass+'.java'} javacomp['userclass'] = {'name': userclass, 'file': userclass+'.java'} javacomp['superclass'] = self.superclass(softpkg) javacomp['mainclass'] = java.qualifiedName(userclass, self.package) javacomp['jarfile'] = softpkg.name() + '.jar' javacomp['interfacedeps'] = list(self.getInterfaceDependencies(softpkg)) javacomp['interfacejars'] = self.getInterfaceJars(softpkg) javacomp['hasbulkio'] = self.hasBulkioPorts(softpkg) return javacomp
def _mapComponent(self, softpkg): javacomp = {} if self.package == '': javacomp['package'] = softpkg.basename()+'.java' else: javacomp['package'] = self.package userclass = softpkg.basename() baseclass = userclass + '_base' javacomp['baseclass'] = {'name': baseclass, 'file': baseclass+'.java'} javacomp['userclass'] = {'name': userclass, 'file': userclass+'.java'} javacomp['superclass'] = self.superclass(softpkg) javacomp['mainclass'] = java.qualifiedName(userclass, javacomp['package']) javacomp['jarfile'] = softpkg.basename() + '.jar' javacomp['interfacedeps'] = list(self.getInterfaceDependencies(softpkg)) javacomp['interfacejars'] = self.getInterfaceJars(softpkg) javacomp['hasmultioutport'] = self.hasMultioutPort(softpkg) return javacomp
def _mapComponent(self, softpkg): javacomp = {} idl = IDLInterface(softpkg.descriptor().repid().repid) javacomp['interface'] = idl.interface() javacomp['operations'] = self.operations(idl) javacomp['attributes'] = self.attributes(idl) javacomp.update(self.getNamespace(idl)) javacomp['package'] = self.package userclass = softpkg.name() baseclass = userclass + '_base' javacomp['baseclass'] = {'name': baseclass, 'file': baseclass+'.java'} javacomp['userclass'] = {'name': userclass, 'file': userclass+'.java'} javacomp['superclass'] = self.superclass(softpkg) javacomp['mainclass'] = java.qualifiedName(userclass, self.package) javacomp['jarfile'] = softpkg.name() + '.jar' javacomp['interfacedeps'] = list(self.getInterfaceDependencies(softpkg)) javacomp['interfacejars'] = self.getInterfaceJars(softpkg) return javacomp
def _mapComponent(self, softpkg): javacomp = {} idl = IDLInterface(softpkg.descriptor().repid().repid) javacomp['interface'] = idl.interface() javacomp['operations'] = self.operations(idl) javacomp['attributes'] = self.attributes(idl) javacomp.update(self.getNamespace(idl)) if self.package == '': javacomp['package'] = softpkg.basename()+'.java' else: javacomp['package'] = self.package userclass = softpkg.basename() baseclass = userclass + '_base' javacomp['baseclass'] = {'name': baseclass, 'file': baseclass+'.java'} javacomp['userclass'] = {'name': userclass, 'file': userclass+'.java'} javacomp['superclass'] = self.superclass(softpkg) javacomp['mainclass'] = java.qualifiedName(userclass, javacomp['package']) javacomp['jarfile'] = softpkg.basename() + '.jar' javacomp['interfacedeps'] = list(self.getInterfaceDependencies(softpkg)) javacomp['interfacejars'] = self.getInterfaceJars(softpkg) return javacomp