1: 2: import org.apache.commons.lang.StringUtils; 3: import org.apache.log4j.Logger; 4: ... 5: catch (Exception re) { 6: return StringUtils.EMPTY; 7: } 8: ... 9: String defStr = MessagesManager.getMessages(this.pageContext).get(DEFAULT_NEW_LABEL); 10: return StringUtils.defaultString(this.newLabel, defStr); 11: } 12: ... 13: if (this.getNewLabel() != null) { 14: if (StringUtils.isEmpty(this.getNewLabel())) {
1: import org.apache.commons.lang.ObjectUtils; 2: import org.apache.commons.lang.StringUtils; 3: import org.apache.struts.taglib.html.Constants; 4: ... 5: public String getLabel() { 6: return StringUtils.defaultString(label,this.getDefaultLabelProperty()); 7: } 8: ... 9: public String getValue() { 10: return StringUtils.defaultString(value,this.getDefaultValueProperty()); 11: }
1: import org.apache.commons.lang.ObjectUtils; 2: import org.apache.commons.lang.StringUtils; 3: import org.apache.struts.taglib.html.Constants; 4: ... 5: { 6: String attributeKeyPrepend = layoutProperties.getProperty(attribute + ".key.prepend",StringUtils.EMPTY); 7: ... 8: String attributeKeyAppend = layoutProperties.getProperty(attribute + ".key.append",StringUtils.EMPTY); 9: 10: ... 11: if (value == null) { 12: value = StringUtils.defaultString(this.determineMessage("value",this.getValueKey(),this.getValue(),this.getProperty()));
1: import org.apache.commons.lang.ObjectUtils; 2: import org.apache.commons.lang.StringUtils; 3: import org.apache.struts.taglib.html.Constants; 4: ... 5: try { 6: value = ObjectUtils.defaultIfNull(PropertyUtils.getProperty(bean,this.getProperty()),StringUtils.EMPTY); 7: } 8: ... 9: label = ObjectUtils.defaultIfNull(PropertyUtils.getProperty(bean,this.getLabelProperty()),value); 10: label = ObjectUtils.defaultIfNull(label,StringUtils.EMPTY); 11: } 12: ... 13: protected Iterator getIterator(String name,String property) { 14: String beanName = StringUtils.defaultString(name,Constants.BEAN_KEY);
1: import org.apache.commons.lang.ObjectUtils; 2: import org.apache.commons.lang.StringUtils; 3: import org.apache.struts.taglib.html.Constants; 4: ... 5: for (int i = 0; i < values.length; i++) { 6: valuesElement.addElement("value").setText(StringUtils.defaultString(values[i])); 7: } 8: ... 9: { 10: String attributeKeyPrepend = this.getLayoutProperties().getProperty(attribute + ".key.prepend",StringUtils.EMPTY); 11: String attributeKeyAppend = this.getLayoutProperties().getProperty(attribute + ".key.append",StringUtils.EMPTY); 12: ... 13: public String getValue() { 14: return StringUtils.defaultString(value,this.getDefaultValue());
1: import org.apache.commons.lang.StringEscapeUtils; 2: import org.apache.commons.lang.StringUtils; 3: import org.apache.commons.lang.exception.NestableRuntimeException; 4: ... 5: if (child 6: .getNodeData(StringUtils.defaultString(this.hideInNav, DEFAULT_HIDEINNAV_NODEDATA)) 7: .getBoolean()) { 8: ... 9: 10: String title = child.getNodeData(NODEDATA_NAVIGATIONTITLE).getString(StringUtils.EMPTY); 11: 12: ... 13: if (StringUtils.isEmpty(title)) {