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)); if (!urlTags.empty() && urlTags.peek().equals(IMPORT_WITHOUT_READER)) { // we're in an <import> without a Reader; nothing but // <param> is allowed fail(Resources.getMessage("TLV_ILLEGAL_BODY", prefix + ":" + IMPORT)); } // make sure <choose> has no non-whitespace text if (chooseChild()) { String msg = Resources.getMessage("TLV_ILLEGAL_TEXT_BODY", prefix, CHOOSE, (s.length() < 7 ? s : s.substring(0,7))); fail(msg); } }
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)); if (!urlTags.empty() && urlTags.peek().equals(IMPORT_WITHOUT_READER)) { // we're in an <import> without a Reader; nothing but // <param> is allowed fail(Resources.getMessage("TLV_ILLEGAL_BODY", prefix + ":" + IMPORT)); } // make sure <choose> has no non-whitespace text if (chooseChild()) { String msg = Resources.getMessage("TLV_ILLEGAL_TEXT_BODY", prefix, CHOOSE, (s.length() < 7 ? s : s.substring(0,7))); fail(msg); } }
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)); if (!urlTags.empty() && urlTags.peek().equals(IMPORT_WITHOUT_READER)) { // we're in an <import> without a Reader; nothing but // <param> is allowed fail(Resources.getMessage("TLV_ILLEGAL_BODY", prefix + ":" + IMPORT)); } // make sure <choose> has no non-whitespace text if (chooseChild()) { String msg = Resources.getMessage("TLV_ILLEGAL_TEXT_BODY", prefix, CHOOSE, (s.length() < 7 ? s : s.substring(0,7))); fail(msg); } }
@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)); } if (!urlTags.empty() && urlTags.peek().equals(IMPORT_WITHOUT_READER)) { // we're in an <import> without a Reader; nothing but // <param> is allowed fail(Resources.getMessage("TLV_ILLEGAL_BODY", prefix + ":" + IMPORT)); } // make sure <choose> has no non-whitespace text if (chooseChild()) { String msg = Resources.getMessage("TLV_ILLEGAL_TEXT_BODY", prefix, CHOOSE, (s.length() < 7 ? s : s.substring(0, 7))); fail(msg); } }
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)); if (!urlTags.empty() && urlTags.peek().equals(IMPORT_WITHOUT_READER)) { // we're in an <import> without a Reader; nothing but // <param> is allowed fail(Resources.getMessage("TLV_ILLEGAL_BODY", prefix + ":" + IMPORT)); } // make sure <choose> has no non-whitespace text if (chooseChild()) { String msg = Resources.getMessage("TLV_ILLEGAL_TEXT_BODY", prefix, CHOOSE, (s.length() < 7 ? s : s.substring(0,7))); fail(msg); } }
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)); if (!urlTags.empty() && urlTags.peek().equals(IMPORT_WITHOUT_READER)) { // we're in an <import> without a Reader; nothing but // <param> is allowed fail(Resources.getMessage("TLV_ILLEGAL_BODY", prefix + ":" + IMPORT)); } // make sure <choose> has no non-whitespace text if (chooseChild()) { String msg = Resources.getMessage("TLV_ILLEGAL_TEXT_BODY", prefix, CHOOSE, (s.length() < 7 ? s : s.substring(0,7))); fail(msg); } }
@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)); } if (!urlTags.empty() && urlTags.peek().equals(IMPORT_WITHOUT_READER)) { // we're in an <import> without a Reader; nothing but // <param> is allowed fail(Resources.getMessage("TLV_ILLEGAL_BODY", prefix + ":" + IMPORT)); } // make sure <choose> has no non-whitespace text if (chooseChild()) { String msg = Resources.getMessage("TLV_ILLEGAL_TEXT_BODY", prefix, CHOOSE, (s.length() < 7 ? s : s.substring(0, 7))); fail(msg); } }
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)); if (!urlTags.empty() && urlTags.peek().equals(IMPORT_WITHOUT_READER)) { // we're in an <import> without a Reader; nothing but // <param> is allowed fail(Resources.getMessage("TLV_ILLEGAL_BODY", prefix + ":" + IMPORT)); } // make sure <choose> has no non-whitespace text if (chooseChild()) { String msg = Resources.getMessage("TLV_ILLEGAL_TEXT_BODY", prefix, CHOOSE, (s.length() < 7 ? s : s.substring(0,7))); fail(msg); } }