Examples of contentHandler()


Examples of de.danet.an.util.sax.HandlerStack.contentHandler()

  allActs = new HashMap ();
  HandlerStack hs = new HandlerStack
      (new BlockActivityInitializer
       (proc, actSetDefs, blkActId, joinMode, splitMode));
  hs.setContextData ("packageId", packageId);
  actSetDef.emit(hs.contentHandler());
    }

    /**
     * Add an activity to this block activity's activities.
     * @param actId the id of the activity in the process definition
View Full Code Here

Examples of de.danet.an.util.sax.HandlerStack.contentHandler()

    private void appendNodes
    (SOAPEnvelope env, SOAPElement root, SAXEventBuffer data)
    throws SAXException {
        HandlerStack hs = new HandlerStack (new SOAPBuilder (root));
        hs.setContextData ("envelope", env);
        data.emit(hs.contentHandler());
    }

    /**
     * Return the requested type for XML arguments.
     * @return one of <code>XML_AS_W3C_DOM</code>,
View Full Code Here

Examples of de.danet.an.util.sax.HandlerStack.contentHandler()

      StackedHandler extAttrHandler = new SAXExtAttrHandler ();
      dh.addHandler (packagePath + extAttrRelPath, extAttrHandler);
      dh.addHandler (processPath + extAttrRelPath, extAttrHandler);
      applications = new HashMap ();
      HandlerStack hs = new HandlerStack (dh);
      procDef.emit(hs.contentHandler(), null);
      for (Iterator i = applications().iterator(); i.hasNext();) {
          ApplicationDefinition applDef
              = (ApplicationDefinition)i.next();
                postfixApplicationDefinition(applDef);
      }
View Full Code Here

Examples of de.danet.an.util.sax.HandlerStack.contentHandler()

  try {
      SAXEventBufferImpl buf = new SAXEventBufferImpl ();
      SAXOutputter out = new SAXOutputter (buf);
      out.output(new Document((Element)e.clone()));
      HandlerStack hs = new HandlerStack (h);
      buf.emit (hs.contentHandler());
  } catch (JDOMException ex) {
      throw new IllegalArgumentException (ex.getMessage ());
  } catch (SAXException ex) {
      throw new IllegalArgumentException (ex.getMessage ());
  }
View Full Code Here

Examples of de.danet.an.util.sax.HandlerStack.contentHandler()

            throw new IllegalStateException
              ("Attribute \"ldapContext\" must be specified.");
        }
        try {
            HandlerStack handler = new HandlerStack(new ContentHandler ());
            getXML (new XMLOutput(handler.contentHandler()));
        } catch (SAXException e) {
            throw new JellyTagException(e.getException());
        }
    }
   
View Full Code Here

Examples of de.danet.an.util.sax.HandlerStack.contentHandler()

            throw new IllegalStateException
              ("Attribute \"ldapContext\" must be specified.");
        }
        try {
            HandlerStack handler = new HandlerStack(new ContentHandler ());
            getXML (new XMLOutput(handler.contentHandler()));
        } catch (SAXException e) {
            throw new JellyTagException(e.getException());
        }
    }
   
View Full Code Here

Examples of de.danet.an.util.sax.HandlerStack.contentHandler()

            throw new IllegalStateException
              ("Attribute \"ldapContext\" must be specified.");
        }
        try {
            HandlerStack handler = new HandlerStack(new ContentHandler ());
            getXML (new XMLOutput(handler.contentHandler()));
        } catch (SAXException e) {
            throw new JellyTagException(e.getException());
        }
    }
   
View Full Code Here

Examples of de.danet.an.util.sax.HandlerStack.contentHandler()

  setPaPriority(Priority.NORMAL);
  HandlerStack hs = new HandlerStack (new SAXInitializer ());
  hs.setContextData ("packageId", procDef.packageId());
  try {
      procDef.toSAX().emit(hs.contentHandler());
  } catch (SAXException e) {
      logger.error (e.getMessage (), e);
      throw new IllegalArgumentException (e.getMessage ());
  }
View Full Code Here

Examples of de.danet.an.util.sax.HandlerStack.contentHandler()

  throws SAXException {
  HandlerStack hs = new HandlerStack (new ArrayTypeExtractor(context));
  hs.setContextData("types", new HashSet ());
  hs.setContextData ("items", new Integer (0));
  hs.setContextData ("typesValid", Boolean.TRUE);
  hs.contentHandler().startElement
      ("", "root", "root", new AttributesImpl ());
  buf.emit (hs.contentHandler());
  hs.contentHandler().endElement ("", "root", "root");
  Set types = (Set)hs.getContextData("types");
  String xsdPref = context.getPrefixForURI(XMLUtil.XMLNS_SCHEMA);
View Full Code Here

Examples of de.danet.an.util.sax.HandlerStack.contentHandler()

  hs.setContextData("types", new HashSet ());
  hs.setContextData ("items", new Integer (0));
  hs.setContextData ("typesValid", Boolean.TRUE);
  hs.contentHandler().startElement
      ("", "root", "root", new AttributesImpl ());
  buf.emit (hs.contentHandler());
  hs.contentHandler().endElement ("", "root", "root");
  Set types = (Set)hs.getContextData("types");
  String xsdPref = context.getPrefixForURI(XMLUtil.XMLNS_SCHEMA);
  String arrayType;
  String dim = "[" + (Integer)hs.getContextData("items") + "]";
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.