use of org.eclipse.persistence.jaxb.TypeMappingInfo in project eclipselink by eclipse-ee4j.
the class ConflictingStringArrayClassesTestCases method getTypeMappingInfos.
protected TypeMappingInfo[] getTypeMappingInfos() throws Exception {
if (typeMappingInfos == null) {
typeMappingInfos = new TypeMappingInfo[3];
TypeMappingInfo tmi = new TypeMappingInfo();
tmi.setXmlTagName(new QName("http://jaxb.dev.java.net/array", "testTagName1"));
tmi.setElementScope(ElementScope.Global);
tmi.setType(String[].class);
typeMappingInfos[0] = tmi;
TypeMappingInfo tmi2 = new TypeMappingInfo();
tmi2.setXmlTagName(new QName("http://jaxb.dev.java.net/array", "testTagName2"));
tmi2.setElementScope(ElementScope.Global);
tmi2.setType(String[].class);
typeMappingInfos[1] = tmi2;
TypeMappingInfo tmi3 = new TypeMappingInfo();
tmi3.setXmlTagName(new QName("http://jaxb.dev.java.net/array", "testTagName3"));
tmi3.setElementScope(ElementScope.Global);
tmi3.setType(getClass().getField("testField").getGenericType());
typeMappingInfos[2] = tmi3;
}
return typeMappingInfos;
}
use of org.eclipse.persistence.jaxb.TypeMappingInfo in project eclipselink by eclipse-ee4j.
the class ConflictingStringClassTestCases method getTypeMappingInfos.
protected TypeMappingInfo[] getTypeMappingInfos() throws Exception {
if (typeMappingInfos == null) {
typeMappingInfos = new TypeMappingInfo[2];
TypeMappingInfo tmi = new TypeMappingInfo();
tmi.setXmlTagName(new QName("someUri", "testTagName1"));
tmi.setElementScope(ElementScope.Global);
tmi.setType(String.class);
typeMappingInfos[0] = tmi;
TypeMappingInfo tmi2 = new TypeMappingInfo();
tmi2.setXmlTagName(new QName("someUri", "testTagName2"));
tmi2.setElementScope(ElementScope.Global);
tmi2.setType(String.class);
typeMappingInfos[1] = tmi2;
}
return typeMappingInfos;
}
use of org.eclipse.persistence.jaxb.TypeMappingInfo in project eclipselink by eclipse-ee4j.
the class ConflictingByteArrayTestCases method getTypeMappingInfos.
protected TypeMappingInfo[] getTypeMappingInfos() throws Exception {
if (typeMappingInfos == null) {
typeMappingInfos = new TypeMappingInfo[3];
TypeMappingInfo tmi = new TypeMappingInfo();
tmi.setXmlTagName(new QName("someUri", "testTagName1"));
tmi.setElementScope(ElementScope.Global);
tmi.setType(byte[].class);
typeMappingInfos[0] = tmi;
TypeMappingInfo tmi2 = new TypeMappingInfo();
tmi2.setXmlTagName(new QName("someUri", "testTagName2"));
tmi2.setElementScope(ElementScope.Global);
tmi2.setType(byte[].class);
typeMappingInfos[1] = tmi2;
TypeMappingInfo tmi3 = new TypeMappingInfo();
tmi3.setXmlTagName(new QName("someUri", "testTagName2"));
tmi3.setElementScope(ElementScope.Global);
tmi3.setType(getClass().getField("theByteArrayField").getGenericType());
typeMappingInfos[2] = tmi3;
}
return typeMappingInfos;
}
use of org.eclipse.persistence.jaxb.TypeMappingInfo in project eclipselink by eclipse-ee4j.
the class ConflictingClassAndTypeTestCases method getTypeMappingInfos.
protected TypeMappingInfo[] getTypeMappingInfos() throws Exception {
if (typeMappingInfos == null) {
typeMappingInfos = new TypeMappingInfo[2];
TypeMappingInfo tmi = new TypeMappingInfo();
tmi.setXmlTagName(new QName("someUri", "testTagName1"));
tmi.setElementScope(ElementScope.Global);
tmi.setType(Employee.class);
typeMappingInfos[0] = tmi;
TypeMappingInfo tmi2 = new TypeMappingInfo();
tmi2.setXmlTagName(new QName("someUri", "testTagName2"));
tmi2.setElementScope(ElementScope.Global);
tmi2.setType(getClass().getField("testField").getGenericType());
typeMappingInfos[1] = tmi2;
}
return typeMappingInfos;
}
use of org.eclipse.persistence.jaxb.TypeMappingInfo in project eclipselink by eclipse-ee4j.
the class ConflictingListObjectsTypeTestCases method getTypeMappingInfos.
protected TypeMappingInfo[] getTypeMappingInfos() throws Exception {
if (typeMappingInfos == null) {
typeMappingInfos = new TypeMappingInfo[3];
TypeMappingInfo tmi = new TypeMappingInfo();
tmi.setXmlTagName(new QName("", "testTagName1"));
tmi.setElementScope(ElementScope.Global);
tmi.setType(getClass().getField("testField").getGenericType());
typeMappingInfos[0] = tmi;
TypeMappingInfo tmi2 = new TypeMappingInfo();
tmi2.setXmlTagName(new QName("", "testTagName2"));
tmi2.setElementScope(ElementScope.Global);
tmi2.setType(getClass().getField("testField").getGenericType());
typeMappingInfos[1] = tmi2;
TypeMappingInfo tmi3 = new TypeMappingInfo();
tmi3.setElementScope(ElementScope.Global);
tmi3.setType(Employee.class);
typeMappingInfos[2] = tmi3;
}
return typeMappingInfos;
}
Aggregations