public virtual void EndElement(String uri, String local, String raw) { if (token.Length > 0) { String word = token.ToString(); switch (currElement) { case ELEM_CLASSES: { consumer.AddClass(word); break; } case ELEM_EXCEPTIONS: { exception.Add(word); exception = NormalizeException(exception); consumer.AddException(GetExceptionWord(exception), (ArrayList)exception.Clone()); break; } case ELEM_PATTERNS: { consumer.AddPattern(GetPattern(word), GetInterletterValues(word)); break; } case ELEM_HYPHEN: { // nothing to do break; } default: { break; } } if (currElement != ELEM_HYPHEN) { token.Length = 0; } } if (currElement == ELEM_CLASSES) { hasClasses = true; } if (currElement == ELEM_HYPHEN) { currElement = ELEM_EXCEPTIONS; } else { currElement = 0; } }
public void EndElement(String tag) { if (token.Length > 0) { String word = token.ToString(); switch (currElement) { case ELEM_CLASSES: consumer.AddClass(word); break; case ELEM_EXCEPTIONS: exception.Add(word); exception = NormalizeException(exception); consumer.AddException(GetExceptionWord(exception), (ArrayList)exception.Clone()); break; case ELEM_PATTERNS: consumer.AddPattern(GetPattern(word), GetInterletterValues(word)); break; case ELEM_HYPHEN: // nothing to do break; } if (currElement != ELEM_HYPHEN) { token.Length = 0; } } if (currElement == ELEM_HYPHEN) { currElement = ELEM_EXCEPTIONS; } else { currElement = 0; } }
public void EndElement(string tag) { if (Token.Length > 0) { var word = Token.ToString(); switch (CurrElement) { case ELEM_CLASSES: Consumer.AddClass(word); break; case ELEM_EXCEPTIONS: Exception.Add(word); Exception = NormalizeException(Exception); Consumer.AddException(GetExceptionWord(Exception), (ArrayList)Exception.Clone()); break; case ELEM_PATTERNS: Consumer.AddPattern(GetPattern(word), GetInterletterValues(word)); break; case ELEM_HYPHEN: // nothing to do break; } if (CurrElement != ELEM_HYPHEN) { Token.Length = 0; } } if (CurrElement == ELEM_HYPHEN) { CurrElement = ELEM_EXCEPTIONS; } else { CurrElement = 0; } }