private boolean isElementInQueue(DescendableLinkedList<Element> queue, Element element) { Iterator<Element> it = queue.descendingIterator(); while (it.hasNext()) { Element next = it.next(); if (next == element) { return true; } } return false; }
protected void initialiseParse(String input, String baseUri, ParseErrorList errors) { Validate.notNull(input, "String input must not be null"); Validate.notNull(baseUri, "BaseURI must not be null"); doc = new Document(baseUri); reader = new CharacterReader(input); this.errors = errors; tokeniser = new Tokeniser(reader, errors); stack = new DescendableLinkedList<Element>(); this.baseUri = baseUri; }
private void initialiseParse(String input, String baseUri) { doc = new Document(baseUri); reader = new CharacterReader(input); tokeniser = new Tokeniser(reader); stack = new DescendableLinkedList<Element>(); this.baseUri = baseUri; }
DescendableLinkedList<Element> getStack() { return stack; }