/** * Return the default value of the specified additional domain * * @param domainName * @throws IOException */ public String getDefaultValue(String domainName) throws IOException { if (additionalDimensions != null && !additionalDimensions.isEmpty() && additionalDimensions.containsKey(domainName)) { return accessor.getCustomDomainDefaultValue(domainName); } return null; }
/** * Set default custom dimensions * * @param customDomains * @param dimensionSubset * @throws IOException */ private void setDefaultCustomDimensions( List<String> customDomains, Map<String, List<Object>> dimensionSubset) throws IOException { // Scan available custom dimensions for (String customDomain : customDomains) { if (!dimensionSubset.containsKey(customDomain)) { List<Object> dimensionValue = new ArrayList<Object>(); // set default of the proper datatype (in case of known Domain datatype) String defaultValue = accessor.getCustomDomainDefaultValue(customDomain); String dataType = reader.getMetadataValue(customDomain + "_DOMAIN_DATATYPE"); if (dataType != null) { PARSER.setValues(defaultValue, dimensionValue, dataType); } else { dimensionValue.add(defaultValue); } dimensionSubset.put(customDomain, dimensionValue); } } } }