use of org.eclipse.persistence.jaxb.TypeMappingInfo in project eclipselink by eclipse-ee4j.
the class ConflictingMapsTestCases method getTypeMappingInfos.
protected TypeMappingInfo[] getTypeMappingInfos() throws Exception {
if (typeMappingInfos == null) {
typeMappingInfos = new TypeMappingInfo[7];
TypeMappingInfo tmi = new TypeMappingInfo();
tmi.setXmlTagName(new QName("", "testTagName1"));
tmi.setElementScope(ElementScope.Global);
tmi.setType(getClass().getField("testField1").getGenericType());
typeMappingInfos[0] = tmi;
TypeMappingInfo tmi2 = new TypeMappingInfo();
tmi2.setXmlTagName(new QName("", "testTagName2"));
tmi2.setElementScope(ElementScope.Global);
tmi2.setType(getClass().getField("testField2").getGenericType());
typeMappingInfos[1] = tmi2;
TypeMappingInfo tmi3 = new TypeMappingInfo();
tmi3.setXmlTagName(new QName("", "testTagName3"));
tmi3.setElementScope(ElementScope.Global);
tmi3.setType(getClass().getField("testField3").getGenericType());
typeMappingInfos[2] = tmi3;
TypeMappingInfo tmi4 = new TypeMappingInfo();
tmi4.setXmlTagName(new QName("", "testTagName4"));
tmi4.setElementScope(ElementScope.Global);
tmi4.setType(getClass().getField("testField4").getGenericType());
typeMappingInfos[3] = tmi4;
TypeMappingInfo tmi5 = new TypeMappingInfo();
tmi5.setXmlTagName(new QName("", "testTagName5"));
tmi5.setElementScope(ElementScope.Global);
tmi5.setType(getClass().getField("testField4").getGenericType());
typeMappingInfos[4] = tmi5;
TypeMappingInfo tmi6 = new TypeMappingInfo();
tmi6.setXmlTagName(new QName("", "testTagName6"));
tmi6.setElementScope(ElementScope.Global);
tmi6.setType(Map.class);
typeMappingInfos[5] = tmi6;
TypeMappingInfo tmi7 = new TypeMappingInfo();
tmi7.setXmlTagName(new QName("", "testTagName7"));
tmi7.setElementScope(ElementScope.Global);
tmi7.setType(HashMap.class);
typeMappingInfos[6] = tmi7;
}
return typeMappingInfos;
}
use of org.eclipse.persistence.jaxb.TypeMappingInfo in project eclipselink by eclipse-ee4j.
the class NonConflictingListClassAndTypeTestCases method getTypeMappingInfos.
protected TypeMappingInfo[] getTypeMappingInfos() throws Exception {
if (typeMappingInfos == null) {
typeMappingInfos = new TypeMappingInfo[2];
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(List.class);
typeMappingInfos[1] = tmi2;
}
return typeMappingInfos;
}
use of org.eclipse.persistence.jaxb.TypeMappingInfo in project eclipselink by eclipse-ee4j.
the class StringAndListOfStringConflictTestCases method getTypeMappingInfos.
protected TypeMappingInfo[] getTypeMappingInfos() throws Exception {
if (typeMappingInfos == null) {
typeMappingInfos = new TypeMappingInfo[2];
TypeMappingInfo tmi = new TypeMappingInfo();
tmi.setXmlTagName(new QName("", "testTagName1"));
tmi.setElementScope(ElementScope.Global);
tmi.setType(List.class);
tmi.setAnnotations(getClass().getField("testField").getAnnotations());
typeMappingInfos[0] = tmi;
TypeMappingInfo tmi2 = new TypeMappingInfo();
tmi2.setXmlTagName(new QName("", "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 RootLevelByteArrayEmptyContentAttachmentTestCases method getTypeMappingInfos.
protected TypeMappingInfo[] getTypeMappingInfos() throws Exception {
if (typeMappingInfos == null) {
typeMappingInfos = new TypeMappingInfo[1];
TypeMappingInfo tpi = new TypeMappingInfo();
tpi.setXmlTagName(new QName("someUri", "testTagname"));
tpi.setElementScope(ElementScope.Global);
tpi.setType(byte[].class);
typeMappingInfos[0] = tpi;
}
return typeMappingInfos;
}
Aggregations