1 22 package org.jboss.xb.binding.sunday.unmarshalling; 23 24 import javax.xml.namespace.QName ; 25 import javax.xml.namespace.NamespaceContext ; 26 import org.xml.sax.Attributes ; 27 28 32 public class DefaultElementInterceptor 33 implements ElementInterceptor 34 { 35 public static final ElementInterceptor INSTANCE = new DefaultElementInterceptor(); 36 37 public Object startElement(Object parent, QName qName, TypeBinding type) 38 { 39 return parent; 40 } 41 42 public void attributes(Object o, QName elementName, TypeBinding type, Attributes attrs, NamespaceContext nsCtx) 43 { 44 } 45 46 public void characters(Object o, QName qName, TypeBinding type, NamespaceContext nsCtx, String text) 47 { 48 } 49 50 public Object endElement(Object o, QName qName, TypeBinding type) 51 { 52 return o; 53 } 54 55 public void add(Object parent, Object child, QName qName) 56 { 57 } 58 } 59 | Popular Tags |