Package weblogic.xml.stream.events

Examples of weblogic.xml.stream.events.Name


        {
            TestStore store = new TestStore(org.openuri.mytest.SimpleDocument.type);
            TestStore.Cursor cursor = store.newCursor();

            System.err.println("Got store, filling it in...");
            cursor.addChild(new Name("http://openuri.org/mytest", "simple"));
            cursor.toFirstChild();
            cursor.setAttribute(new Name(null, "note"), "a smallish number");
            cursor.setText("143");
            cursor.toRoot();
            cursor.toFirstChild();
            Simplicity simp = (Simplicity)cursor.obj();
            System.err.println("The value of simplicity: " + simp.intValue());
            System.err.println("And a note: " + simp.getNote());
        }
        else
        {
            TestStore store = new TestStore(org.openuri.mytest.CustomerDocument.type);
            TestStore.Cursor cursor = store.newCursor();
            System.err.println("Got store, filling it in...");
            cursor.addChild(new Name("http://openuri.org/mytest", "customer"));
            cursor.toFirstChild();
            cursor.addChild(new Name("http://openuri.org/mytest", "firstname"));
            cursor.addChild(new Name("http://openuri.org/mytest", "number"));
            cursor.addChild(new Name("http://openuri.org/mytest", "number"));
            cursor.addChild(new Name("http://openuri.org/mytest", "birthday"));
            cursor.addChild(new Name("http://openuri.org/mytest", "number"));
            cursor.addChild(new Name("http://openuri.org/mytest", "number"));
            cursor.addChild(new Name("http://openuri.org/mytest", "birthday"));
            cursor.toFirstChild();
            cursor.setText("Howdy");
            cursor.toNext();
            cursor.setText("436");
            cursor.toNext();
View Full Code Here

TOP

Related Classes of weblogic.xml.stream.events.Name

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.