public Object getWriteControlObject() {
    Root root = new Root();
    HashMap any = new HashMap();

    root.setAny(any);
    return root;
  }
 public Object getControlObject() {
   Root root = new Root();
   Vector any = new Vector();
   any.addElement("root's text");
   root.setAny(any);
   return root;
 }
 public Object getControlObject() {
   Root root = new Root();
   HashMap any = new HashMap();
   QName name = new QName("http://www.w3.org/2000/xmlns/", "myns");
   any.put(name, "www.example.com/some-dir/some.xsd");
   root.setAny(any);
   //        System.out.println(root);
   return root;
 }
  public Object getControlObject() {
    Root root = new Root();
    HashMap any = new HashMap();
    QName name = new QName("www.example.com/some-dir/some.xsd", "first-name");
    any.put(name, "Matt");

    name = new QName("www.example.com/some-dir/some.xsd", "last-name");
    any.put(name, "MacIvor");
    root.setAny(any);
    return root;
  }
  public Object getControlObject() {
    Root root = new Root();

    XMLRoot xmlroot = new XMLRoot();
    xmlroot.setObject("child's text");
    xmlroot.setLocalName("myns:theXMLRoot");
    xmlroot.setNamespaceURI("www.example.com/some-dir/some.xsd");

    root.setAny(xmlroot);
    return root;
  }
 public Object getControlObject() {
   Root root = new Root();
   Vector any = new Vector();
   Child child = new Child();
   child.setContent("Child1");
   any.addElement(child);
   any.addElement("Root Text!!");
   child = new Child();
   child.setContent("Child2");
   any.addElement(child);
   any.addElement("More Text!!");
   root.setAny(any);
   return root;
 }
  public Object getWriteControlObject() {
    Root root = new Root();
    HashMap any = new HashMap();
    QName name = new QName("www.example.com/some-dir/some.xsd", "first-name");
    any.put(name, "Matt");

    name = new QName("www.example.com/some-dir/some.xsd", "last-name");
    any.put(name, "MacIvor");

    name =
        new QName(
            javax.xml.XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI,
            XMLConstants.NO_NS_SCHEMA_LOCATION);
    any.put(name, "someSchema.xsd");

    root.setAny(any);
    return root;
  }
コード例 #8
0
  public Object getControlObject() {
    Root root = new Root();
    root.setAny("root's text");

    return root;
  }