/** * Decides whether the map contains a specified property. * * The method returns true even if the property value is null. * * @param propName the property name * @return <code>true</code> if and only if the map contains the property */ public boolean containsProperty(String propName) { return hasOwnProperty(propName) || base != null && base.containsProperty(propName); }
public String getStringParameterOrDefault(JRExporterParameter parameter, String property) { String value; JRPropertiesMap hintsMap = jasperPrint.getPropertiesMap(); if (hintsMap != null && hintsMap.containsProperty(property)) { value = hintsMap.getProperty(property); } else { value = (String) parameters.get(parameter); } if (value == null) { value = JRProperties.getProperty(property); } return value; }
public String getStringParameter(JRExporterParameter parameter, String property) { String value; JRPropertiesMap hintsMap = jasperPrint.getPropertiesMap(); if (hintsMap != null && hintsMap.containsProperty(property)) { value = hintsMap.getProperty(property); } else { value = (String) parameters.get(parameter); if (value == null) { value = JRProperties.getProperty(property); } } return value; }
public Character getCharacterParameter(JRExporterParameter parameter, String property) { Character value; JRPropertiesMap hintsMap = jasperPrint.getPropertiesMap(); if (hintsMap != null && hintsMap.containsProperty(property)) { String prop = hintsMap.getProperty(property); value = JRProperties.asCharacter(prop); } else { value = (Character) parameters.get(parameter); if (value == null) { value = JRProperties.getCharacterProperty(property); } } return value; }
public boolean getBooleanParameter(JRExporterParameter parameter, String property, boolean defaultValue) { boolean value; JRPropertiesMap hintsMap = jasperPrint.getPropertiesMap(); if (hintsMap != null && hintsMap.containsProperty(property)) { String prop = hintsMap.getProperty(property); if (prop == null) { value = JRProperties.getBooleanProperty(property); } else { value = JRProperties.asBoolean(prop); } } else { Boolean param = (Boolean) parameters.get(parameter); if (param == null) { value = JRProperties.getBooleanProperty(property); } else { value = param.booleanValue(); } } return value; }
if (hintsMap != null && hintsMap.containsProperty(property))
stringParm.setDisplayName(reportParm.getName()); if (reportParm.getPropertiesMap().containsProperty(STRING_INPUT_TYPE)) { stringParm.setInputType(reportParm.getPropertiesMap().getProperty(STRING_INPUT_TYPE));
stringParm.setDisplayName(reportParm.getName()); if (reportParm.getPropertiesMap().containsProperty(STRING_INPUT_TYPE)) { stringParm.setInputType(reportParm.getPropertiesMap().getProperty(STRING_INPUT_TYPE));