protected TypeMappingInfo[] getTypeMappingInfos() throws Exception { if (typeMappingInfos == null) { typeMappingInfos = new TypeMappingInfo[1]; TypeMappingInfo tmi = new TypeMappingInfo(); tmi.setXmlTagName(new QName("someUri", "testTagName")); tmi.setElementScope(ElementScope.Global); tmi.setNillable(true); tmi.setType(Employee.class); typeMappingInfos[0] = tmi; } return typeMappingInfos; }
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; }