use of ezvcard.property.SortString in project ez-vcard by mangstadt.
the class VCard method setSortString.
/**
* <p>
* Sets the string that should be used to sort the vCard. This typically set
* to the person's family name (last name).
* </p>
* <p>
* For 4.0 vCards, this information is stored in the
* {@link StructuredName#getSortAs} and/or {@link Organization#getSortAs}
* methods.
* </p>
* <p>
* <b>Property name:</b> {@code SORT-STRING}<br>
* <b>Supported versions:</b> {@code 3.0}
* </p>
* @param sortString the sort string (e.g. "Armour" if the person's last
* name is "d'Armour") or null to remove
* @return the property object that was created
* @see <a href="http://tools.ietf.org/html/rfc2426#page-22">RFC 2426
* p.22</a>
*/
public SortString setSortString(String sortString) {
SortString type = (sortString == null) ? null : new SortString(sortString);
setSortString(type);
return type;
}
Aggregations