888990919293949596
throw new IllegalArgumentException("String is expected, not "+nm); if (!(val instanceof String)) throw new IllegalArgumentException("String is expected, not "+val); _attrs.add(new Object[] { nm, new ExValue((String)val, String.class)}); } } }
4546474849505152
public WidgetAttribute(EvaluatorRef evalr, String name, String value, ConditionImpl cond) { if (name == null || value == null || (evalr == null && cond != null)) throw new IllegalArgumentException(); _evalr = evalr; _name = name; _value = value != null ? new ExValue(value, String.class): null; _cond = cond; }
555657585960616263
if (name == null || name.length() == 0 || value == null) throw new IllegalArgumentException(); _name = name; _evalr = evalr; _value = new ExValue(value, Object.class); _append = append != null ? new ExValue(append, Boolean.class): null; _cond = cond; }
5051525354555657
public WidgetListener(EvaluatorRef evalr, String name, String script, ConditionImpl cond) { if (name == null || script == null || (evalr == null && cond != null)) throw new IllegalArgumentException(); _evalr = evalr; _name = name; _script = script != null ? new ExValue(script, String.class): null; _cond = cond; }
547548549550551552553
* @param contentType the content type. It may coontain EL expressions. * @since 3.0.0 */ public void setContentType(String contentType) { _contentType = contentType != null && contentType.length() > 0 ? new ExValue(contentType, String.class): null; }
568569570571572573574
* @param docType the doc type. It may coontain EL expressions. * @since 3.0.0 */ public void setDocType(String docType) { _docType = docType != null && docType.length() > 0 ? new ExValue(docType, String.class): null; }
590591592593594595596
* <p>Default: null (i.e., nothing generated) * @since 3.0.0 */ public void setFirstLine(String firstLine) { _firstLine = firstLine != null && firstLine.length() > 0 ? new ExValue(firstLine, String.class): null; }
677678679680681682683
return; //nothing to _rootAttrs = new LinkedHashMap(); } if (value == null) _rootAttrs.remove(name); else _rootAttrs.put(name, new ExValue(value, String.class)); }
59606162636465
* @param cond the condition. * Note: If null (not specified), it is considered effective. */ public void setIf(String cond) { _if = cond != null && cond.length() > 0 ? new ExValue(cond, Boolean.class): null; }
68697071727374
* @param cond the condition. * Note: If null (not specified), it is considered ineffective. */ public void setUnless(String cond) { _unless = cond != null && cond.length() > 0 ? new ExValue(cond, Boolean.class): null; }