1 package com.sun.tools.xjc.runtime; 2 3 import javax.xml.bind.ValidationEvent; 4 5 import org.xml.sax.SAXException ; 6 7 import com.sun.xml.bind.JAXBObject; 8 import com.sun.xml.bind.marshaller.IdentifiableObject; 9 import com.sun.xml.bind.serializer.AbortSerializationException; 10 11 50 public interface XMLSerializer 51 { 52 59 void reportError( ValidationEvent e ) throws AbortSerializationException; 60 61 66 void startElement( String uri, String local ) throws SAXException ; 67 68 72 void endNamespaceDecls() throws SAXException ; 73 74 78 void endAttributes() throws SAXException ; 79 80 84 void endElement() throws SAXException ; 85 86 87 125 void text( String text, String fieldName ) throws SAXException ; 126 127 128 142 void startAttribute( String uri, String local ) throws SAXException ; 143 144 void endAttribute() throws SAXException ; 145 146 150 NamespaceContext2 getNamespaceContext(); 151 152 153 169 String onID( IdentifiableObject owner, String value ) throws SAXException ; 170 171 182 String onIDREF( IdentifiableObject obj ) throws SAXException ; 183 184 185 187 188 189 192 202 void childAsBody( JAXBObject o, String fieldName ) throws SAXException ; 203 204 214 void childAsAttributes( JAXBObject o, String fieldName ) throws SAXException ; 215 216 225 void childAsURIs( JAXBObject o, String fieldName ) throws SAXException ; 226 } 227 | Popular Tags |