public JavaQName getRuntimeType(SimpleTypeSG pController) {
return pController.isNullable() ? getObjectRuntimeType(pController) : getPrimitiveRuntimeType(pController);
}
public TypedValue getCastFromString(SimpleTypeSG pController, JavaMethod pMethod, Object pValue, Object pData) throws SAXException {
TypedValue v = super.getCastFromString(pController, pMethod, pValue, pData);
if (pController.isNullable()) {
JavaQName objectType = getObjectRuntimeType(pController);
v = new TypedValueImpl(new Object[]{"new ", objectType, "(", v, ")"},
objectType);
}