Examples of marshal()


Examples of com.sun.xml.ws.policy.sourcemodel.PolicyModelMarshaller.marshal()

                          
            AssertionSet set = AssertionSet.createAssertionSet(Arrays.asList(new PolicyAssertion[] {token}));
            Policy policy = Policy.createPolicy(Arrays.asList(new AssertionSet[] { set }));
            PolicySourceModel sourceModel = ModelGenerator.getGenerator().translate(policy);
            PolicyModelMarshaller pm = PolicyModelMarshaller.getXmlMarshaller(true);
            pm.marshal(sourceModel, writer);
            writer.close();
           
            return baos.toByteArray();
         }catch (Exception e){
            throw new WebServiceException(e);
View Full Code Here

Examples of com.sun.xml.ws.spi.db.RepeatedElementBridge.marshal()

        }
        if (w.bridges != null) for (int i = 0; i < w.bridges.length; i++) {
            if (w.bridges[i] instanceof RepeatedElementBridge) {
                RepeatedElementBridge rbridge = (RepeatedElementBridge) w.bridges[i];
                for (Iterator itr = rbridge.collectionHandler().iterator(w.values[i]); itr.hasNext();) {
                    rbridge.marshal(itr.next(), contentHandler, am);
                }               
            } else {
                w.bridges[i].marshal(w.values[i], contentHandler, am);
            }
        }
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.marshal()

        }
        Document document = documentBuilder.newDocument();
        DomWriter writer = new DomWriter(document);

        XStream xstream = XStreamUtil.createXStream();
        xstream.marshal(gbeanDatas, writer);

//        FileWriter w = new FileWriter("target/foo.xml");
//        xstream.toXML(gbeanDatas, w);
//        w.close();
View Full Code Here

Examples of com.thoughtworks.xstream.converters.Converter.marshal()

      public void marshal(Object value, HierarchicalStreamWriter writer,
          MarshallingContext context) {
        Converter converter = xstream.getConverterLookup().lookupConverterForType(initializer.getActualClass(value));
        initializer.initialize(value);
        converter.marshal(value, writer, context);
      }
    });
  }
}
View Full Code Here

Examples of de.ambits.csvmaster.marshal.ICsvMarshaller.marshal()

   */
  public void syncWithTextEditor() {
    csvTable.cleanUp();
    IDocument document = editor.getTextEditor().getDocumentProvider().getDocument(editor.getEditorInput());
    ICsvMarshaller marshaller = MarshallerFactory.getMarshaller(MARSHALLERTYPE);
      document.set(marshaller.marshal(csvTable));
  }
 
  private TableColumn getTableColumn(ColumnHeader columnHeader) {
    int index = csvTable.getHeader().indexOf(columnHeader) + 1;
    TableColumn result = null;
View Full Code Here

Examples of de.micromata.opengis.kml.v_2_2_0.Kml.marshal()

       
      }
     
     
    }
    kml.marshal(outputFile);
    logger.info("KML file published. Location:"
        + outputFile.getAbsolutePath());
    return outputFile;
  }
View Full Code Here

Examples of gov.nasa.jpf.autodoc.types.output.XMLReaderWriter.marshal()

    if (isOptionEnabled(options, Options.XML.weight)) {
      String arg = getOptionArg(args, Options.XML);
      XMLReaderWriter xml = new XMLReaderWriter();
     
      xml.setup();
      xml.marshal(info, arg);
      console.writeParam("writing xml to", xml.getFile());
    }
   
    if (isOptionEnabled(options, Options.WIKI.weight)) {
      String file = getOptionArg(args, Options.WIKI);
View Full Code Here

Examples of javax.xml.bind.Marshaller.marshal()

    marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,new Boolean(true));

    FileWriter fw = null;
    try {
      fw = new FileWriter(dsXml);
      marshaller.marshal(group, fw);
    } finally {
      if (fw != null) {
        fw.close();
      }
    }
View Full Code Here

Examples of javax.xml.bind.Marshaller.marshal()

   public void writeFile(File output) throws JAXBException, ParseException {
    JAXBContext context = JAXBContext.newInstance( Installations.class );

     Marshaller m = context.createMarshaller();
     m.setProperty( Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE );
    m.marshal( installations, output );   
   
   }
  
  
  
View Full Code Here

Examples of javax.xml.bind.Marshaller.marshal()

        jaxbConfig.put(JAXBRIContext.ANNOTATION_READER, annReader);

        JAXBContext jaxbContext = JAXBContext.newInstance(new Class[]{obj.getClass()}, jaxbConfig);
        Marshaller marshaller = jaxbContext.createMarshaller();
        marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
        marshaller.marshal(obj, node);
    }

    /**
     * Method to unmarshall a node from XML into an object.
     * @param cls Type of object
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.