Examples of fromXML()


Examples of de.lessvoid.nifty.Nifty.fromXml()

    logicCallbacksCtrl = new LogicThreadCtrl(gameApp, GlobalObjectStore.<Timer>getObject(Timer.class));

    // Nifty: Hud, Usermenu, etc...
    Nifty nifty = niftyDisplay.getNifty();
    nifty.setGlobalProperties(ResourceConstants.getUserProperties());
    nifty.fromXml("hud/onBoardUI.xml", "onBoard");
    ((OnBoardUIController) nifty.getScreen("onBoard").getScreenController()).initialize();

    // datamodel laden
    // int sectorID = userData.getSectorId();
    Sector sector = null;
View Full Code Here

Examples of fr.soleil.salsa.persistence.converter.ComplexTypeConverter.fromXml()

            if (childs.item(i).getNodeType() != Node.ELEMENT_NODE) {
                continue;
            }
            Element item = (Element) childs.item(i);
            Object o = ctc.fromXml(result, item, _cd);
            result.add(o);
        }

        return result;
    }
View Full Code Here

Examples of hermes.Hermes.fromXML()

        try
        {
            final Hermes myHermes = HermesFactory.createHermes(getConfig(), getHermes());
            final Destination destination = myHermes.getDestination(getDestination(), Domain.UNKNOWN);
            final FileInputStream istream = new FileInputStream(new File(getFile())) ;
            final Collection messages =  myHermes.fromXML(istream) ;
           
            istream.close() ;
           
            for (Iterator iter = messages.iterator() ; iter.hasNext() ; )
            {
View Full Code Here

Examples of hudson.plugins.analysis.util.model.AnnotationStream.fromXML()

        xstream.alias("bug", Bug.class);

        InputStream stream = BugsDifferencerTest.class.getResourceAsStream("issue-6669-1.xml");
        FileAnnotation[] current;
        try {
            current = (FileAnnotation[])xstream.fromXML(stream);
            assertEquals("Wrong number of bugs", 2, current.length);
        }
        finally {
            IOUtils.closeQuietly(stream);
        }
View Full Code Here

Examples of hudson.util.XStream2.fromXML()

    public void testUpgrade()
            throws IOException, InterruptedException {

        XStream2 xs = new XStream2();
        InputStream is = FirstFailureTriggerTest.class.getResourceAsStream("oldformat.xml");
        FirstFailureTrigger t = (FirstFailureTrigger) xs.fromXML(is);
        assertEquals(t.failureCount, 1);
    }
}
View Full Code Here

Examples of net.sf.oval.configuration.xml.XMLConfigurer.fromXML()

                if (is != null) {
                    if (LOG.isDebugEnabled()) {
                        LOG.debug("Loading validation xml file [#0]", fileName);
                    }
                    XMLConfigurer configurer = new XMLConfigurer();
                    configurer.fromXML(is);
                    validatorFileCache.put(fileName, configurer);
                    return configurer;
                }
            } finally {
                if (is != null) {
View Full Code Here

Examples of org.apache.hadoop.chukwa.inputtools.jplugin.GenericChukwaMetricsList.fromXml()

      OutputCollector<ChukwaRecordKey, ChukwaRecord> output,
      Reporter reporter) throws Throwable {
    LogEntry entry = new LogEntry(recordEntry);
    String xml = entry.getBody();
    GenericChukwaMetricsList metricsList = new GenericChukwaMetricsList();
    metricsList.fromXml(xml);
    String recType = metricsList.getRecordType();
    long timestamp = metricsList.getTimestamp();
    for (ChukwaMetrics metrics : metricsList.getMetricsList()) {
      key = new ChukwaRecordKey();
      ChukwaRecord record = new ChukwaRecord();
View Full Code Here

Examples of org.apache.muse.core.routing.MessageHandler.fromXML()

            //
            // translate from XML -> POJO. the reflection call will take
            // care of casting the generic Object references to the actual
            // method parameter types
            //
            parameters = handler.fromXML(soapBody);
           
            //
            // invoke operation and translate result to XML
            //
            Object result = method.invoke(capability, parameters);
View Full Code Here

Examples of org.apache.muse.core.serializer.Serializer.fromXML()

        Object objects = Array.newInstance(type, properties.length);
       
        try
        {
            for (int n = 0; n < properties.length; ++n)
                Array.set(objects, n, deser.fromXML(properties[n]));
        }
       
        catch (SoapFault fault)
        {
            throw new SerializationErrorFault(fault);
View Full Code Here

Examples of org.apache.tuscany.sca.core.context.CompositeContext.fromXML()

            if (componentContextHelper != null) {
                this.compositeActivator = CompositeContext.getCurrentCompositeActivator();
                this.conversationManager = componentContextHelper.getConversationManager();
                Component c;
                if (xmlReader != null) {
                    c = componentContextHelper.fromXML(xmlReader);
                    xmlReader = null; // OK to GC this now
                } else {
                    c = componentContextHelper.fromXML(scdl);
                    scdl = null; // OK to GC this now
                }
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.