1 22 package org.jboss.xb.binding; 23 24 import org.xml.sax.ContentHandler ; 25 import org.xml.sax.Locator ; 26 import org.xml.sax.SAXException ; 27 import org.xml.sax.Attributes ; 28 29 35 public class ContentPopulator 36 implements ContentHandler 37 { 38 private Content content = new Content(); 39 40 42 public Content getContent() 43 { 44 return content; 45 } 46 47 49 public void setDocumentLocator(Locator locator) 50 { 51 } 52 53 public void startDocument() 54 throws SAXException 55 { 56 content.startDocument(); 57 } 58 59 public void endDocument() 60 throws SAXException 61 { 62 content.endDocument(); 63 } 64 65 public void startPrefixMapping(String prefix, String uri) 66 throws SAXException 67 { 68 content.startPrefixMapping(prefix, uri); 69 } 70 71 public void endPrefixMapping(String prefix) 72 throws SAXException 73 { 74 content.endPrefixMapping(prefix); 75 } 76 77 public void startElement(String namespaceURI, String localName, String qName, Attributes atts) 78 throws SAXException 79 { 80 content.startElement(namespaceURI, localName, qName, atts); 81 } 82 83 public void endElement(String namespaceURI, String localName, String qName) 84 throws SAXException 85 { 86 content.endElement(namespaceURI, localName, qName); 87 } 88 89 public void characters(char ch[], int start, int length) 90 throws SAXException 91 { 92 content.characters(ch, start, length); 93 } 94 95 public void ignorableWhitespace(char ch[], int start, int length) 96 throws SAXException 97 { 98 } 99 100 public void processingInstruction(String target, String data) 101 throws SAXException 102 { 103 } 104 105 public void skippedEntity(String name) 106 throws SAXException 107 { 108 } 109 } | Popular Tags |