use of org.apache.type_test.types3.SgBaseTypeA in project cxf by apache.
the class AbstractTypeTestClient2 method equals.
// org.apache.type_test.types3.ChoiceWithSubstitutionGroupAbstract
protected boolean equals(ChoiceWithSubstitutionGroupAbstract x, ChoiceWithSubstitutionGroupAbstract y) {
if (x.getVarInt() != null && y.getVarInt() != null && x.getVarInt().equals(y.getVarInt())) {
return true;
}
if (!x.getSg03AbstractBaseElementA().isNil() && !y.getSg03AbstractBaseElementA().isNil()) {
SgBaseTypeA xTypeA = x.getSg03AbstractBaseElementA().getValue();
SgBaseTypeA yTypeA = y.getSg03AbstractBaseElementA().getValue();
return equals(xTypeA, yTypeA);
}
return false;
}
use of org.apache.type_test.types3.SgBaseTypeA in project cxf by apache.
the class AbstractTypeTestClient2 method testStructWithSubstitutionGroupNil.
@Test
public void testStructWithSubstitutionGroupNil() throws Exception {
if (!shouldRunTest("StructWithSubstitutionGroupNil")) {
return;
}
StructWithSubstitutionGroupNil x = new StructWithSubstitutionGroupNil();
ObjectFactory objectFactory = new ObjectFactory();
JAXBElement<? extends SgBaseTypeA> element = objectFactory.createSg04NillableBaseElementA(null);
x.setSg04NillableBaseElementA(element);
StructWithSubstitutionGroupNil yOrig = new StructWithSubstitutionGroupNil();
element = objectFactory.createSg04NillableBaseElementA(null);
yOrig.setSg04NillableBaseElementA(element);
Holder<StructWithSubstitutionGroupNil> y = new Holder<StructWithSubstitutionGroupNil>(yOrig);
Holder<StructWithSubstitutionGroupNil> z = new Holder<StructWithSubstitutionGroupNil>();
StructWithSubstitutionGroupNil ret;
if (testDocLiteral) {
ret = docClient.testStructWithSubstitutionGroupNil(x, y, z);
} else if (testXMLBinding) {
ret = xmlClient.testStructWithSubstitutionGroupNil(x, y, z);
} else {
ret = rpcClient.testStructWithSubstitutionGroupNil(x, y, z);
}
if (!perfTestOnly) {
assertTrue("testStructWithSubstitutionGroupNil(): Incorrect value for inout param", equals(x, y.value));
assertTrue("testStructWithSubstitutionGroupNil(): Incorrect value for out param", equals(yOrig, z.value));
assertTrue("testStructWithSubstitutionGroupNil(): Incorrect return value", equals(x, ret));
}
}
use of org.apache.type_test.types3.SgBaseTypeA in project cxf by apache.
the class AbstractTypeTestClient2 method equals.
// org.apache.type_test.types3.StructWithSubstitutionGroupAbstract
protected boolean equals(StructWithSubstitutionGroupAbstract x, StructWithSubstitutionGroupAbstract y) {
if (x.getSg03AbstractBaseElementA() != null && y.getSg03AbstractBaseElementA() != null) {
SgBaseTypeA xTypeA = x.getSg03AbstractBaseElementA().getValue();
SgBaseTypeA yTypeA = y.getSg03AbstractBaseElementA().getValue();
return equals(xTypeA, yTypeA);
}
return false;
}
use of org.apache.type_test.types3.SgBaseTypeA in project cxf by apache.
the class AbstractTypeTestClient2 method equals.
protected boolean equals(ChoiceWithSubstitutionGroup x, ChoiceWithSubstitutionGroup y) {
if (x.getVarInt() != null && y.getVarInt() != null && x.getVarInt().compareTo(y.getVarInt()) == 0) {
return true;
}
if (!x.getSg01BaseElementA().isNil() && !y.getSg01BaseElementA().isNil()) {
SgBaseTypeA xTypeA = x.getSg01BaseElementA().getValue();
SgBaseTypeA yTypeA = y.getSg01BaseElementA().getValue();
return equals(xTypeA, yTypeA);
}
return false;
}
use of org.apache.type_test.types3.SgBaseTypeA in project cxf by apache.
the class AbstractTypeTestClient2 method equals.
// org.apache.type_test.types3.StructWithSubstitutionGroup
protected boolean equals(StructWithSubstitutionGroup x, StructWithSubstitutionGroup y) {
if (!x.getSg01BaseElementA().isNil() && !y.getSg01BaseElementA().isNil()) {
SgBaseTypeA xTypeA = x.getSg01BaseElementA().getValue();
SgBaseTypeA yTypeA = y.getSg01BaseElementA().getValue();
return equals(xTypeA, yTypeA);
}
return false;
}
Aggregations