public boolean isLiteral() { return txt.isLiteral(); } }
public boolean isLiteral() { return _txt.isLiteral(); } }
public boolean isLiteral() { return txt.isLiteral(); } }
public boolean isManagedBeanScopeValueExpression() { return (scope != null) && (scopeValueExpression != null || !ELText.isLiteral(scope)); }
public boolean isManagedBeanScopeValueExpression() { return (scope != null) && (scopeValueExpression != null || !ELText.isLiteral(scope)); }
/** * Parses the passed string to determine if it's literal or not * * @param in * input String * @return true if the String is literal (doesn't contain <code>#{..}</code> or <code>${..}</code>) */ public static boolean isLiteral(String in) { //ELText txt = parse(in); //return txt == null || txt.isLiteral(); return isLiteral(null, null, in); }
public boolean isManagedBeanScopeValueExpression() { return (scope != null) && (scopeValueExpression != null || !ELText.isLiteral(scope)); }
public boolean isLiteral() { return txt.isLiteral(); } }
public boolean isLiteral() { return _txt.isLiteral(); } }
public boolean isLiteral() { return _txt.isLiteral(); } }
/** * Parses the passed string to determine if it's literal or not * * @param in * input String * @return true if the String is literal (doesn't contain <code>#{..}</code> or <code>${..}</code>) */ public static boolean isLiteral(String in) { ELText txt = parse(in); return txt == null || txt.isLiteral(); }
/** * Parses the passed string to determine if it's literal or not * * @param in * input String * @return true if the String is literal (doesn't contain <code>#{..}</code> or <code>${..}</code>) */ public static boolean isLiteral(String in) { ELText txt = parse(in); return txt == null || txt.isLiteral(); }
@Override public SwitchCaseBuilder condition(String expression) { if (ELText.isLiteral(expression)) { this._switchCase.setCondition(Boolean.valueOf(expression)); } else { this._switchCase.setCondition(_flowBuilder.createValueExpression(expression)); } return this; }
@Override public ReturnBuilder fromOutcome(String outcome) { if (ELText.isLiteral(outcome)) { this._returnNode.setFromOutcome(outcome); } else { this._returnNode.setFromOutcome(_flowBuilder.createValueExpression(outcome)); } return this; }
@Override public SwitchCaseBuilder defaultOutcome(String outcome) { if (ELText.isLiteral(outcome)) { this._switchNodeImpl.setDefaultOutcome(outcome); } else { this._switchNodeImpl.setDefaultOutcome(_flowBuilder.createValueExpression(outcome)); } return _lastSwitchCaseBuilderImpl; }
public void writeInstruction(String text) { this.finishStartTag(); ELText el = ELText.parse(text); if (el.isLiteral()) { this.addInstruction(new LiteralXMLInstruction(text)); } else { this.addInstruction(new XMLInstruction(el)); } this.buffer.append(text); }
public void writeInstruction(String text) { this.finishStartTag(); ELText el = ELText.parse(text); if (el.isLiteral()) { this.addInstruction(new LiteralXMLInstruction(text)); } else { this.addInstruction(new XMLInstruction(el)); } this.buffer.append(text); }
public void writeComment(String text) { this.finishStartTag(); ELText el = ELText.parse(text); if (el.isLiteral()) { this.addInstruction(new LiteralCommentInstruction(text)); } else { this.addInstruction(new CommentInstruction(el)); } this.buffer.append("<!--" + text + "-->"); }
public void writeInstruction(String text) { this.finishStartTag(); ELText el = ELText.parse(text); if (el.isLiteral()) { this.addInstruction(new LiteralXMLInstruction(text)); } else { this.addInstruction(new XMLInstruction(el)); } this.buffer.append(text); }
public void writeComment(String text) { this.finishStartTag(); ELText el = ELText.parse(text); if (el.isLiteral()) { this.addInstruction(new LiteralCommentInstruction(text)); } else { this.addInstruction(new CommentInstruction(el)); } this.buffer.append("<!--" + text + "-->"); }