Search in sources :

Example 1 with Person

use of org.eclipse.persistence.testing.oxm.xmlroot.Person in project eclipselink by eclipse-ee4j.

the class MarshalToNodeTestCases method getControlObject.

public Object getControlObject() {
    XMLRoot xmlRoot = new XMLRoot();
    xmlRoot.setLocalName("ROOT-OBJECT");
    xmlRoot.setNamespaceURI("http://www.example.org/");
    xmlRoot.setSchemaType(new QName("test", "person"));
    xmlRoot.setObject(new Person());
    return xmlRoot;
}
Also used : XMLRoot(org.eclipse.persistence.oxm.XMLRoot) QName(javax.xml.namespace.QName) Person(org.eclipse.persistence.testing.oxm.xmlroot.Person)

Example 2 with Person

use of org.eclipse.persistence.testing.oxm.xmlroot.Person in project eclipselink by eclipse-ee4j.

the class XMLRootComplexDifferentPrefixWithDRTestCases method getControlObject.

@Override
public Object getControlObject() {
    Person peep = new Person();
    peep.setName(CONTROL_PERSON_NAME);
    return peep;
}
Also used : Person(org.eclipse.persistence.testing.oxm.xmlroot.Person)

Example 3 with Person

use of org.eclipse.persistence.testing.oxm.xmlroot.Person in project eclipselink by eclipse-ee4j.

the class XMLRootComplexDifferentPrefixWithDRTestCases method getWriteControlObject.

@Override
public Object getWriteControlObject() {
    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;
}
Also used : XMLRoot(org.eclipse.persistence.oxm.XMLRoot) Person(org.eclipse.persistence.testing.oxm.xmlroot.Person)

Example 4 with Person

use of org.eclipse.persistence.testing.oxm.xmlroot.Person in project eclipselink by eclipse-ee4j.

the class XMLRootComplexNoPrefixTestCases method getWriteControlObject.

@Override
public Object getWriteControlObject() {
    Person peep = new Person();
    peep.setName(CONTROL_PERSON_NAME);
    XMLRoot xmlRoot = new XMLRoot();
    xmlRoot.setLocalName(CONTROL_ELEMENT_NAME_NO_PREFIX);
    xmlRoot.setNamespaceURI(CONTROL_NAMESPACE_URI);
    xmlRoot.setObject(peep);
    return xmlRoot;
}
Also used : XMLRoot(org.eclipse.persistence.oxm.XMLRoot) Person(org.eclipse.persistence.testing.oxm.xmlroot.Person)

Example 5 with Person

use of org.eclipse.persistence.testing.oxm.xmlroot.Person in project eclipselink by eclipse-ee4j.

the class XMLRootComplexTestCases method getControlObject.

@Override
protected 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;
}
Also used : XMLRoot(org.eclipse.persistence.oxm.XMLRoot) Person(org.eclipse.persistence.testing.oxm.xmlroot.Person)

Aggregations

Person (org.eclipse.persistence.testing.oxm.xmlroot.Person)17 XMLRoot (org.eclipse.persistence.oxm.XMLRoot)13 QName (javax.xml.namespace.QName)2 JAXBElement (jakarta.xml.bind.JAXBElement)1