public void setComponentLead(String componentLead) { if (TextUtils.stringSet(componentLead)) { this.componentLead = componentLead; } else { this.componentLead = null; } }
/** * Creates failure from a given text message, encoding the text message as a whole into html for the html message. * * @param message the failure message in text. */ public Failure(String message) { this(message, TextUtils.htmlEncode(message)); }
/** * Verify that the given string is a valid email address. * "Validity" in this context only means that the address conforms * to the correct syntax (not if the address actually exists). * * @param email The email address to verify. * @return a boolean indicating whether the email address is correctly formatted. */ public final static boolean verifyEmail(String email) { return MailUtils.verifyEmail(email); }
/** * @see #findEntity(javax.ejb.EJBHome, String) */ public final static EJBObject findEntity(EJBHome home, int id) throws RemoteException, FinderException { return findEntity(home, "" + id); }
/** * non-expanded * * @param dateString * @return Timestamp * @throws java.text.ParseException */ public static final Timestamp isoToTimestamp(String dateString) throws ParseException { return isoToTimestamp(dateString, false); }
/** * non-expanded * * @param dateString * @return ISO java.util.Date * @throws ParseException */ public static final Date isoToDate(String dateString) throws ParseException { return isoToDate(dateString, false); }
/** * non-expanded * * @param dateString * @return java.sql.Date * @throws ParseException */ public static final java.sql.Date isoToSQLDate(String dateString) throws ParseException { return isoToSQLDate(dateString, false); }
/** * Encode binary data into String using base64. * * @see #decodeBytes(java.lang.String) */ public final static String encodeBytes(byte[] data) throws IOException { return MailUtils.encodeBytes(data); }
/** * Perform XSL transformation. */ public final static void transform(Reader xml, Reader xsl, Writer result) throws TransformerException { transform(xml, xsl, result, null); }
public void setGroupName(String groupName) { if (TextUtils.stringSet(groupName)) { this.groupName = groupName; } else { this.groupName = null; } }
public String render(final Long id, final String name) { return "<span data-field=\"name\">" + TextUtils.htmlEncode(name) + "</span>"; } };
/** * @see #findEntity(javax.ejb.EJBHome, String) */ public final static EJBObject findEntity(EJBHome home, long id) throws RemoteException, FinderException { return findEntity(home, "" + id); }
/** * Set description to give value. If the value is an empty string, it will be set to null * @param description description to set it to */ public void setDescription(String description) { this.description = TextUtils.stringSet(description) ? description : null; }
public String render(final Long id, final String name) { return "<a id=\"filterlink_" + id + "\" href=\"../issues/?filter=" + id + "\">" + TextUtils.htmlEncode(name) + "</a>"; } };
/** * @see #findEntity(javax.ejb.EJBHome, String) */ public final static EJBObject findEntity(EJBHome home, long id) throws RemoteException, FinderException { return findEntity(home, "" + id); }
public void setFilename(final String filename) { if (TextUtils.stringSet(filename)) { this.filename = filename; } }
private String prepare(String value) { if (escape) { return TextUtils.htmlEncode(value); } else { return value; } } }
/** * Set description to give value. If the value is an empty string, it will be set to null * @param description description to set it to */ public void setDescription(String description) { // dont store empty strings as some databases treat them differently - JRA-12196 this.description = TextUtils.stringSet(description) ? description : null; } }
/** * Escape html entity characters and high characters (eg "curvy" Word quotes). * * Note this method can also be used to encode XML now * * @deprecated use htmlEncode(String) instead. */ public final static String html(String s) { return htmlEncode(s); }
public String render(final Long id, final String name) { return "<span data-filter-field=\"name\">" + TextUtils.htmlEncode(name) + "</span>"; } };