public Object getControlObject() {
    Person peep = new Person();
    peep.setName(CONTROL_PERSON_NAME);

    return new JAXBElement(
        new QName(CONTROL_NAMESPACE_URI, CONTROL_ELEMENT_NAME), targetClass, peep);
  }
コード例 #2
0
  public Object getControlObject() {
    Person peep = new Person();
    peep.setName(CONTROL_PERSON_NAME);

    XMLRoot xmlRoot = new XMLRoot();
    xmlRoot.setLocalName(CONTROL_ELEMENT_NAME);
    xmlRoot.setNamespaceURI(CONTROL_NAMESPACE_URI);
    xmlRoot.setObject(peep);
    return xmlRoot;
  }