Examples of convert()


Examples of org.apache.openejb.plugins.common.SessionBeanInterfaceModifier.convert()

      }
     
      Converter[] converters = converterList.toArray(new Converter[0]);
     
      OpenEjbXmlConverter converter = new OpenEjbXmlConverter(converters, new EclipseProjectClassLoader(getClass().getClassLoader(), project));
      converter.convert(ejbJarInputSource, openEjbJarInputSource);

      String[] warnings = jdtFacade.getWarnings();
      for (String warning : warnings) {
        status.addWarning(warning);
      }
View Full Code Here

Examples of org.apache.openejb.plugins.common.SessionBeanRemoteAnnotationAdder.convert()

      }
     
      Converter[] converters = converterList.toArray(new Converter[0]);
     
      OpenEjbXmlConverter converter = new OpenEjbXmlConverter(converters, new EclipseProjectClassLoader(getClass().getClassLoader(), project));
      converter.convert(ejbJarInputSource, openEjbJarInputSource);

      String[] warnings = jdtFacade.getWarnings();
      for (String warning : warnings) {
        status.addWarning(warning);
      }
View Full Code Here

Examples of org.apache.openjpa.lib.identifier.IdentifierUtil.convert()

       
        IdentifierUtil nu = new IdentifierUtilImpl(defConfig);
       
        // Test basic name conversion with single name converter
        String n0 = "\"TABLE\"";
        String cn0 = nu.convert(newConfig, "DEFAULT", n0);
        assertEquals("`TABLE`", cn0);
       
        // Test basic name conversion with single name converter - no
        // conversion
        String n1 = "TABLE";
View Full Code Here

Examples of org.apache.openjpa.lib.identifier.IdentifierUtilImpl.convert()

       
        IdentifierUtil nu = new IdentifierUtilImpl(defConfig);
       
        // Test basic name conversion with single name converter
        String n0 = "\"TABLE\"";
        String cn0 = nu.convert(newConfig, "DEFAULT", n0);
        assertEquals("`TABLE`", cn0);
       
        // Test basic name conversion with single name converter - no
        // conversion
        String n1 = "TABLE";
View Full Code Here

Examples of org.apache.qpid.server.model.ConfiguredObjectAttribute.convert()

        Model model = broker.getModel();
        ConfiguredObjectTypeRegistry typeRegistry = model.getTypeRegistry();
        Map<String, ConfiguredObjectAttribute<?, ?>> attributeTypes =
                typeRegistry.getAttributeTypes(Port.class);
        ConfiguredObjectAttribute protocolsAttribute = attributeTypes.get(Port.PROTOCOLS);
        Set<Protocol> protocols = (Set<Protocol>) protocolsAttribute.convert(portAttributes.get(Port.PROTOCOLS),broker);
        ProtocolType protocolType = null;

        if(protocols == null || protocols.isEmpty())
        {
            // defaulting to AMQP if protocol is not specified
View Full Code Here

Examples of org.apache.qpid.server.plugin.MessageConverter.convert()

            message = (Message_1_0) serverMessage;
        }
        else
        {
            final MessageConverter converter = MessageConverterRegistry.getConverter(serverMessage.getClass(), Message_1_0.class);
            message = (Message_1_0) converter.convert(serverMessage, queueEntry.getQueue().getVirtualHost());
        }

        Transfer transfer = new Transfer();
        //TODO
View Full Code Here

Examples of org.apache.rave.model.ModelConverter.convert()

        ModelConverter converterMock = createMock(ModelConverter.class);
        expect(converterMock.getSourceType()).andReturn(Person.class).anyTimes();
        converters.add(converterMock);
        Person personImpl1 = new PersonImpl();
        PersonImpl personImpl2 = new PersonImpl();
        expect(converterMock.convert(personImpl1)).andReturn(personImpl2);
        replay(converterMock);
        List<PersonImpl> underlying = createMock(List.class);
        expect(underlying.add(personImpl2)).andReturn(true);
        replay(underlying);
        new JpaConverter(converters);
View Full Code Here

Examples of org.apache.tomcat.util.buf.B2CConverter.convert()

                log.error("Invalid URI encoding; using HTTP default");
                connector.setURIEncoding(null);
            }
            if (conv != null) {
                try {
                    conv.convert(bc, cc);
                    uri.setChars(cc.getBuffer(), cc.getStart(),
                                 cc.getLength());
                    return;
                } catch (IOException e) {
                    log.error("Invalid URI character encoding; trying ascii");
View Full Code Here

Examples of org.apache.tomcat.util.buf.C2BConverter.convert()

                throws IOException {
            ByteChunk bc = new ByteChunk(8192);
            CharChunk cc = new CharChunk(8192);
            C2BConverter c2b = new C2BConverter("UTF-8");
            cc.append(message);
            c2b.convert(cc, bc);

            int len = bc.getLength();
            assertTrue(len < 126);

            byte first;
View Full Code Here

Examples of org.apache.tools.ant.taskdefs.optional.native2ascii.Native2AsciiAdapter.convert()

        log("converting " + srcName, Project.MSG_VERBOSE);
        Native2AsciiAdapter ad =
            Native2AsciiAdapterFactory.getAdapter(facade.getImplementation(),
                                                  this);
        if (!ad.convert(this, srcFile, destFile)) {
            throw new BuildException("conversion failed");
        }
    }

    /**
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.