public void addSharedStringReference(int index) throws SAXException {
   // Note: paul's test case currently only supports string references
   // in content, so presumably this is supposed to add a string
   // reference to the content?
   try {
     //
     consumer.foundContent();
     // End any existing text node we have
     consumer.flushCharacters();
     // And create a new reference
     output.addContentValue(references.createReference(index));
   } catch (WBSAXException e) {
     throw new ExtendedSAXException(e);
   }
 }
 public WBDOMDissectableDocumentBuilder(
     WBSAXParser realParser,
     DissectionTestSAXConsumer consumer,
     StringReferenceFactory references) {
   this.realParser = realParser;
   this.consumer = consumer;
   this.references = references;
   this.output = consumer.getHandler();
 }
  public void startSpecialElement(ElementType type, NodeAnnotation annotation) throws SAXException {

    consumer.foundContent();
    SpecialOpaqueElementStart opaqueAdaptor = new SpecialOpaqueElementStart(type, annotation);
    try {
      // Note: ASSUMES that special elements always have content.
      // We may live to regret this...
      output.startElement(opaqueAdaptor, true);
      output.startContent();
    } catch (WBSAXException e) {
      throw new ExtendedSAXException(e);
    }
  }
 public void startCommonElement(int index, AnnotatedAttributes attributes) throws SAXException {
   consumer.startCommonElement(index, attributes);
 }
 public void startElement(
     String namespaceURI, String localName, String qName, AnnotatedAttributes attributes)
     throws SAXException {
   consumer.startElement(namespaceURI, localName, qName, attributes);
 }
 public void startPrefixMapping(String s, String s1) throws SAXException {
   consumer.startPrefixMapping(s, s1);
 }
 public void startDocument() throws SAXException {
   consumer.startDocument();
 }
 public void skippedEntity(String s) throws SAXException {
   consumer.skippedEntity(s);
 }
 public void setDocumentLocator(Locator locator) {
   consumer.setDocumentLocator(locator);
 }
 public void processingInstruction(String s, String s1) throws SAXException {
   consumer.processingInstruction(s, s1);
 }
 public void ignorableWhitespace(char[] chars, int i, int i1) throws SAXException {
   consumer.ignorableWhitespace(chars, i, i1);
 }
 public void endPrefixMapping(String s) throws SAXException {
   consumer.endPrefixMapping(s);
 }
 public void endElement(String s, String s1, String s2) throws SAXException {
   consumer.endElement(s, s1, s2);
 }
 public void endDocument() throws SAXException {
   consumer.endDocument();
 }
 public void characters(char[] chars, int i, int i1) throws SAXException {
   consumer.characters(chars, i, i1);
 }