Package org.enhydra.shark.xpdl.elements

Examples of org.enhydra.shark.xpdl.elements.Namespaces


            ph.setXPDLVersion("1.0");
            ph.setVendor("Together");
        }
        ph.setCreated(Utils.getCurrentDateAndTime());

        Namespaces nss = pkg.getNamespaces();
        Namespace ns = createXPDLObject(nss, "", true);
        ns.setName("xpdl");
        ns.setLocation("http://www.wfmc.org/2002/XPDL1.0");
        adjustXPDLObject(pkg, type);
View Full Code Here


        return "xpdl:".equals(this.xpdlPrefix);
    }

    public void fromXML(Element node, Package pkg) {
        NamedNodeMap attribs = node.getAttributes();
        Namespaces nss = pkg.getNamespaces();
        for (int i = 0; i < attribs.getLength(); i++) {
            Node n = attribs.item(i);
            String nn = n.getNodeName();
            if (nn.startsWith("xmlns:") && !nn.equals("xmlns:xsi")) {
                Namespace ns = (Namespace) nss.generateNewElement();
                ns.setName(nn.substring(6, nn.length()));
                fromXML(n, (XMLAttribute) ns.get("location"));
                nss.add(ns);
            }
        }
        fromXML(node, (XMLComplexElement) pkg);
    }
View Full Code Here

                    hasxpdlns = true;
                    break;
                }
            }
            if (!hasxpdlns) {
                Namespaces nss = pkg.getNamespaces();
                XPDLObjectFactory xpdlof = JaWEManager.getInstance().getXPDLObjectFactory();
                Namespace ns = xpdlof.createXPDLObject(nss, "", false);
                ns.setName("xpdl");
                ns.setLocation("http://www.wfmc.org/2002/XPDL1.0");
                nss.add(ns);
                xpdlof.adjustXPDLObject(pkg, null);
                changed = true;
            }
        }
        Iterator comps = JaWEManager.getInstance().getComponentManager().getComponents().iterator();
View Full Code Here

TOP

Related Classes of org.enhydra.shark.xpdl.elements.Namespaces

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.