Package de.danet.an.util.sax

Examples of de.danet.an.util.sax.DelegatingHandler$MatchInfo


     */
    public void scopedParse2() throws Exception {
  final Set outerTags = new HashSet();
  final Set innerTags = new HashSet();
  XMLReader reader = getReader();
  DelegatingHandler dh = new DelegatingHandler () {
    public void startElement
        (String uri, String localName, String qName,
         Attributes atts) throws SAXException {
        outerTags.add (qName);
        super.startElement (uri, localName, qName, atts);
    }
      };
  dh.addHandler ("http://www.wfmc.org/2002/XPDL1.0",
           "TransitionRestrictions", SubHandler.class);
  HandlerStack stack = new HandlerStack (reader, dh);
  stack.setContextData ("innerTags", innerTags);
  reader.parse
      (new InputSource
View Full Code Here


     */
    public void scopedParse3() throws Exception {
  final Set outerTags = new HashSet();
  final Set innerTags = new HashSet();
  XMLReader reader = getReader();
  DelegatingHandler dh = new DelegatingHandler () {
    public void startElement
        (String uri, String localName, String qName,
         Attributes atts) throws SAXException {
        outerTags.add (qName);
        super.startElement (uri, localName, qName, atts);
    }
      };
  dh.addHandler
      ("{http://www.wfmc.org/2002/XPDL1.0}Activity"
       + "/{http://www.wfmc.org/2002/XPDL1.0}TransitionRestrictions",
       SubHandler.class);
  HandlerStack stack = new HandlerStack (reader, dh);
  stack.setContextData ("innerTags", innerTags);
View Full Code Here

     */
    public void scopedParse4() throws Exception {
  final Set outerTags = new HashSet();
  final Set innerTags = new HashSet();
  XMLReader reader = getReader();
  DelegatingHandler dh = new DelegatingHandler () {
    public void startElement
        (String uri, String localName, String qName,
         Attributes atts) throws SAXException {
        outerTags.add (qName);
        super.startElement (uri, localName, qName, atts);
    }
      };
  dh.addHandler
      ("/{http://www.wfmc.org/2002/XPDL1.0}Package"
       + "/{http://www.wfmc.org/2002/XPDL1.0}WorkflowProcesses"
       + "/{http://www.wfmc.org/2002/XPDL1.0}WorkflowProcess"
       + "/{http://www.wfmc.org/2002/XPDL1.0}Activities"
       + "/{http://www.wfmc.org/2002/XPDL1.0}Activity"
View Full Code Here

  final String dfRelPath = "/{" + XPDLUtil.XPDL_NS + "}DataFields";
  final String partiRelPath
      = "/{" + XPDLUtil.XPDL_NS + "}Participants"
      + "/{" + XPDLUtil.XPDL_NS + "}Participant";
  try {
      DelegatingHandler dh = new MyDelegatingHandler ();
      processHeader = new DefaultProcessHeader();
      dh.addHandler
    (packagePath + "/{" + XPDLUtil.XPDL_NS + "}PackageHeader",
     ((DefaultPackageHeader)processHeader.packageHeader())
     .saxInitializer());
      dh.addHandler
    (processPath + "/{" + XPDLUtil.XPDL_NS + "}ProcessHeader",
     ((DefaultProcessHeader)processHeader).saxInitializer());
      dh.addHandler
    (packagePath + "/{" + XPDLUtil.XPDL_NS + "}RedefinableHeader",
     ((DefaultProcessHeader)processHeader).saxInitializer());
      dh.addHandler
    (processPath + "/{" + XPDLUtil.XPDL_NS + "}RedefinableHeader",
     ((DefaultProcessHeader)processHeader).saxInitializer());
      StackedHandler dfh = new SAXDataFieldHandler ();
      contextSignature = new DefaultProcessDataInfo();
      dh.addHandler (packagePath + dfRelPath, dfh);
      dh.addHandler (processPath + dfRelPath, dfh);
      resultSignature = new DefaultProcessDataInfo();
      dh.addHandler
    (processPath + "/{" + XPDLUtil.XPDL_NS + "}FormalParameters",
     new SAXFormalParameterHandler ());
      participants = new HashMap();
      dh.addHandler (packagePath + partiRelPath,
         DefaultParticipant.SAXInitializer.class);
      dh.addHandler (processPath + partiRelPath,
         DefaultParticipant.SAXInitializer.class);
      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
View Full Code Here

TOP

Related Classes of de.danet.an.util.sax.DelegatingHandler$MatchInfo

Copyright © 2018 www.massapicom. 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.