1 7 package org.jboss.xml.binding; 8 9 import org.xml.sax.ContentHandler ; 10 import org.xml.sax.Locator ; 11 import org.xml.sax.SAXException ; 12 import org.xml.sax.Attributes ; 13 14 20 public class ContentPopulator 21 implements ContentHandler 22 { 23 private Content content = new Content(); 24 25 27 public Content getContent() 28 { 29 return content; 30 } 31 32 34 public void setDocumentLocator(Locator locator) 35 { 36 } 37 38 public void startDocument() 39 throws SAXException 40 { 41 content.startDocument(); 42 } 43 44 public void endDocument() 45 throws SAXException 46 { 47 content.endDocument(); 48 } 49 50 public void startPrefixMapping(String prefix, String uri) 51 throws SAXException 52 { 53 content.startPrefixMapping(prefix, uri); 54 } 55 56 public void endPrefixMapping(String prefix) 57 throws SAXException 58 { 59 content.endPrefixMapping(prefix); 60 } 61 62 public void startElement(String namespaceURI, String localName, String qName, Attributes atts) 63 throws SAXException 64 { 65 content.startElement(namespaceURI, localName, qName, atts); 66 } 67 68 public void endElement(String namespaceURI, String localName, String qName) 69 throws SAXException 70 { 71 content.endElement(namespaceURI, localName, qName); 72 } 73 74 public void characters(char ch[], int start, int length) 75 throws SAXException 76 { 77 content.characters(ch, start, length); 78 } 79 80 public void ignorableWhitespace(char ch[], int start, int length) 81 throws SAXException 82 { 83 } 84 85 public void processingInstruction(String target, String data) 86 throws SAXException 87 { 88 } 89 90 public void skippedEntity(String name) 91 throws SAXException 92 { 93 } 94 } | Popular Tags |