The CamelCaseStyle is used to represent an XML style that can be applied to a serialized object. A style can be used to modify the element and attribute names for the generated document. This styles can be used to generate camel case XML. <ExampleElement> <ChildElement exampleAttribute='example'> <InnerElement>example</InnerElement> </ChildElement> </ExampleElement> Above the camel case XML elements and attributes can be generated from a style implementation. Styles enable the same objects to be serialized in different ways, generating different styles of XML without having to modify the class schema for that object.
Inheritance: Style
Ejemplo n.º 1
0
 public void TestCamelCaseStrategy() {
    Style strategy = new CamelCaseStyle();
    System.err.println(strategy.getElement("Base64Encoder"));
    System.err.println(strategy.getElement("Base64_Encoder"));
    System.err.println(strategy.getElement("Base64___encoder"));
    System.err.println(strategy.getElement("base64--encoder"));
    System.err.println(strategy.getElement("Base64encoder"));
    System.err.println(strategy.getElement("_Base64encoder"));
    System.err.println(strategy.getElement("__Base64encoder"));
    System.err.println(strategy.getElement("URLList"));
    System.err.println(strategy.getElement("__Base64encoder"));
    System.err.println(strategy.getElement("Base_64_Encoder"));
    System.err.println(strategy.getElement("base_64_encoder"));
 }
Ejemplo n.º 2
0
        public void TestCamelCaseStrategy()
        {
            Style strategy = new CamelCaseStyle();

            System.err.println(strategy.getElement("Base64Encoder"));
            System.err.println(strategy.getElement("Base64_Encoder"));
            System.err.println(strategy.getElement("Base64___encoder"));
            System.err.println(strategy.getElement("base64--encoder"));
            System.err.println(strategy.getElement("Base64encoder"));
            System.err.println(strategy.getElement("_Base64encoder"));
            System.err.println(strategy.getElement("__Base64encoder"));
            System.err.println(strategy.getElement("URLList"));
            System.err.println(strategy.getElement("__Base64encoder"));
            System.err.println(strategy.getElement("Base_64_Encoder"));
            System.err.println(strategy.getElement("base_64_encoder"));
        }
Ejemplo n.º 3
0
        public void TestCamelCaseStyle()
        {
            Style strategy = new CamelCaseStyle();

            Console.WriteLine(strategy.GetElement("Base64Encoder"));
            Console.WriteLine(strategy.GetElement("Base64_Encoder"));
            Console.WriteLine(strategy.GetElement("Base64___encoder"));
            Console.WriteLine(strategy.GetElement("base64--encoder"));
            Console.WriteLine(strategy.GetElement("Base64encoder"));
            Console.WriteLine(strategy.GetElement("_Base64encoder"));
            Console.WriteLine(strategy.GetElement("__Base64encoder"));
            Console.WriteLine(strategy.GetElement("URLList"));
            Console.WriteLine(strategy.GetElement("__Base64encoder"));
            Console.WriteLine(strategy.GetElement("Base_64_Encoder"));
            Console.WriteLine(strategy.GetElement("base_64_encoder"));
        }