use of org.eclipse.persistence.jaxb.TypeMappingInfo in project eclipselink by eclipse-ee4j.
the class ClassLoaderTestCases method getTypeMappingInfos.
protected TypeMappingInfo[] getTypeMappingInfos() throws Exception {
if (typeMappingInfos == null) {
typeMappingInfos = new TypeMappingInfo[1];
TypeMappingInfo tpi = new TypeMappingInfo();
tpi.setXmlTagName(new QName("", "testTagname"));
tpi.setElementScope(ElementScope.Global);
tpi.setType(Employee.class);
typeMappingInfos[0] = tpi;
}
return typeMappingInfos;
}
use of org.eclipse.persistence.jaxb.TypeMappingInfo in project eclipselink by eclipse-ee4j.
the class ConflictingListClassAndTypeTestCases 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(List.class);
typeMappingInfos[1] = tmi2;
TypeMappingInfo tmi3 = new TypeMappingInfo();
tmi3.setElementScope(ElementScope.Global);
tmi3.setType(Employee.class);
typeMappingInfos[2] = tmi3;
}
return typeMappingInfos;
}
use of org.eclipse.persistence.jaxb.TypeMappingInfo in project eclipselink by eclipse-ee4j.
the class ConflictingStringClassAndTypeTestCases 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 ConflictingStringTypeTestCases 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 UrlTestCases method getTypeMappingInfos.
protected TypeMappingInfo[] getTypeMappingInfos() throws Exception {
if (typeMappingInfos == null) {
typeMappingInfos = new TypeMappingInfo[1];
TypeMappingInfo tpi = new TypeMappingInfo();
tpi.setXmlTagName(new QName("", "testTagname"));
tpi.setElementScope(ElementScope.Global);
tpi.setNillable(true);
tpi.setType(URL.class);
typeMappingInfos[0] = tpi;
}
return typeMappingInfos;
}
Aggregations