1 package org.apache.ws.jaxme; 2 3 import javax.xml.bind.DatatypeConverterInterface; 4 import javax.xml.bind.UnmarshallerHandler; 5 6 import org.apache.ws.jaxme.util.NamespaceSupport; 7 import org.xml.sax.Locator; 8 9 10 /** JaxMe's private extension of 11 * {@link javax.xml.bind.UnmarshallerHandler}. 12 */ 13 public interface JMUnmarshallerHandler extends UnmarshallerHandler { 14 /** Returns the {@link JMUnmarshaller}, which created this 15 * handler. 16 */ 17 public JMUnmarshaller getJMUnmarshaller(); 18 19 /** Sets an observer, which will be notified, when the element has 20 * been parsed. 21 */ 22 public void setObserver(Observer pObserver); 23 24 /** Returns the observer, which will be notified, when the element has 25 * been parsed. 26 */ 27 public Observer getObserver(); 28 29 /** Returns an instance of {@link NamespaceSupport}. 30 */ 31 public NamespaceSupport getNamespaceSupport(); 32 33 /** Returns an instance of {@link Locator}, if it has 34 * been set, or null. 35 * @see org.xml.sax.ContentHandler#setDocumentLocator(org.xml.sax.Locator) 36 */ 37 public Locator getDocumentLocator(); 38 39 /** Returns an instance of {@link DatatypeConverterInterface}. 40 */ 41 public DatatypeConverterInterface getDatatypeConverter(); 42 43 /** Returns the current level of nested elements. 44 */ 45 public int getLevel(); 46 } 47