1 8 package com.sun.japex.testsuite.impl.runtime; 9 10 import javax.xml.bind.ValidationEvent; 11 import javax.xml.namespace.NamespaceContext ; 12 13 import org.xml.sax.Attributes ; 14 import org.xml.sax.Locator ; 15 import org.xml.sax.SAXException ; 16 17 import com.sun.xml.bind.unmarshaller.Tracer; 18 19 34 public interface UnmarshallingContext extends NamespaceContext 35 { 36 37 GrammarInfo getGrammarInfo(); 38 39 40 41 51 void pushContentHandler( UnmarshallingEventHandler handler, int memento ); 52 53 61 void popContentHandler() throws SAXException ; 62 63 66 UnmarshallingEventHandler getCurrentHandler(); 67 68 78 String [] getNewlyDeclaredPrefixes(); 79 80 87 String [] getAllDeclaredPrefixes(); 88 89 90 99 void pushAttributes( Attributes atts, boolean collectText ); 100 101 106 void popAttributes(); 107 108 116 int getAttribute( String uri, String name ); 117 118 123 Attributes getUnconsumedAttributes(); 124 125 129 void consumeAttribute( int idx ) throws SAXException ; 130 131 134 String eatAttribute( int idx ) throws SAXException ; 135 136 144 void addPatcher( Runnable job ); 145 147 156 String addToIdTable( String id ); 157 168 175 Object getObjectFromId( String id ); 176 178 179 182 Locator getLocator(); 183 184 194 void handleEvent( ValidationEvent event, boolean canRecover ) throws SAXException ; 195 196 197 String resolveNamespacePrefix( String prefix ); 207 String getBaseUri(); 208 boolean isUnparsedEntity( String entityName ); 209 boolean isNotation( String notationName ); 210 211 212 213 214 223 Tracer getTracer(); 224 } 225 | Popular Tags |