Package org.apache.cocoon.xml

Examples of org.apache.cocoon.xml.AttributesImpl.removeAttribute()


                final LinkService linkService = portalService.getComponentManager().getLinkService();
                final String format = attr.getValue("format");
                AttributesImpl newAttrs = new AttributesImpl();
                newAttrs.setAttributes(attr);
                newAttrs.removeAttribute("format");

                if ( attr.getValue("href") != null ) {
                    final CopletInstanceData cid = this.getCopletInstanceData();
                    ChangeCopletInstanceAspectDataEvent event = new ChangeCopletInstanceAspectDataEvent(cid, null, null);
                   
View Full Code Here


                    if (value.indexOf('?') == -1) {
                        value = value + '?' + attr.getValue("href");
                    } else {
                        value = value + '&' + attr.getValue("href");
                    }
                    newAttrs.removeAttribute("href");
                    this.output(value, format, newAttrs );
                } else {
                    final String path = attr.getValue("path");
                    final String value = attr.getValue("value");
                   
View Full Code Here

                    this.output(value, format, newAttrs );
                } else {
                    final String path = attr.getValue("path");
                    final String value = attr.getValue("value");
                   
                    newAttrs.removeAttribute("path");
                    newAttrs.removeAttribute("value");
                   
                    JXPathEvent event;
                    if ( attr.getValue("layout") != null ) {
                        newAttrs.removeAttribute("layout");
View Full Code Here

                } else {
                    final String path = attr.getValue("path");
                    final String value = attr.getValue("value");
                   
                    newAttrs.removeAttribute("path");
                    newAttrs.removeAttribute("value");
                   
                    JXPathEvent event;
                    if ( attr.getValue("layout") != null ) {
                        newAttrs.removeAttribute("layout");
                        final String layoutId = attr.getValue("layout");
View Full Code Here

                    newAttrs.removeAttribute("path");
                    newAttrs.removeAttribute("value");
                   
                    JXPathEvent event;
                    if ( attr.getValue("layout") != null ) {
                        newAttrs.removeAttribute("layout");
                        final String layoutId = attr.getValue("layout");
                        Object layout = portalService.getComponentManager().getProfileManager().getPortalLayout(null, layoutId);
                        event = new JXPathEvent(layout, path, value);
                    } else {
                        String copletId = attr.getValue("coplet");
View Full Code Here

                        final String layoutId = attr.getValue("layout");
                        Object layout = portalService.getComponentManager().getProfileManager().getPortalLayout(null, layoutId);
                        event = new JXPathEvent(layout, path, value);
                    } else {
                        String copletId = attr.getValue("coplet");
                        newAttrs.removeAttribute("coplet");
                        final CopletInstanceData cid = this.getCopletInstanceData(copletId);
                        event = new CopletJXPathEvent(cid, path, value);
                    }
                    if ( this.insideLinks ) {
                        this.collectedEvents.add(event);
View Full Code Here

        while(iter.hasNext()) {
            Map.Entry entry = (Map.Entry)iter.next();
            final String attrName = (String)entry.getKey();
            // check if the attribute has already been defined
            if (attrs.getValue(attrName) != null) {
                attrs.removeAttribute(attrName);
            }
            attrs.addCDATAAttribute(attrName, (String)entry.getValue());
        }

        // The child widgets of the form should update the label
View Full Code Here

        while(iter.hasNext()) {
            Map.Entry entry = (Map.Entry)iter.next();
            final String attrName = (String)entry.getKey();
            // check if the attribute has already been defined
            if ( attrs.getValue(attrName) != null ) {
                attrs.removeAttribute(attrName);
            }
            attrs.addCDATAAttribute(attrName, (String)entry.getValue());
        }
       
        this.ajaxTemplate = "true".equals(attributes.get("ajax"));
View Full Code Here

                    + ".");
        }

        // remove ATTRIBUTE_ATTR, "coplet" and ELEMENT_ATTR from attributes
        AttributesImpl newAttributes = this.getMutableAttributes(attributes);
        newAttributes.removeAttribute(ELEMENT_ATTR);
        newAttributes.removeAttribute(ATTRIBUTE_ATTR);
        newAttributes.removeAttribute("coplet");

        int index = newAttributes.getIndex(attributeName);
        String link = newAttributes.getValue(index);
View Full Code Here

        }

        // remove ATTRIBUTE_ATTR, "coplet" and ELEMENT_ATTR from attributes
        AttributesImpl newAttributes = this.getMutableAttributes(attributes);
        newAttributes.removeAttribute(ELEMENT_ATTR);
        newAttributes.removeAttribute(ATTRIBUTE_ATTR);
        newAttributes.removeAttribute("coplet");

        int index = newAttributes.getIndex(attributeName);
        String link = newAttributes.getValue(index);
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.