Package com.volantis.xml.pipeline.sax.drivers.web.simple

Examples of com.volantis.xml.pipeline.sax.drivers.web.simple.Setter


     * {@link DerivableHTTPMessageEntity} to the builder.
     *
     * @param builder The builder to update.
     */
    protected static void addCommonSetters(SettersBuilder builder) {
        builder.addAttributeSetter(WebDriverElements.FROM.getLocalName(), new Setter() {
            public void setPropertyAsString(Object object, String string) {
                ((DerivableHTTPMessageEntity) object).setFrom(string);
            }
        });

        builder.addCombinedSetter(WebDriverElements.NAME, new Setter() {
            public void setPropertyAsString(Object object, String string) {
                ((DerivableHTTPMessageEntity) object).setName(string);
            }
        });

        builder.addCombinedSetter(WebDriverElements.VALUE, new Setter() {
            public void setPropertyAsString(Object object, String string) {
                ((DerivableHTTPMessageEntity) object).setValue(string);
            }
        });
    }
View Full Code Here


        for (int i = 0; i < length; i += 1) {
            String namespaceURI = attributes.getURI(i);

            if (namespaceURI.equals("")) {
                String localName = attributes.getLocalName(i);
                Setter setter = finder.findAttributeSetter(localName);
                if (setter == null) {
                    forwardError(dynamicProcess,
                            "Invalid attribute '" + localName + "'");
                }

                String value = attributes.getValue(i);
                if (value != null) {
                    setter.setPropertyAsString(entity, value);
                }

            } else {
                // Ignore global attributes.
            }
View Full Code Here

TOP

Related Classes of com.volantis.xml.pipeline.sax.drivers.web.simple.Setter

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.