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 <query>-related state if (isSqlTag(ns, ln, QUERY)) { queryDepths.pop(); } // update <update>-related state if (isSqlTag(ns, ln, UPDATE)) { updateDepths.pop(); } // update <update>-related state if (isSqlTag(ns, ln, TRANSACTION)) { transactionDepths.pop(); } // update our depth depth--; } }
ln = getLocalPart(qn); fail(Resources.getMessage("TLV_ILLEGAL_BODY", lastElementName)); if (expAtts.contains(attName)) { String vMsg = validateExpression( ln, attName, a.getValue(i)); if (vMsg != null) fail(vMsg); if (qn.startsWith(prefix + ":") && !hasNoInvalidScope(a)) fail(Resources.getMessage("TLV_INVALID_ATTRIBUTE", SCOPE, qn, a.getValue(SCOPE))); if (qn.startsWith(prefix + ":") && hasEmptyVar(a)) fail(Resources.getMessage("TLV_EMPTY_VAR", qn)); if (qn.startsWith(prefix + ":") && hasDanglingScope(a) && !qn.startsWith(prefix + ":" + SETDATASOURCE)) fail(Resources.getMessage("TLV_DANGLING_SCOPE", qn)); if ( (isSqlTag(ns, ln, PARAM) || isSqlTag(ns, ln, DATEPARAM)) && (queryDepths.empty() && updateDepths.empty()) ) { fail(Resources.getMessage("SQL_PARAM_OUTSIDE_PARENT")); if (isSqlTag(ns, ln, QUERY)) { queryDepths.push(Integer.valueOf(depth));
public void characters(char[] ch, int start, int length) { bodyNecessary = false; // body is no longer necessary! // ignore strings that are just whitespace String s = new String(ch, start, length).trim(); if (s.equals("")) return; // check and update body-related constraints if (bodyIllegal) fail(Resources.getMessage("TLV_ILLEGAL_BODY", lastElementName)); }
ln = getLocalPart(qn); fail(Resources.getMessage("TLV_ILLEGAL_BODY", lastElementName)); if (expAtts.contains(attName)) { String vMsg = validateExpression( ln, attName, a.getValue(i)); if (vMsg != null) fail(vMsg); if (qn.startsWith(prefix + ":") && !hasNoInvalidScope(a)) fail(Resources.getMessage("TLV_INVALID_ATTRIBUTE", SCOPE, qn, a.getValue(SCOPE))); if (qn.startsWith(prefix + ":") && hasEmptyVar(a)) fail(Resources.getMessage("TLV_EMPTY_VAR", qn)); if (qn.startsWith(prefix + ":") && hasDanglingScope(a) && !qn.startsWith(prefix + ":" + SETDATASOURCE)) fail(Resources.getMessage("TLV_DANGLING_SCOPE", qn)); if ( (isSqlTag(ns, ln, PARAM) || isSqlTag(ns, ln, DATEPARAM)) && (queryDepths.empty() && updateDepths.empty()) ) { fail(Resources.getMessage("SQL_PARAM_OUTSIDE_PARENT")); if (isSqlTag(ns, ln, QUERY)) { queryDepths.push(Integer.valueOf(depth));
public void characters(char[] ch, int start, int length) { bodyNecessary = false; // body is no longer necessary! // ignore strings that are just whitespace String s = new String(ch, start, length).trim(); if (s.equals("")) return; // check and update body-related constraints if (bodyIllegal) fail(Resources.getMessage("TLV_ILLEGAL_BODY", lastElementName)); }
ln = getLocalPart(qn); fail(Resources.getMessage("TLV_ILLEGAL_BODY", lastElementName)); if (expAtts.contains(attName)) { String vMsg = validateExpression( ln, attName, a.getValue(i)); if (vMsg != null) fail(vMsg); if (qn.startsWith(prefix + ":") && !hasNoInvalidScope(a)) fail(Resources.getMessage("TLV_INVALID_ATTRIBUTE", SCOPE, qn, a.getValue(SCOPE))); if (qn.startsWith(prefix + ":") && hasEmptyVar(a)) fail(Resources.getMessage("TLV_EMPTY_VAR", qn)); if (qn.startsWith(prefix + ":") && hasDanglingScope(a) && !qn.startsWith(prefix + ":" + SETDATASOURCE)) fail(Resources.getMessage("TLV_DANGLING_SCOPE", qn)); if ( (isSqlTag(ns, ln, PARAM) || isSqlTag(ns, ln, DATEPARAM)) && (queryDepths.empty() && updateDepths.empty()) ) { fail(Resources.getMessage("SQL_PARAM_OUTSIDE_PARENT")); if (isSqlTag(ns, ln, QUERY)) { queryDepths.push(Integer.valueOf(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 <query>-related state if (isSqlTag(ns, ln, QUERY)) { queryDepths.pop(); } // update <update>-related state if (isSqlTag(ns, ln, UPDATE)) { updateDepths.pop(); } // update <update>-related state if (isSqlTag(ns, ln, TRANSACTION)) { transactionDepths.pop(); } // update our depth depth--; } }
public void characters(char[] ch, int start, int length) { bodyNecessary = false; // body is no longer necessary! // ignore strings that are just whitespace String s = new String(ch, start, length).trim(); if (s.equals("")) return; // check and update body-related constraints if (bodyIllegal) fail(Resources.getMessage("TLV_ILLEGAL_BODY", lastElementName)); }
ln = getLocalPart(qn); fail(Resources.getMessage("TLV_ILLEGAL_BODY", lastElementName)); if (expAtts.contains(attName)) { String vMsg = validateExpression( ln, attName, a.getValue(i)); if (vMsg != null) fail(vMsg); if (qn.startsWith(prefix + ":") && !hasNoInvalidScope(a)) fail(Resources.getMessage("TLV_INVALID_ATTRIBUTE", SCOPE, qn, a.getValue(SCOPE))); if (qn.startsWith(prefix + ":") && hasEmptyVar(a)) fail(Resources.getMessage("TLV_EMPTY_VAR", qn)); if (qn.startsWith(prefix + ":") && hasDanglingScope(a) && !qn.startsWith(prefix + ":" + SETDATASOURCE)) fail(Resources.getMessage("TLV_DANGLING_SCOPE", qn)); if ( (isSqlTag(ns, ln, PARAM) || isSqlTag(ns, ln, DATEPARAM)) && (queryDepths.empty() && updateDepths.empty()) ) { fail(Resources.getMessage("SQL_PARAM_OUTSIDE_PARENT")); if (isSqlTag(ns, ln, QUERY)) { queryDepths.push(new Integer(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 <query>-related state if (isSqlTag(ns, ln, QUERY)) { queryDepths.pop(); } // update <update>-related state if (isSqlTag(ns, ln, UPDATE)) { updateDepths.pop(); } // update <update>-related state if (isSqlTag(ns, ln, TRANSACTION)) { transactionDepths.pop(); } // update our depth depth--; } }
public void characters(char[] ch, int start, int length) { bodyNecessary = false; // body is no longer necessary! // ignore strings that are just whitespace String s = new String(ch, start, length).trim(); if (s.equals("")) return; // check and update body-related constraints if (bodyIllegal) fail(Resources.getMessage("TLV_ILLEGAL_BODY", lastElementName)); }
ln = getLocalPart(qn); fail(Resources.getMessage("TLV_ILLEGAL_BODY", lastElementName)); if (expAtts.contains(attName)) { String vMsg = validateExpression( ln, attName, a.getValue(i)); if (vMsg != null) fail(vMsg); if (qn.startsWith(prefix + ":") && !hasNoInvalidScope(a)) fail(Resources.getMessage("TLV_INVALID_ATTRIBUTE", SCOPE, qn, a.getValue(SCOPE))); if (qn.startsWith(prefix + ":") && hasEmptyVar(a)) fail(Resources.getMessage("TLV_EMPTY_VAR", qn)); if (qn.startsWith(prefix + ":") && hasDanglingScope(a) && !qn.startsWith(prefix + ":" + SETDATASOURCE)) fail(Resources.getMessage("TLV_DANGLING_SCOPE", qn)); if ( (isSqlTag(ns, ln, PARAM) || isSqlTag(ns, ln, DATEPARAM)) && (queryDepths.empty() && updateDepths.empty()) ) { fail(Resources.getMessage("SQL_PARAM_OUTSIDE_PARENT")); if (isSqlTag(ns, ln, QUERY)) { queryDepths.push(new Integer(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 <query>-related state if (isSqlTag(ns, ln, QUERY)) { queryDepths.pop(); } // update <update>-related state if (isSqlTag(ns, ln, UPDATE)) { updateDepths.pop(); } // update <update>-related state if (isSqlTag(ns, ln, TRANSACTION)) { transactionDepths.pop(); } // update our depth depth--; } }
public void characters(char[] ch, int start, int length) { bodyNecessary = false; // body is no longer necessary! // ignore strings that are just whitespace String s = new String(ch, start, length).trim(); if (s.equals("")) return; // check and update body-related constraints if (bodyIllegal) fail(Resources.getMessage("TLV_ILLEGAL_BODY", lastElementName)); }
ln = getLocalPart(qn); fail(Resources.getMessage("TLV_ILLEGAL_BODY", lastElementName)); if (expAtts.contains(attName)) { String vMsg = validateExpression( ln, attName, a.getValue(i)); if (vMsg != null) fail(vMsg); if (qn.startsWith(prefix + ":") && !hasNoInvalidScope(a)) fail(Resources.getMessage("TLV_INVALID_ATTRIBUTE", SCOPE, qn, a.getValue(SCOPE))); if (qn.startsWith(prefix + ":") && hasEmptyVar(a)) fail(Resources.getMessage("TLV_EMPTY_VAR", qn)); if (qn.startsWith(prefix + ":") && hasDanglingScope(a) && !qn.startsWith(prefix + ":" + SETDATASOURCE)) fail(Resources.getMessage("TLV_DANGLING_SCOPE", qn)); if ( (isSqlTag(ns, ln, PARAM) || isSqlTag(ns, ln, DATEPARAM)) && (queryDepths.empty() && updateDepths.empty()) ) { fail(Resources.getMessage("SQL_PARAM_OUTSIDE_PARENT")); if (isSqlTag(ns, ln, QUERY)) { queryDepths.push(Integer.valueOf(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 <query>-related state if (isSqlTag(ns, ln, QUERY)) { queryDepths.pop(); } // update <update>-related state if (isSqlTag(ns, ln, UPDATE)) { updateDepths.pop(); } // update <update>-related state if (isSqlTag(ns, ln, TRANSACTION)) { transactionDepths.pop(); } // update our depth depth--; } }
public void characters(char[] ch, int start, int length) { bodyNecessary = false; // body is no longer necessary! // ignore strings that are just whitespace String s = new String(ch, start, length).trim(); if (s.equals("")) return; // check and update body-related constraints if (bodyIllegal) fail(Resources.getMessage("TLV_ILLEGAL_BODY", lastElementName)); }
ln = getLocalPart(qn); fail(Resources.getMessage("TLV_ILLEGAL_BODY", lastElementName)); if (expAtts.contains(attName)) { String vMsg = validateExpression( ln, attName, a.getValue(i)); if (vMsg != null) { fail(vMsg); if (qn.startsWith(prefix + ":") && !hasNoInvalidScope(a)) { fail(Resources.getMessage("TLV_INVALID_ATTRIBUTE", SCOPE, qn, a.getValue(SCOPE))); if (qn.startsWith(prefix + ":") && hasEmptyVar(a)) { fail(Resources.getMessage("TLV_EMPTY_VAR", qn)); if (qn.startsWith(prefix + ":") && hasDanglingScope(a) && !qn.startsWith(prefix + ":" + SETDATASOURCE)) { fail(Resources.getMessage("TLV_DANGLING_SCOPE", qn)); if ((isSqlTag(ns, ln, PARAM) || isSqlTag(ns, ln, DATEPARAM)) && (queryDepths.empty() && updateDepths.empty())) { fail(Resources.getMessage("SQL_PARAM_OUTSIDE_PARENT")); if (isSqlTag(ns, ln, QUERY)) {
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 <query>-related state if (isSqlTag(ns, ln, QUERY)) { queryDepths.pop(); } // update <update>-related state if (isSqlTag(ns, ln, UPDATE)) { updateDepths.pop(); } // update <update>-related state if (isSqlTag(ns, ln, TRANSACTION)) { transactionDepths.pop(); } // update our depth depth--; } }
@Override public void characters(char[] ch, int start, int length) { bodyNecessary = false; // body is no longer necessary! // ignore strings that are just whitespace String s = new String(ch, start, length).trim(); if (s.equals("")) { return; } // check and update body-related constraints if (bodyIllegal) { fail(Resources.getMessage("TLV_ILLEGAL_BODY", lastElementName)); } }