public void endElement(String ns, String ln, String qn) { // consistently, we ignore JSP_TEXT if (qn.equals(JSP_TEXT)) return; // handle body-related invariant if (bodyNecessary) fail(Resources.getMessage("TLV_MISSING_BODY", lastElementName)); bodyIllegal = false; // reset: we've left the tag // update <message>-related state if (isFmtTag(ns, ln, MESSAGE)) { messageDepths.pop(); } // update our depth depth--; } }
public void endElement(String ns, String ln, String qn) { // consistently, we ignore JSP_TEXT if (qn.equals(JSP_TEXT)) return; // handle body-related invariant if (bodyNecessary) fail(Resources.getMessage("TLV_MISSING_BODY", lastElementName)); bodyIllegal = false; // reset: we've left the tag // update <message>-related state if (isFmtTag(ns, ln, MESSAGE)) { messageDepths.pop(); } // update our depth depth--; } }
public void endElement(String ns, String ln, String qn) { // consistently, we ignore JSP_TEXT if (qn.equals(JSP_TEXT)) return; // handle body-related invariant if (bodyNecessary) fail(Resources.getMessage("TLV_MISSING_BODY", lastElementName)); bodyIllegal = false; // reset: we've left the tag // update <message>-related state if (isFmtTag(ns, ln, MESSAGE)) { messageDepths.pop(); } // update our depth depth--; } }
@Override public void endElement(String ns, String ln, String qn) { // consistently, we ignore JSP_TEXT if (qn.equals(JSP_TEXT)) { return; } // handle body-related invariant if (bodyNecessary) { fail(Resources.getMessage("TLV_MISSING_BODY", lastElementName)); } bodyIllegal = false; // reset: we've left the tag // update <message>-related state if (isFmtTag(ns, ln, MESSAGE)) { messageDepths.pop(); } // update our depth depth--; } }
public void endElement(String ns, String ln, String qn) { // consistently, we ignore JSP_TEXT if (qn.equals(JSP_TEXT)) return; // handle body-related invariant if (bodyNecessary) fail(Resources.getMessage("TLV_MISSING_BODY", lastElementName)); bodyIllegal = false; // reset: we've left the tag // update <message>-related state if (isFmtTag(ns, ln, MESSAGE)) { messageDepths.pop(); } // update our depth depth--; } }
public void endElement(String ns, String ln, String qn) { // consistently, we ignore JSP_TEXT if (qn.equals(JSP_TEXT)) return; // handle body-related invariant if (bodyNecessary) fail(Resources.getMessage("TLV_MISSING_BODY", lastElementName)); bodyIllegal = false; // reset: we've left the tag // update <message>-related state if (isFmtTag(ns, ln, MESSAGE)) { messageDepths.pop(); } // update our depth depth--; } }
public void endElement(String ns, String ln, String qn) { // consistently, we ignore JSP_TEXT if (qn.equals(JSP_TEXT)) return; // handle body-related invariant if (bodyNecessary) fail(Resources.getMessage("TLV_MISSING_BODY", lastElementName)); bodyIllegal = false; // reset: we've left the tag // update <message>-related state if (isFmtTag(ns, ln, MESSAGE)) { messageDepths.pop(); } // update our depth depth--; } }
@Override public void endElement(String ns, String ln, String qn) { // consistently, we ignore JSP_TEXT if (qn.equals(JSP_TEXT)) { return; } // handle body-related invariant if (bodyNecessary) { fail(Resources.getMessage("TLV_MISSING_BODY", lastElementName)); } bodyIllegal = false; // reset: we've left the tag // update <message>-related state if (isFmtTag(ns, ln, MESSAGE)) { messageDepths.pop(); } // update our depth depth--; } }
fail(Resources.getMessage("TLV_EMPTY_VAR", qn)); if (qn.startsWith(prefix + ":") && !isFmtTag(ns, ln, SETLOCALE) && !isFmtTag(ns, ln, SETBUNDLE) && !isFmtTag(ns, ln, SETTIMEZONE) && hasDanglingScope(a)) fail(Resources.getMessage("TLV_DANGLING_SCOPE", qn)); if (isFmtTag(ns, ln, MESSAGE_PARAM) && messageDepths.empty()) { fail(Resources.getMessage("PARAM_OUTSIDE_MESSAGE")); if (isFmtTag(ns, ln, MESSAGE)) { messageDepths.push(Integer.valueOf(depth)); if (isFmtTag(ns, ln, MESSAGE_PARAM) || isFmtTag(ns, ln, FORMAT_NUMBER) || isFmtTag(ns, ln, PARSE_NUMBER) || isFmtTag(ns, ln, PARSE_DATE)) { if (hasAttribute(a, VALUE)) bodyIllegal = true; else bodyNecessary = true; } else if (isFmtTag(ns, ln, MESSAGE) && !hasAttribute(a, MESSAGE_KEY)) { bodyNecessary = true; } else if (isFmtTag(ns, ln, BUNDLE) && hasAttribute(a, BUNDLE_PREFIX)) { bodyNecessary = true;
fail(Resources.getMessage("TLV_EMPTY_VAR", qn)); if (qn.startsWith(prefix + ":") && !isFmtTag(ns, ln, SETLOCALE) && !isFmtTag(ns, ln, SETBUNDLE) && !isFmtTag(ns, ln, SETTIMEZONE) && hasDanglingScope(a)) fail(Resources.getMessage("TLV_DANGLING_SCOPE", qn)); if (isFmtTag(ns, ln, MESSAGE_PARAM) && messageDepths.empty()) { fail(Resources.getMessage("PARAM_OUTSIDE_MESSAGE")); if (isFmtTag(ns, ln, MESSAGE)) { messageDepths.push(new Integer(depth)); if (isFmtTag(ns, ln, MESSAGE_PARAM) || isFmtTag(ns, ln, FORMAT_NUMBER) || isFmtTag(ns, ln, PARSE_NUMBER) || isFmtTag(ns, ln, PARSE_DATE)) { if (hasAttribute(a, VALUE)) bodyIllegal = true; else bodyNecessary = true; } else if (isFmtTag(ns, ln, MESSAGE) && !hasAttribute(a, MESSAGE_KEY)) { bodyNecessary = true; } else if (isFmtTag(ns, ln, BUNDLE) && hasAttribute(a, BUNDLE_PREFIX)) { bodyNecessary = true;
fail(Resources.getMessage("TLV_EMPTY_VAR", qn)); if (qn.startsWith(prefix + ":") && !isFmtTag(ns, ln, SETLOCALE) && !isFmtTag(ns, ln, SETBUNDLE) && !isFmtTag(ns, ln, SETTIMEZONE) && hasDanglingScope(a)) fail(Resources.getMessage("TLV_DANGLING_SCOPE", qn)); if (isFmtTag(ns, ln, MESSAGE_PARAM) && messageDepths.empty()) { fail(Resources.getMessage("PARAM_OUTSIDE_MESSAGE")); if (isFmtTag(ns, ln, MESSAGE)) { messageDepths.push(Integer.valueOf(depth)); if (isFmtTag(ns, ln, MESSAGE_PARAM) || isFmtTag(ns, ln, FORMAT_NUMBER) || isFmtTag(ns, ln, PARSE_NUMBER) || isFmtTag(ns, ln, PARSE_DATE)) { if (hasAttribute(a, VALUE)) bodyIllegal = true; else bodyNecessary = true; } else if (isFmtTag(ns, ln, MESSAGE) && !hasAttribute(a, MESSAGE_KEY)) { bodyNecessary = true; } else if (isFmtTag(ns, ln, BUNDLE) && hasAttribute(a, BUNDLE_PREFIX)) { bodyNecessary = true;
fail(Resources.getMessage("TLV_EMPTY_VAR", qn)); if (qn.startsWith(prefix + ":") && !isFmtTag(ns, ln, SETLOCALE) && !isFmtTag(ns, ln, SETBUNDLE) && !isFmtTag(ns, ln, SETTIMEZONE) && hasDanglingScope(a)) fail(Resources.getMessage("TLV_DANGLING_SCOPE", qn)); if (isFmtTag(ns, ln, MESSAGE_PARAM) && messageDepths.empty()) { fail(Resources.getMessage("PARAM_OUTSIDE_MESSAGE")); if (isFmtTag(ns, ln, MESSAGE)) { messageDepths.push(new Integer(depth)); if (isFmtTag(ns, ln, MESSAGE_PARAM) || isFmtTag(ns, ln, FORMAT_NUMBER) || isFmtTag(ns, ln, PARSE_NUMBER) || isFmtTag(ns, ln, PARSE_DATE)) { if (hasAttribute(a, VALUE)) bodyIllegal = true; else bodyNecessary = true; } else if (isFmtTag(ns, ln, MESSAGE) && !hasAttribute(a, MESSAGE_KEY)) { bodyNecessary = true; } else if (isFmtTag(ns, ln, BUNDLE) && hasAttribute(a, BUNDLE_PREFIX)) { bodyNecessary = true;
fail(Resources.getMessage("TLV_EMPTY_VAR", qn)); if (qn.startsWith(prefix + ":") && !isFmtTag(ns, ln, SETLOCALE) && !isFmtTag(ns, ln, SETBUNDLE) && !isFmtTag(ns, ln, SETTIMEZONE) && hasDanglingScope(a)) fail(Resources.getMessage("TLV_DANGLING_SCOPE", qn)); if (isFmtTag(ns, ln, MESSAGE_PARAM) && messageDepths.empty()) { fail(Resources.getMessage("PARAM_OUTSIDE_MESSAGE")); if (isFmtTag(ns, ln, MESSAGE)) { messageDepths.push(Integer.valueOf(depth)); if (isFmtTag(ns, ln, MESSAGE_PARAM) || isFmtTag(ns, ln, FORMAT_NUMBER) || isFmtTag(ns, ln, PARSE_NUMBER) || isFmtTag(ns, ln, PARSE_DATE)) { if (hasAttribute(a, VALUE)) bodyIllegal = true; else bodyNecessary = true; } else if (isFmtTag(ns, ln, MESSAGE) && !hasAttribute(a, MESSAGE_KEY)) { bodyNecessary = true; } else if (isFmtTag(ns, ln, BUNDLE) && hasAttribute(a, BUNDLE_PREFIX)) { bodyNecessary = true;
&& !isFmtTag(ns, ln, SETLOCALE) && !isFmtTag(ns, ln, SETBUNDLE) && !isFmtTag(ns, ln, SETTIMEZONE) && hasDanglingScope(a)) { fail(Resources.getMessage("TLV_DANGLING_SCOPE", qn)); if (isFmtTag(ns, ln, MESSAGE_PARAM) && messageDepths.empty()) { fail(Resources.getMessage("PARAM_OUTSIDE_MESSAGE")); if (isFmtTag(ns, ln, MESSAGE)) { messageDepths.push(new Integer(depth)); if (isFmtTag(ns, ln, MESSAGE_PARAM) || isFmtTag(ns, ln, FORMAT_NUMBER) || isFmtTag(ns, ln, PARSE_NUMBER) || isFmtTag(ns, ln, PARSE_DATE)) { if (hasAttribute(a, VALUE)) { bodyIllegal = true; bodyNecessary = true; } else if (isFmtTag(ns, ln, MESSAGE) && !hasAttribute(a, MESSAGE_KEY)) { bodyNecessary = true; } else if (isFmtTag(ns, ln, BUNDLE) && hasAttribute(a, BUNDLE_PREFIX)) { bodyNecessary = true;
fail(Resources.getMessage("TLV_EMPTY_VAR", qn)); if (qn.startsWith(prefix + ":") && !isFmtTag(ns, ln, SETLOCALE) && !isFmtTag(ns, ln, SETBUNDLE) && !isFmtTag(ns, ln, SETTIMEZONE) && hasDanglingScope(a)) fail(Resources.getMessage("TLV_DANGLING_SCOPE", qn)); if (isFmtTag(ns, ln, MESSAGE_PARAM) && messageDepths.empty()) { fail(Resources.getMessage("PARAM_OUTSIDE_MESSAGE")); if (isFmtTag(ns, ln, MESSAGE)) { messageDepths.push(Integer.valueOf(depth)); if (isFmtTag(ns, ln, MESSAGE_PARAM) || isFmtTag(ns, ln, FORMAT_NUMBER) || isFmtTag(ns, ln, PARSE_NUMBER) || isFmtTag(ns, ln, PARSE_DATE)) { if (hasAttribute(a, VALUE)) bodyIllegal = true; else bodyNecessary = true; } else if (isFmtTag(ns, ln, MESSAGE) && !hasAttribute(a, MESSAGE_KEY)) { bodyNecessary = true; } else if (isFmtTag(ns, ln, BUNDLE) && hasAttribute(a, BUNDLE_PREFIX)) { bodyNecessary = true;
&& !isFmtTag(ns, ln, SETLOCALE) && !isFmtTag(ns, ln, SETBUNDLE) && !isFmtTag(ns, ln, SETTIMEZONE) && hasDanglingScope(a)) { fail(Resources.getMessage("TLV_DANGLING_SCOPE", qn)); if (isFmtTag(ns, ln, MESSAGE_PARAM) && messageDepths.empty()) { fail(Resources.getMessage("PARAM_OUTSIDE_MESSAGE")); if (isFmtTag(ns, ln, MESSAGE)) { messageDepths.push(new Integer(depth)); if (isFmtTag(ns, ln, MESSAGE_PARAM) || isFmtTag(ns, ln, FORMAT_NUMBER) || isFmtTag(ns, ln, PARSE_NUMBER) || isFmtTag(ns, ln, PARSE_DATE)) { if (hasAttribute(a, VALUE)) { bodyIllegal = true; bodyNecessary = true; } else if (isFmtTag(ns, ln, MESSAGE) && !hasAttribute(a, MESSAGE_KEY)) { bodyNecessary = true; } else if (isFmtTag(ns, ln, BUNDLE) && hasAttribute(a, BUNDLE_PREFIX)) { bodyNecessary = true;