Package org.apache.cocoon.xml

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


    }

    public void generateItemSaxFragment(ContentHandler contentHandler, Locale locale) throws SAXException {
        // value element
        AttributesImpl attributesImpl = new AttributesImpl();
        attributesImpl.addAttribute("","lng","lng","CDATA",this.value.getLng()+"");
        attributesImpl.addAttribute("","lat","lat","CDATA",this.value.getLat()+"");
        attributesImpl.addAttribute("","zoom","zoom","CDATA",this.value.getZoom()+"");
        attributesImpl.addAttribute("","current","current","CDATA",this.value.getCurrentMarker()+"");

        contentHandler.startElement(FormsConstants.INSTANCE_NS, VALUE_EL, FormsConstants.INSTANCE_PREFIX_COLON + VALUE_EL, attributesImpl);
View Full Code Here


    public void generateItemSaxFragment(ContentHandler contentHandler, Locale locale) throws SAXException {
        // value element
        AttributesImpl attributesImpl = new AttributesImpl();
        attributesImpl.addAttribute("","lng","lng","CDATA",this.value.getLng()+"");
        attributesImpl.addAttribute("","lat","lat","CDATA",this.value.getLat()+"");
        attributesImpl.addAttribute("","zoom","zoom","CDATA",this.value.getZoom()+"");
        attributesImpl.addAttribute("","current","current","CDATA",this.value.getCurrentMarker()+"");

        contentHandler.startElement(FormsConstants.INSTANCE_NS, VALUE_EL, FormsConstants.INSTANCE_PREFIX_COLON + VALUE_EL, attributesImpl);
View Full Code Here

    public void generateItemSaxFragment(ContentHandler contentHandler, Locale locale) throws SAXException {
        // value element
        AttributesImpl attributesImpl = new AttributesImpl();
        attributesImpl.addAttribute("","lng","lng","CDATA",this.value.getLng()+"");
        attributesImpl.addAttribute("","lat","lat","CDATA",this.value.getLat()+"");
        attributesImpl.addAttribute("","zoom","zoom","CDATA",this.value.getZoom()+"");
        attributesImpl.addAttribute("","current","current","CDATA",this.value.getCurrentMarker()+"");

        contentHandler.startElement(FormsConstants.INSTANCE_NS, VALUE_EL, FormsConstants.INSTANCE_PREFIX_COLON + VALUE_EL, attributesImpl);

        // usermarker
View Full Code Here

        // value element
        AttributesImpl attributesImpl = new AttributesImpl();
        attributesImpl.addAttribute("","lng","lng","CDATA",this.value.getLng()+"");
        attributesImpl.addAttribute("","lat","lat","CDATA",this.value.getLat()+"");
        attributesImpl.addAttribute("","zoom","zoom","CDATA",this.value.getZoom()+"");
        attributesImpl.addAttribute("","current","current","CDATA",this.value.getCurrentMarker()+"");

        contentHandler.startElement(FormsConstants.INSTANCE_NS, VALUE_EL, FormsConstants.INSTANCE_PREFIX_COLON + VALUE_EL, attributesImpl);

        // usermarker
        if (this.value.getUsermarker() != null) {
View Full Code Here

        contentHandler.startElement(FormsConstants.INSTANCE_NS, VALUE_EL, FormsConstants.INSTANCE_PREFIX_COLON + VALUE_EL, attributesImpl);

        // usermarker
        if (this.value.getUsermarker() != null) {
            attributesImpl = new AttributesImpl();
            attributesImpl.addAttribute("","lng","lng","CDATA",this.value.getUsermarker().getLng()+"");
            attributesImpl.addAttribute("","lat","lat","CDATA",this.value.getUsermarker().getLat()+"");
            contentHandler.startElement(FormsConstants.INSTANCE_NS, USERMARKER_EL, FormsConstants.INSTANCE_PREFIX_COLON + USERMARKER_EL, attributesImpl);
            contentHandler.endElement(FormsConstants.INSTANCE_NS, USERMARKER_EL, FormsConstants.INSTANCE_PREFIX_COLON + USERMARKER_EL);
        }
View Full Code Here

        // usermarker
        if (this.value.getUsermarker() != null) {
            attributesImpl = new AttributesImpl();
            attributesImpl.addAttribute("","lng","lng","CDATA",this.value.getUsermarker().getLng()+"");
            attributesImpl.addAttribute("","lat","lat","CDATA",this.value.getUsermarker().getLat()+"");
            contentHandler.startElement(FormsConstants.INSTANCE_NS, USERMARKER_EL, FormsConstants.INSTANCE_PREFIX_COLON + USERMARKER_EL, attributesImpl);
            contentHandler.endElement(FormsConstants.INSTANCE_NS, USERMARKER_EL, FormsConstants.INSTANCE_PREFIX_COLON + USERMARKER_EL);
        }

        // markers
View Full Code Here

        if (markers != null) {
            contentHandler.startElement(FormsConstants.INSTANCE_NS, MARKERS_EL, FormsConstants.INSTANCE_PREFIX_COLON + MARKERS_EL, new AttributesImpl());
            for (Iterator iter = markers.iterator(); iter.hasNext();) {
                GoogleMapMarker marker = (GoogleMapMarker) iter.next();
                attributesImpl = new AttributesImpl();
                attributesImpl.addAttribute("","lng","lng","CDATA",marker.getLng()+"");
                attributesImpl.addAttribute("","lat","lat","CDATA",marker.getLat()+"");
                contentHandler.startElement(FormsConstants.INSTANCE_NS, MARKER_EL, FormsConstants.INSTANCE_PREFIX_COLON + MARKER_EL, attributesImpl);
                contentHandler.startElement(FormsConstants.INSTANCE_NS, MARKER_TEXT_EL, FormsConstants.INSTANCE_PREFIX_COLON + MARKER_TEXT_EL, new AttributesImpl());
                marker.getText().toSAX(contentHandler);
                contentHandler.endElement(FormsConstants.INSTANCE_NS, MARKER_TEXT_EL, FormsConstants.INSTANCE_PREFIX_COLON + MARKER_TEXT_EL);
View Full Code Here

            contentHandler.startElement(FormsConstants.INSTANCE_NS, MARKERS_EL, FormsConstants.INSTANCE_PREFIX_COLON + MARKERS_EL, new AttributesImpl());
            for (Iterator iter = markers.iterator(); iter.hasNext();) {
                GoogleMapMarker marker = (GoogleMapMarker) iter.next();
                attributesImpl = new AttributesImpl();
                attributesImpl.addAttribute("","lng","lng","CDATA",marker.getLng()+"");
                attributesImpl.addAttribute("","lat","lat","CDATA",marker.getLat()+"");
                contentHandler.startElement(FormsConstants.INSTANCE_NS, MARKER_EL, FormsConstants.INSTANCE_PREFIX_COLON + MARKER_EL, attributesImpl);
                contentHandler.startElement(FormsConstants.INSTANCE_NS, MARKER_TEXT_EL, FormsConstants.INSTANCE_PREFIX_COLON + MARKER_TEXT_EL, new AttributesImpl());
                marker.getText().toSAX(contentHandler);
                contentHandler.endElement(FormsConstants.INSTANCE_NS, MARKER_TEXT_EL, FormsConstants.INSTANCE_PREFIX_COLON + MARKER_TEXT_EL);
                contentHandler.endElement(FormsConstants.INSTANCE_NS, MARKER_EL, FormsConstants.INSTANCE_PREFIX_COLON + MARKER_EL);
View Full Code Here

            for (int i = 0; i < attribs.getLength(); ++i) {
                String value = attribs.getValue(i);

                if (value.indexOf("{#") != -1) {
                    // The attribute contains templates
                    dynamicAttribs.addAttribute(attribs.getURI(i), attribs.getLocalName(i), attribs.getQName(i),
                            attribs.getType(i), value);
                }
                else {
                    // The attribute does not contain templates
                    staticAttribs.addAttribute(attribs.getURI(i), attribs.getLocalName(i), attribs.getQName(i),
View Full Code Here

        // BEGIN JRE
        startGroup("JRE");
        addValue("version", SystemUtils.JAVA_VERSION);
        atts.clear();
        // qName = prefix + ':' + localName
        atts.addAttribute(XLINK_NS, "type", XLINK_PREFIX + ":type", "CDATA", "simple");
        atts.addAttribute(XLINK_NS, "href", XLINK_PREFIX + ":href", "CDATA", SystemUtils.JAVA_VENDOR_URL);
        addValue("java-vendor", SystemUtils.JAVA_VENDOR, atts);
        endGroup();
        // END JRE
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.