use of org.eclipse.persistence.oxm.XMLRoot in project eclipselink by eclipse-ee4j.
the class XMLRootComplexNoNamespaceResolverTestCases method getReadControlObject.
@Override
public Object getReadControlObject() {
Person peep = new Person();
peep.setName(CONTROL_PERSON_NAME);
XMLRoot xmlRoot = new XMLRoot();
xmlRoot.setLocalName(NS0_CONTROL_ELEMENT_NAME);
xmlRoot.setNamespaceURI(CONTROL_NAMESPACE_URI);
xmlRoot.setObject(peep);
return xmlRoot;
}
use of org.eclipse.persistence.oxm.XMLRoot in project eclipselink by eclipse-ee4j.
the class XMLRootComplexNoNamespaceResolverTestCases method getWriteControlObject.
@Override
public Object getWriteControlObject() {
Person peep = new Person();
peep.setName(CONTROL_PERSON_NAME);
XMLRoot xmlRoot = new XMLRoot();
xmlRoot.setLocalName(NS0_CONTROL_ELEMENT_NAME_NO_PREFIX);
xmlRoot.setNamespaceURI(CONTROL_NAMESPACE_URI);
xmlRoot.setObject(peep);
return xmlRoot;
}
use of org.eclipse.persistence.oxm.XMLRoot in project eclipselink by eclipse-ee4j.
the class XMLRootComplexNoPrefixTestCases method getReadControlObject.
@Override
public Object getReadControlObject() {
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.oxm.XMLRoot in project eclipselink by eclipse-ee4j.
the class AnyObjectKeepAllAsElementTestCases method getWriteControlObject.
@Override
public Object getWriteControlObject() {
Child child = new Child();
child.setContent(TEXT);
XMLRoot xmlRoot = new XMLRoot();
xmlRoot.setLocalName(CHILD);
xmlRoot.setObject(child);
RootKeepAsElement root = new RootKeepAsElement();
root.setT1(xmlRoot);
return root;
}
use of org.eclipse.persistence.oxm.XMLRoot in project eclipselink by eclipse-ee4j.
the class DefaultNamespaceXMLRootTestCases method getWriteControlObject.
@Override
public Object getWriteControlObject() {
XMLRoot root = new XMLRoot();
root.setLocalName("employee");
root.setNamespaceURI("http://www.example.com/EMPLOYEE");
Employee employee = (Employee) getControlObject();
root.setObject(employee);
return root;
}
Aggregations