1 package com.sun.tools.xjc.runtime; 2 3 import javax.xml.bind.ValidationEvent; 4 import javax.xml.namespace.NamespaceContext ; 5 6 import org.xml.sax.Attributes ; 7 import org.xml.sax.Locator ; 8 import org.xml.sax.SAXException ; 9 10 import com.sun.xml.bind.unmarshaller.Tracer; 11 12 27 public interface UnmarshallingContext extends NamespaceContext 28 { 29 30 GrammarInfo getGrammarInfo(); 31 32 33 34 44 void pushContentHandler( UnmarshallingEventHandler handler, int memento ); 45 46 54 void popContentHandler() throws SAXException ; 55 56 59 UnmarshallingEventHandler getCurrentHandler(); 60 61 71 String [] getNewlyDeclaredPrefixes(); 72 73 80 String [] getAllDeclaredPrefixes(); 81 82 83 92 void pushAttributes( Attributes atts, boolean collectText ); 93 94 99 void popAttributes(); 100 101 109 int getAttribute( String uri, String name ); 110 111 116 Attributes getUnconsumedAttributes(); 117 118 122 void consumeAttribute( int idx ) throws SAXException ; 123 124 127 String eatAttribute( int idx ) throws SAXException ; 128 129 137 void addPatcher( Runnable job ); 138 140 149 String addToIdTable( String id ); 150 161 168 Object getObjectFromId( String id ); 169 171 172 175 Locator getLocator(); 176 177 187 void handleEvent( ValidationEvent event, boolean canRecover ) throws SAXException ; 188 189 190 String resolveNamespacePrefix( String prefix ); 200 String getBaseUri(); 201 boolean isUnparsedEntity( String entityName ); 202 boolean isNotation( String notationName ); 203 204 205 206 207 216 Tracer getTracer(); 217 } 218 | Popular Tags |