< prev index next >

src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/runtime/AnyTypeBeanInfo.java

Print this page




  31 import javax.xml.bind.helpers.ValidationEventImpl;
  32 import javax.xml.bind.ValidationEvent;
  33 import javax.xml.namespace.QName;
  34 import javax.xml.stream.XMLStreamException;
  35 
  36 import com.sun.xml.internal.bind.v2.WellKnownNamespace;
  37 import com.sun.xml.internal.bind.v2.model.runtime.RuntimeTypeInfo;
  38 import com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext;
  39 import com.sun.xml.internal.bind.v2.runtime.unmarshaller.DomLoader;
  40 import com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader;
  41 import com.sun.xml.internal.bind.v2.runtime.unmarshaller.XsiTypeLoader;
  42 
  43 import org.w3c.dom.Attr;
  44 import org.w3c.dom.Element;
  45 import org.w3c.dom.NamedNodeMap;
  46 import org.w3c.dom.Node;
  47 import org.w3c.dom.NodeList;
  48 import org.xml.sax.SAXException;
  49 
  50 /**
  51  * {@link JaxBeanInfo} for handling <tt>xs:anyType</tt>.
  52  *
  53  * @author Kohsuke Kawaguchi
  54  */
  55 final class AnyTypeBeanInfo extends JaxBeanInfo<Object> implements AttributeAccessor {
  56 
  57     private boolean nilIncluded = false;
  58 
  59     public AnyTypeBeanInfo(JAXBContextImpl grammar,RuntimeTypeInfo anyTypeInfo) {
  60         super(grammar, anyTypeInfo, Object.class, new QName(WellKnownNamespace.XML_SCHEMA,"anyType"), false, true, false);
  61     }
  62 
  63     public String getElementNamespaceURI(Object element) {
  64         throw new UnsupportedOperationException();
  65     }
  66 
  67     public String getElementLocalName(Object element) {
  68         throw new UnsupportedOperationException();
  69     }
  70 
  71     public Object createInstance(UnmarshallingContext context) {




  31 import javax.xml.bind.helpers.ValidationEventImpl;
  32 import javax.xml.bind.ValidationEvent;
  33 import javax.xml.namespace.QName;
  34 import javax.xml.stream.XMLStreamException;
  35 
  36 import com.sun.xml.internal.bind.v2.WellKnownNamespace;
  37 import com.sun.xml.internal.bind.v2.model.runtime.RuntimeTypeInfo;
  38 import com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext;
  39 import com.sun.xml.internal.bind.v2.runtime.unmarshaller.DomLoader;
  40 import com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader;
  41 import com.sun.xml.internal.bind.v2.runtime.unmarshaller.XsiTypeLoader;
  42 
  43 import org.w3c.dom.Attr;
  44 import org.w3c.dom.Element;
  45 import org.w3c.dom.NamedNodeMap;
  46 import org.w3c.dom.Node;
  47 import org.w3c.dom.NodeList;
  48 import org.xml.sax.SAXException;
  49 
  50 /**
  51  * {@link JaxBeanInfo} for handling {@code xs:anyType}.
  52  *
  53  * @author Kohsuke Kawaguchi
  54  */
  55 final class AnyTypeBeanInfo extends JaxBeanInfo<Object> implements AttributeAccessor {
  56 
  57     private boolean nilIncluded = false;
  58 
  59     public AnyTypeBeanInfo(JAXBContextImpl grammar,RuntimeTypeInfo anyTypeInfo) {
  60         super(grammar, anyTypeInfo, Object.class, new QName(WellKnownNamespace.XML_SCHEMA,"anyType"), false, true, false);
  61     }
  62 
  63     public String getElementNamespaceURI(Object element) {
  64         throw new UnsupportedOperationException();
  65     }
  66 
  67     public String getElementLocalName(Object element) {
  68         throw new UnsupportedOperationException();
  69     }
  70 
  71     public Object createInstance(UnmarshallingContext context) {


< prev index next >