private String value(final BwString val) { if (val == null) { return null; } return val.getValue(); }
/** * @return String */ @NoDump public String getWordVal() { final BwString s = getWord(); if (s == null) { return null; } return s.getValue(); }
/** * @return String */ @NoDump public String getDescriptionVal() { final BwString s = getDescription(); if (s == null) { return null; } return s.getValue(); }
@Override @NoDump public String getDisplayName() { BwString s = findDisplayName(null); if (s == null) { return null; } return s.getValue(); }
@Override @NoDump public String getCollateValue() { return getCn().getValue(); }
@Override @NoDump public String getCollateValue() { return getWord().getValue(); }
@Override @NoDump public String getDescription() { BwString s = findDescription(null); if (s == null) { return null; } return s.getValue(); }
@Override public Object clone() { return new BwString(getLang(), getValue()); } }
/** Get the secondary address of the location as a string * * @return the secondary address of the location */ @JsonIgnore @NoDump public String getSubaddressField() { if (getSubaddress() == null) { return null; } return getSubaddress().getValue(); }
/** * @return String rfc value */ public String strVal() { StringBuilder sb = new StringBuilder(); if (getCode() != null) { sb.append(getCode()); sb.append(";"); } if (getDescription() != null) { sb.append(getDescription().getValue()); sb.append(";"); } if (getData() != null) { sb.append(getData()); sb.append(";"); } return sb.toString(); }
@Override @NoProxy @NoDump public String getSummary() { BwString s = findSummary(null); if (s == null) { return null; } return s.getValue(); }
@Override @NoProxy @NoDump public String getSummary() { BwString s = findSummary(null); if (s == null) { return null; } return s.getValue(); }
@Override public void updateDisplayNames(final String lang, final String val) { BwString s = findDisplayName(lang); if (val == null) { // Removing if (s!= null) { removeDisplayName(s); } } else if (s == null) { addDisplayName(lang, val); } else if ((CalFacadeUtil.cmpObjval(val, s.getValue()) != 0)) { // XXX Cannot change value in case this is an override collection. //s.setValue(val); removeDisplayName(s); addDisplayName(lang, val); } }
@Override public void updateDescriptions(final String lang, final String val) { BwString s = findDescription(lang); if (val == null) { // Removing if (s!= null) { removeDescription(s); } } else if (s == null) { addDescription(lang, val); } else if ((CalFacadeUtil.cmpObjval(val, s.getValue()) != 0)) { // XXX Cannot change value in case this is an override collection. //s.setValue(val); removeDescription(s); addDescription(lang, val); } }
@Override public void updateSummaries(final String lang, final String val) { BwString s = findSummary(lang); if (val == null) { // Removing if (s!= null) { removeSummary(s); } } else if (s == null) { addSummary(new BwString(lang, val)); } else if ((CalFacadeUtil.cmpObjval(val, s.getValue()) != 0)) { // XXX Cannot change value in case this is an override collection. //s.setValue(val); removeSummary(s); addSummary(new BwString(lang, val)); } }
@Override @NoProxy public void updateSummaries(final String lang, final String val) { BwString s = findSummary(lang); if (val == null) { // Removing if (s!= null) { removeSummary(s); } } else if (s == null) { addSummary(new BwString(lang, val)); } else if ((CalFacadeUtil.cmpObjval(val, s.getValue()) != 0)) { // XXX Cannot change value in case this is an override Set. //s.setValue(val); removeSummary(s); addSummary(new BwString(lang, val)); } }