GreeterService.java.vm
../src/main/java/org/apache/tuscany/sca/itest/jaxbdatabinding
org.apache.tuscany.sca.itest.jaxbdatabinding
GreeterServiceImpl.java.vm
../src/main/java/org/apache/tuscany/sca/itest/jaxbdatabinding
org.apache.tuscany.sca.itest.jaxbdatabinding
GreeterServiceClient.java.vm
../src/main/java/org/apache/tuscany/sca/itest/jaxbdatabinding
org.apache.tuscany.sca.itest.jaxbdatabinding
GreeterServiceClientImpl.java.vm
../src/main/java/org/apache/tuscany/sca/itest/jaxbdatabinding
org.apache.tuscany.sca.itest.jaxbdatabinding
DatabindingTestCase.java.vm
../src/test/java/org/apache/tuscany/sca/itest/jaxbdatabinding
org.apache.tuscany.sca.itest.jaxbdatabinding
Greeter.wsdl.vm
classes/wsdl
Person.xsd
xsd
org.apache.tuscany.sca.itest.jaxbdatabinding.generated
ObjectFactory
http://apache.org/tuscany/sca/itest/databinding/types
p
PersonType
ObjectFactory factory = new ObjectFactory();
param = factory.createPersonType();
param.setFirstName("George");
param.setLastName("Doors");
param.setGreeting("Hello");
assertNotSame("greetedPerson.getGreeting() not set", "", result.getGreeting());
Interop.xsd
xsd
org.apache.tuscany.sca.itest.jaxbdatabinding.generated
ObjectFactory
http://www.apache.org/tuscany/interop
i
AttributeComplexType
ObjectFactory factory = new ObjectFactory();
org.apache.tuscany.sca.itest.jaxbdatabinding.generated.AttributeType attrib = factory.createAttributeType();
attrib.setAttribute("SomeText");
param = factory.createAttributeComplexType();
param.setAttributeElement(attrib);
param.getAttributeElement().setAttribute("SomeChangedText");;
assertEquals("data not changed corretly", "SomeChangedText", result.getAttributeElement().getAttribute());
AttributeReferenceComplexType
ObjectFactory factory = new ObjectFactory();
param = factory.createAttributeReferenceComplexType();
param.setReferencedAttribute("SomeText");
param.setReferencedAttribute("SomeChangedText");;
assertEquals("data not changed corretly", "SomeChangedText", result.getReferencedAttribute());
SimpleTypeWithAbstractComplexType
ObjectFactory factory = new ObjectFactory();
param = factory.createSimpleTypeWithAbstractComplexType();
param.setSimpleTypeWithAbstractExtensionElement("SomeText");
param.setSimpleTypeWithAbstractExtensionElement("SomeChangedText");;
assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithAbstractExtensionElement());
SimpleTypeWithNameComplexType
ObjectFactory factory = new ObjectFactory();
param = factory.createSimpleTypeWithNameComplexType();
param.setSimpleTypeWithNameElement("SomeText");
param.setSimpleTypeWithNameElement("SomeChangedText");;
assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithNameElement());
ComplexTypeWithContentType
ObjectFactory factory = new ObjectFactory();
param = factory.createComplexTypeWithContentType();
param.setSimpleTypeWithName("SomeText");
param.setSimpleTypeWithName("SomeChangedText");;
assertEquals("data not changed corretly", "SomeChangedText", result.getSimpleTypeWithName());