public void setShortTitle(String shortTitle) { this.shortTitle = StringUtility.nullIfEmpty(shortTitle); }
public void setBook(String book) { this.book = nullIfEmpty(book); }
public void setPath(String path) { this.path = nullIfEmpty(path); }
/** * Removes the milliseconds from a time, rounds down every time. */ public static int negIntIfEmpty(String s) { s = StringUtility.nullIfEmpty(s); return (s==null?-1:Integer.parseInt(s)); }
/** * @deprecated Use {@link StringUtility#nullIfEmpty(java.lang.String)} instead */ @Deprecated public static String nullIfEmpty(String value) { return StringUtility.nullIfEmpty(value); }
/** * Removes the milliseconds from a time, rounds down every time. */ public static long negLongIfEmpty(String s) { s = StringUtility.nullIfEmpty(s); return (s==null?-1l:Long.parseLong(s)); }
public void setDescription(String description) { checkNotFrozen(); this.description = nullIfEmpty(description); }
public void setBook(String book) { checkNotFrozen(); this.book = nullIfEmpty(book); }
public void setTargetPage(String targetPage) { checkNotFrozen(); this.targetPage = nullIfEmpty(targetPage); }
public void setElement(String element) { checkNotFrozen(); this.element = nullIfEmpty(element); }
public void setView(String view) { checkNotFrozen(); this.view = nullIfEmpty(view); }
public void setTitle(String title) { checkNotFrozen(); this.title = nullIfEmpty(title); }
public void setLabel(String label) { checkNotFrozen(); this.label = nullIfEmpty(label); }
/** * Resolves all attributes, setting into the created element as appropriate, * This is only called for captureLevel >= META. * Attributes are resolved before the element is added to any parent node. * Typically, deferred expressions will be evaluated here. * Overriding methods must call this implementation. */ protected void evaluateAttributes(E element, ELContext elContext) throws JspTagException, IOException { String idStr = nullIfEmpty(resolveValue(id, String.class, elContext)); if(idStr != null) element.setId(idStr); }
public static interface LinkImplBody<E extends Throwable> { void doBody(boolean discard) throws E, IOException, SkipPageException; }
book = nullIfEmpty(book); NullArgumentException.checkNotNull(path, "path"); if(path.isEmpty()) throw new IllegalArgumentException("path is empty");
final Node currentNode = CurrentNode.getCurrentNode(request); thisBook = nullIfEmpty(thisBook); thisPage = nullIfEmpty(thisPage); linksToBook = nullIfEmpty(linksToBook); linksToPage = nullIfEmpty(linksToPage);