Package org.apache.cocoon.xml

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


            for (int j = 0; j < tabLayout.getSize(); j++) {
                Item tab = tabLayout.getItem(j);
                ChangeAspectDataEvent event = null;

                // open named-item tag
                attributes.clear();
                if ( tab instanceof NamedItem ) {
                    attributes.addCDATAAttribute("name", String.valueOf(((NamedItem)tab).getName()));
                }
                if (j == selected) {
                    attributes.addCDATAAttribute("selected", "true");
View Full Code Here


            // loop over all tabs
            for (int j = 0; j < tabLayout.getSize(); j++) {
                Item tab = tabLayout.getItem(j);

                // open named-item tag
                attributes.clear();
                if (tab instanceof NamedItem) {
                    if (!subNav) {
                        XMLUtils.startElement(handler, config.childTagName);
                        subNav = true;
                    }
View Full Code Here

                        valueText ="";
                    }
                    a.addCDATAAttribute("name", key);
                    a.addCDATAAttribute("value", valueText);
                    XMLUtils.createElement(this.xmlConsumer, "attribute", a);
                    a.clear();
                }
            }
        }
    }
   
View Full Code Here

        XMLUtils.startElement(this.xmlConsumer, "configuration");
        AttributesImpl attr = new AttributesImpl();
       
        if ( uc.isBasketEnabled() ) {
            XMLUtils.createElement(this.xmlConsumer, "basket", attr, "enabled");
            attr.clear();
        }
        if ( uc.isBriefcaseEnabled() ) {
            XMLUtils.createElement(this.xmlConsumer, "briefcase", "enabled");
            attr.clear();
        }
View Full Code Here

            XMLUtils.createElement(this.xmlConsumer, "basket", attr, "enabled");
            attr.clear();
        }
        if ( uc.isBriefcaseEnabled() ) {
            XMLUtils.createElement(this.xmlConsumer, "briefcase", "enabled");
            attr.clear();
        }
        if ( uc.isFolderEnabled() ) {
            XMLUtils.createElement(this.xmlConsumer, "folder", "enabled");
            attr.clear();
        }
View Full Code Here

            XMLUtils.createElement(this.xmlConsumer, "briefcase", "enabled");
            attr.clear();
        }
        if ( uc.isFolderEnabled() ) {
            XMLUtils.createElement(this.xmlConsumer, "folder", "enabled");
            attr.clear();
        }
       
        XMLUtils.endElement(this.xmlConsumer, "configuration");
    }
   
View Full Code Here

                a.addCDATAAttribute("name", current.name);
                if ( current.name.equals(checkedAction) ) {
                    a.addCDATAAttribute("checked", "true");
                }
                XMLUtils.createElement(this.xmlConsumer, "action", a);
                a.clear();
            }
        }
    }

}
View Full Code Here

            for (int j = 0; j < tabLayout.getSize(); j++) {
                Item tab = tabLayout.getItem(j);
                ChangeAspectDataEvent event = null;

                // open named-item tag
                attributes.clear();
                if ( tab instanceof NamedItem ) {
                    attributes.addCDATAAttribute("name", String.valueOf(((NamedItem)tab).getName()));
                }
                if (j == selected) {
                    attributes.addCDATAAttribute("selected", "true");
View Full Code Here

            // loop over all tabs
            for (int j = 0; j < tabLayout.getSize(); j++) {
                Item tab = tabLayout.getItem(j);

                // open named-item tag
                attributes.clear();
                if (tab instanceof NamedItem) {
                    if (!subNav && !config.childTagName.equals("")) {
                        XMLUtils.startElement(handler, config.childTagName);
                        subNav = true;
                    }
View Full Code Here

                    attrs.addCDATAAttribute("date", report.getDate().toString());
                    XMLUtils.startElement(this.xmlConsumer, "report", attrs);
                    final Iterator si = report.getStatistics().iterator();
                    while ( si.hasNext() ) {
                        final Statistics stats = (Statistics)si.next();
                        attrs.clear();
                        attrs.addCDATAAttribute("name", stats.getCategory());
                        attrs.addCDATAAttribute("duraration", String.valueOf(stats.getDuration()));
                        XMLUtils.createElement(this.xmlConsumer, "component", attrs);
                    }
                    XMLUtils.endElement(this.xmlConsumer, "report");
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.