Examples of XMLSerializer


Examples of com.sun.xml.bind.v2.runtime.XMLSerializer

    public void handleAttribute(final QName attributeName, final String value) {
        startElement(attributeName);
    }

    private RuntimePropertyInfo getCurrentElementRuntimePropertyInfo() {
        final XMLSerializer xs = XMLSerializer.getInstance();
        final Property cp = (xs == null) ? null : xs.getCurrentProperty();
        return (cp == null) ? null : cp.getInfo();
    }

Examples of com.sun.xml.internal.bind.v2.runtime.XMLSerializer

        public String print(BeanT bean) throws AccessorException, SAXException {
            TargetT target = acc.get(bean);
            if(target==null)    return null;

            XMLSerializer w = XMLSerializer.getInstance();
            try {
                String id = w.grammar.getBeanInfo(target,true).getId(target,w);
                if(id==null)
                    w.errorMissingId(target);
                return id;
            } catch (JAXBException e) {
                w.reportError(null,e);
                return null;
            }
        }

Examples of com.sun.xml.internal.txw2.output.XmlSerializer

    /**
     * Performes the actual WSDL generation
     */
    public void doGeneration() {
        XmlSerializer serviceWriter;
        XmlSerializer portWriter = null;
        String fileName = JAXBRIContext.mangleNameToClassName(model.getServiceQName().getLocalPart());
        Result result = wsdlResolver.getWSDL(fileName+DOT_WSDL);
        wsdlLocation = result.getSystemId();
        serviceWriter = new CommentFilter(ResultFactory.createSerializer(result));
        if (model.getServiceQName().getNamespaceURI().equals(model.getTargetNamespace())) {

Examples of com.sun.xml.txw2.output.XmlSerializer

    /**
     * Performes the actual WSDL generation
     */
    public void doGeneration() {
        XmlSerializer serviceWriter;
        XmlSerializer portWriter = null;
        String fileName = mangleName(model.getServiceQName().getLocalPart());
        Result result = wsdlResolver.getWSDL(fileName + DOT_WSDL);
        wsdlLocation = result.getSystemId();
        serviceWriter = new CommentFilter(ResultFactory.createSerializer(result));
        if (model.getServiceQName().getNamespaceURI().equals(model.getTargetNamespace())) {

Examples of com.volantis.xml.xml.serialize.XMLSerializer

    // javadoc inherited
    public void startProcess() throws SAXException {
        // create the xmlSerializer
        try {

            XMLSerializer xmlSerializer = getSerializer();
            if (xmlSerializer == null) {
                // There is no debug file so use a serializer that does
                // nothing. JSP tags will use this when no debug file is set.
                serializer = new NoOpProcess();
            } else {
                // ensure that the serializer is set up to operate in SAX mode.
                XMLHandlerAdapter adapter = new XMLHandlerAdapter();
                adapter.setContentHandler(xmlSerializer.asContentHandler());

                serializer = new ContextAnnotatingProcess(true);
                serializer.setNextProcess(adapter);
                serializer.setPipeline(getPipeline());
                serializer.startProcess();

Examples of net.sf.json.xml.XMLSerializer

      result = "";
    return result;
  }

  public String toXML() {
    return new XMLSerializer().write(JSONObject.fromObject(this,
        JsonConfigFactory.createJsonConfig(this.content)));
  }

Examples of nu.validator.htmlparser.sax.XmlSerializer

                    response.setContentType("text/html; charset=utf-8");
                    contentHandler = new HtmlSerializer(out);
                } else {
                    response.setContentType("application/xhtml+xml");
                    contentHandler =
                            new XmlSerializer(out);
                }
                emitter = new XhtmlSaxEmitter(contentHandler);
                errorHandler = new MessageEmitterAdapter(sourceCode,
                        showSource, imageCollector, lineOffset, false,
                        new XhtmlMessageEmitter(contentHandler));
                PageEmitter.emit(contentHandler, this);
            } else {
                if (outputFormat == OutputFormat.TEXT) {
                    response.setContentType("text/plain; charset=utf-8");
                    errorHandler = new MessageEmitterAdapter(sourceCode,
                            showSource, null, lineOffset, false,
                            new TextMessageEmitter(out, asciiQuotes));
                } else if (outputFormat == OutputFormat.GNU) {
                    response.setContentType("text/plain; charset=utf-8");
                    errorHandler = new MessageEmitterAdapter(sourceCode,
                            showSource, null, lineOffset, false,
                            new GnuMessageEmitter(out, asciiQuotes));
                } else if (outputFormat == OutputFormat.XML) {
                    response.setContentType("application/xml");
                    errorHandler = new MessageEmitterAdapter(sourceCode,
                            showSource, null, lineOffset, false,
                            new XmlMessageEmitter(new XmlSerializer(out)));
                } else if (outputFormat == OutputFormat.JSON) {
                    if (callback == null) {
                        response.setContentType("application/json; charset=utf-8");
                    } else {
                        response.setContentType("application/javascript; charset=utf-8");

Examples of org.apache.cocoon.components.sax.XMLSerializer

            if (this.redirectSource != null) {
                this.environment.toSAX(this.redirectSource, consumer);
            } else {
                // We have to buffer the result in order to get
                // clean environment stack handling.
                XMLSerializer xmls = (XMLSerializer) this.manager.lookup(XMLSerializer.ROLE);
                Object fragment;
                try {
                    CocoonComponentManager.enterEnvironment(this.environment,
                                                            this.manager,
                                                            this.pipelineProcessor);
                    this.processingPipeline.process(this.environment, xmls);
                    fragment = xmls.getSAXFragment();
                } finally {
                    this.manager.release(xmls);
                    CocoonComponentManager.leaveEnvironment();
                }
                XMLDeserializer xmld = (XMLDeserializer) this.manager.lookup(XMLDeserializer.ROLE);

Examples of org.apache.cocoon.pipeline.component.sax.XMLSerializer

      // subpipeline evaluated
      for (Step step : this.getSubpipeline()) {
        step.eval();
      }
     
      this.getEnv().getCcPipeline().addComponent(new XMLSerializer());
     
      // Don't retrieve OutputStream from response until actually writing
      // to response, so that error handlers can retrieve it without getting
      // an error
      final OutputStream out = new OutputStreamWrapper() {

Examples of org.apache.cocoon.sax.component.XMLSerializer

        }

        if (outputProperties == null) {
            outputProperties = new Properties();
        }
        pipeline.addComponent(new XMLSerializer(outputProperties));

        pipeline.setup(outputStream, null);
        pipeline.execute();
    }
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.