in SdmxStructureParser/src/main/java/org/sdmxsource/sdmx/structureparser/builder/xmlBeans/v1/AbstractBuilder.java [84:167]
void populateTextFormatType(TextFormatType textFormatType, TextFormatBean textFormat) {
if (textFormat.getMaxLength() != null) {
textFormatType.setLength(textFormat.getMaxLength());
}
if (textFormat.getDecimals() != null) {
textFormatType.setDecimals(textFormat.getDecimals());
}
if (textFormat.getTextType() != null) {
switch (textFormat.getTextType()) {
case BIG_INTEGER:
textFormatType.setTextType(TextTypeType.NUM);
break;
case BOOLEAN:
LoggingUtil.warn(log, "can not map text type BOOLEAN to SDMX version 1.0 schema instance, property ignored ");
break;
case COUNT:
LoggingUtil.warn(log, "can not map text type COUNT to SDMX version 1.0 schema instance, property ignored ");
break;
case DATE:
LoggingUtil.warn(log, "can not map text type DATE to SDMX version 1.0 schema instance, property ignored ");
break;
case DATE_TIME:
LoggingUtil.warn(log, "can not map text type DATE TIME to SDMX version 1.0 schema instance, property ignored ");
break;
case DAY:
LoggingUtil.warn(log, "can not map text type DAY to SDMX version 1.0 schema instance, property ignored ");
break;
case DECIMAL:
textFormatType.setTextType(TextTypeType.NUM);
break;
case DOUBLE:
textFormatType.setTextType(TextTypeType.NUM);
break;
case DURATION:
LoggingUtil.warn(log, "can not map text type DURATION to SDMX version 1.0 schema instance, property ignored ");
break;
case EXCLUSIVE_VALUE_RANGE:
LoggingUtil.warn(log, "can not map text type EXCLUSIVE VALUE RANGE to SDMX version 1.0 schema instance, property ignored ");
break;
case FLOAT:
textFormatType.setTextType(TextTypeType.NUM);
break;
case INCLUSIVE_VALUE_RANGE:
LoggingUtil.warn(log, "can not map text type INCLUSIVE VALUE RANGE to SDMX version 1.0 schema instance, property ignored ");
break;
case INCREMENTAL:
LoggingUtil.warn(log, "can not map text type INCREMENTAL to SDMX version 1.0 schema instance, property ignored ");
break;
case LONG:
textFormatType.setTextType(TextTypeType.NUM);
break;
case MONTH:
LoggingUtil.warn(log, "can not map text type MONTH to SDMX version 1.0 schema instance, property ignored ");
break;
case MONTH_DAY:
LoggingUtil.warn(log, "can not map text type MONTH DAY to SDMX version 1.0 schema instance, property ignored ");
break;
case OBSERVATIONAL_TIME_PERIOD:
LoggingUtil.warn(log, "can not map text type OBSERVATIONAL TIME PERIOD to SDMX version 1.0 schema instance, property ignored ");
break;
case SHORT:
textFormatType.setTextType(TextTypeType.NUM);
break;
case STRING:
textFormatType.setTextType(TextTypeType.ALPHA);
break;
case TIME:
LoggingUtil.warn(log, "can not map text type TIME to SDMX version 1.0 schema instance, property ignored ");
break;
case TIMESPAN:
LoggingUtil.warn(log, "can not map text type TIMESPAN to SDMX version 1.0 schema instance, property ignored ");
break;
case URI:
LoggingUtil.warn(log, "can not map text type URI to SDMX version 1.0 schema instance, property ignored ");
break;
case YEAR:
LoggingUtil.warn(log, "can not map text type YEAR to SDMX version 1.0 schema instance, property ignored ");
break;
case YEAR_MONTH:
LoggingUtil.warn(log, "can not map text type YEAR MONTH to SDMX version 1.0 schema instance, property ignored ");
break;
}
}
}