Examples of addElement()


Examples of org.apache.tuscany.sca.diagram.artifacts.ImplementationArtifact.addElement()

        // Add the implementation
        ImplementationArtifact impl = new ImplementationArtifact();
        impl.setName(ent.getImplementation());
        impl.setContainerName(ent.getName());
        Element implElement =
            impl.addElement(doc,
                            svgNS,
                            ent.getX() + ent.getWidth() / 4,
                            ent.getY() + ent.getHeight() / 4,
                            ent.getHeight() / 2,
                            ent.getWidth() / 2);
View Full Code Here

Examples of org.apache.tuscany.sca.diagram.artifacts.Layer.addElement()

    }

    private void addLayer() {

        Layer outerLayer = new Layer();
        Element layerElt = outerLayer.addElement(doc, svgNS, 0, 0, getDiagramHeight(), getDiagramWidth());
        svgRoot.appendChild(layerElt);
    }

    private void addReferencePromotion() {
View Full Code Here

Examples of org.apache.tuscany.sca.diagram.artifacts.Link.addElement()

            for (String includedComposite : comp.getIncludedComposites()) {

                Link link = new Link();
                Element aLink =
                    link.addElement(doc, svgNS, includedComposite + comp.getFileNameSuffix() + ext, includedComposite);
                text.appendChild(aLink);

            }
            svgRoot.appendChild(text);
        }
View Full Code Here

Examples of org.apache.tuscany.sca.diagram.artifacts.NormalWire.addElement()

    }

    private void addWire(ReferenceArtifact r, ServiceArtifact s) {

        WireArtifact edge = new NormalWire();
        Element wire = edge.addElement(doc, svgNS, r, s, getChangingFactor(), getColor());
        svgRoot.appendChild(wire);
    }

    private void addWire(ServiceArtifact s1, ServiceArtifact s2) {
View Full Code Here

Examples of org.apache.tuscany.sca.diagram.artifacts.PropertyArtifact.addElement()

        int x = ent.getX() + Constant.SPACING_FOR_COMPONENT_OF_PROPERTY;
        int y = ent.getY() - propLen / 2;

        for (String prop : ent.getProperties()) {
            PropertyArtifact pro = new PropertyArtifact();
            Element property = pro.addElement(doc, svgNS, x, y, propLen);
            Element text = Text.addTextElement(doc, svgNS, x, y - Constant.SPACING_FOR_TEXT, prop);

            Element child = property;
            if (baseURL != null) {
                String url = baseURL + "/components/" + ent.getName() + "/properties/" + prop;
View Full Code Here

Examples of org.apache.tuscany.sca.diagram.artifacts.ReferenceArtifact.addElement()

        int x = (ent.getX() + ent.getWidth()) - (refHeight * 2 / 3);
        int y = ent.getY() + Constant.SPACING_FOR_COMPONENT_OF_REFERENCE;

        for (String ref : setRefOrder(ent)) {
            ReferenceArtifact refer = new ReferenceArtifact();
            Element polygon = refer.addElement(doc, svgNS, x, y, refHeight);

            Element child = polygon;
            if (baseURL != null) {
                String url = baseURL + "/components/" + ent.getName() + "/services/" + ref;
                child = createLink(polygon, url);
View Full Code Here

Examples of org.apache.tuscany.sca.diagram.artifacts.ServiceArtifact.addElement()

        //System.out.println("''''''"+ent.getName() +" '''''' "+ ent.getServices().size());
        for (String ser : ent.getServices()) {

            ServiceArtifact serve = new ServiceArtifact();
            Element polygon = serve.addElement(doc, svgNS, x, y, serHeight);
            Element text;
            if (!ser.endsWith("Impl"))
                text = Text.addTextElement(doc, svgNS, x, y - Constant.SPACING_FOR_TEXT, ser);
            else
                text = Text.addTextElement(doc, svgNS, x, y - Constant.SPACING_FOR_TEXT, "");
View Full Code Here

Examples of org.apache.tuscany.sca.diagram.artifacts.WireArtifact.addElement()

    }

    private void addWire(ReferenceArtifact r, ServiceArtifact s) {

        WireArtifact edge = new NormalWire();
        Element wire = edge.addElement(doc, svgNS, r, s, getChangingFactor(), getColor());
        svgRoot.appendChild(wire);
    }

    private void addWire(ServiceArtifact s1, ServiceArtifact s2) {
View Full Code Here

Examples of org.apache.wss4j.policy.stax.assertionStates.RequiredElementsAssertionState.addElement()

            if (abstractBinding.isIncludeTimestamp()) {
                List<QName> timestampElementPath = new LinkedList<QName>();
                timestampElementPath.addAll(WSSConstants.WSSE_SECURITY_HEADER_PATH);
                timestampElementPath.add(WSSConstants.TAG_wsu_Timestamp);
                RequiredElementsAssertionState requiredElementsAssertionState = new RequiredElementsAssertionState(abstractBinding, false);
                requiredElementsAssertionState.addElement(timestampElementPath);
                assertableList.add(requiredElementsAssertionState);

                SignedElementsAssertionState signedElementsAssertionState = new SignedElementsAssertionState(abstractSecurityAssertion, true);
                signedElementsAssertionState.addElement(timestampElementPath);
                assertableList.add(signedElementsAssertionState);
View Full Code Here

Examples of org.apache.wss4j.policy.stax.assertionStates.SignedElementsAssertionState.addElement()

                RequiredElementsAssertionState requiredElementsAssertionState = new RequiredElementsAssertionState(abstractBinding, false);
                requiredElementsAssertionState.addElement(timestampElementPath);
                assertableList.add(requiredElementsAssertionState);

                SignedElementsAssertionState signedElementsAssertionState = new SignedElementsAssertionState(abstractSecurityAssertion, true);
                signedElementsAssertionState.addElement(timestampElementPath);
                assertableList.add(signedElementsAssertionState);
            }
        } else if (abstractSecurityAssertion instanceof Wss11) {
            Wss11 wss11 = (Wss11)abstractSecurityAssertion;
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.