Package com.thoughtworks.xstream.io.xml

Examples of com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder


            // expected
        }
    }
   
    public void testWithUnderscore() {
        xstream = new XStream(new XppDriver(new XmlFriendlyNameCoder("_-", "_")));
        String xml = "" +
                "<X_alias>\n" +
                "  <anInt>0</anInt>\n" +
                "</X_alias>";
View Full Code Here



public class XmlFriendlyDollarOnlyTest extends XmlFriendlyTest {

    protected XStream createXStream() {
        return new XStream(new XppDriver(new XmlFriendlyNameCoder("_-", "_")));
    }
View Full Code Here

    private static final JsonXStream s_instance = new JsonXStream();

    public JsonXStream() {
        super(new JettisonMappedXmlDriver() {
            private final NameCoder coder = new XmlFriendlyNameCoder();

            protected NameCoder getNameCoder() {
                return this.coder;
            }
        });
View Full Code Here

TOP

Related Classes of com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder

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.