/** * Makes sure that there is only one entry, sets an error message if * not. */ @Override public void verifySettings() { int cnt = selectorCount(); if (cnt < 0 || cnt > 1) { setError("Only one selector is allowed within the <selector> tag"); } }
/** * Gives the count of the number of selectors in this container * @return the number of selectors in this container */ @Override public int selectorCount() { if (isReference()) { return getRef().selectorCount(); } return super.selectorCount(); }