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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations