Examples of unmarshal()


Examples of org.docx4j.openpackaging.parts.relationships.RelationshipsPart.unmarshal()

      is =  partStore.loadPart( partName);
      if (is==null) {
        return null; // that's ok
      }
      rp = p.getRelationshipsPart(true);
      rp.unmarshal(is);
     
    } catch (Exception e) {
      e.printStackTrace();
      throw new Docx4JException("Error getting document from Zipped Part:" + partName, e);
     
View Full Code Here

Examples of org.drools.ide.common.server.util.ScenarioXMLPersistence.unmarshal()

    s = p.marshal(sc);

      assertTrue(s.indexOf("<ruleName>Life unverse and everything</ruleName>") > 0);

      Scenario sc_ = p.unmarshal(s);
      assertEquals(sc.getGlobals().size(), sc_.getGlobals().size());
      assertEquals(sc.getFixtures().size(), sc_.getFixtures().size());
      assertTrue(s.indexOf("org.drools") == -1); //check we have aliased all

  }
View Full Code Here

Examples of org.drools.marshalling.ObjectMarshallingStrategy.unmarshal()

                                                                       ClassNotFoundException {
        Object object = null;
        ObjectMarshallingStrategy strategy = null;
        if ( _handle.hasStrategyIndex() ) {
            strategy = context.usedStrategies.get( _handle.getStrategyIndex() );
            object = strategy.unmarshal( context.strategyContexts.get( strategy ),
                                         context,
                                         _handle.getObject().toByteArray(),
                                         (context.ruleBase == null)?null:context.ruleBase.getRootClassLoader() );
        }
View Full Code Here

Examples of org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal()

            if (in instanceof XMLStreamReaderEx) {
                CustomXMLStreamReaderReader cr = new CustomXMLStreamReaderReader();
                XMLStreamReaderInputSource is = new XMLStreamReaderInputSource(
                        in);
                SAXSource saxSource = new SAXSource(cr, is);
                o = ((mappingInfo != null) ? unmarshaller.unmarshal(saxSource,
                        mappingInfo) : unmarshaller.unmarshal(saxSource));
            } else {
                o = ((mappingInfo != null) ? unmarshaller.unmarshal(in,
                        mappingInfo) : unmarshaller.unmarshal(in));
            }
View Full Code Here

Examples of org.eclipse.persistence.oxm.XMLUnmarshaller.unmarshal()

        XMLEntityMappings xmlEntityMappings;
       
        try {
          XMLUnmarshaller unmarshaller = m_orm1_0Project.createUnmarshaller();
            useLocalSchemaForUnmarshaller(unmarshaller, ORM_1_0_XSD, validateORMSchema);
            xmlEntityMappings = (XMLEntityMappings) unmarshaller.unmarshal(reader1);
        } catch (Exception e) {
          try {
            XMLUnmarshaller unmarshaller = m_eclipseLinkOrmProject.createUnmarshaller();
                useLocalSchemaForUnmarshaller(unmarshaller, ECLIPSELINK_ORM_XSD, validateORMSchema);
                xmlEntityMappings = (XMLEntityMappings) unmarshaller.unmarshal(reader2);
View Full Code Here

Examples of org.exolab.castor.xml.Unmarshaller.unmarshal()

      Mapping mapping = new Mapping();
      try {
  mapping.loadMapping(f1.getPath());
  Unmarshaller unmar = new Unmarshaller(mapping);
  unmar.setDebug(true);
  baseobj=(JoBoBase)unmar.unmarshal(new InputSource(f2.getPath()));
 
  log.info("configured from XML");
       
      } catch (Exception e) {
  log.error(e.getMessage());
View Full Code Here

Examples of org.exolab.castor.xml.Unmarshaller.unmarshal()

        new InputSource(mis)
        );
     
      Unmarshaller unmarshaller = new Unmarshaller(mapping);
      settings =
        (ChartThemeSettings)unmarshaller.unmarshal(
          new InputSource(is)
        );
    }
    catch (MappingException e)
    {
View Full Code Here

Examples of org.fusesource.ide.commons.camel.tools.RouteXml.unmarshal()

  @Override
  public RouteContainer loadRoutes(File file) {
    try {
      RouteXml helper = createXmlHelper();
      Activator.getLogger().debug("Loading file: " + file);
      XmlModel model = helper.unmarshal(file);
      if (model.getRouteDefinitionList().size()<1) noRoutesOnLoad = true;
      return toContainer(model);
    } catch (Exception e) {
      Activator.getLogger().error("Failed to load Camel mode: " + e, e);
      throw new RuntimeException(e);
View Full Code Here

Examples of org.gatein.pc.portlet.impl.metadata.adapter.LocalizedStringAdapter.unmarshal()

      }

      public LocalizedString getLocalizedString() throws Exception
      {
         LocalizedStringAdapter adapter = new LocalizedStringAdapter();
         return adapter.unmarshal(list);
      }
   }
}
View Full Code Here

Examples of org.hudsonci.utils.marshal.Marshaller.unmarshal()

            log.trace("Unmarshalling reference: {} from file: {}", OID.get(ref), file);
        }

        Reader reader = new BufferedReader(new FileReader(file));
        try {
            value = marshaller.unmarshal(reader);
        }
        finally {
            Closer.close(reader);
        }
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.