Deprecated API


Contents
Deprecated Classes
com.sun.xml.bind.api.BridgeContext
          The caller no longer needs to use this, as Bridge has methods that can work without BridgeContext. 
 

Deprecated Annotation Types
com.sun.xml.bind.annotation.XmlIsSet
          this hasn't been implemented in the RI, and this hasn't been speced yet. I believe Joe asked for this feature. I'd like to drop this. 
 

Deprecated Fields
com.sun.xml.bind.marshaller.Messages.ERR_DANGLING_IDREF
          only used from 1.0 
com.sun.xml.bind.marshaller.Messages.ERR_MISSING_OBJECT
          use ERR_MISSING_OBJECT2 
com.sun.xml.bind.marshaller.Messages.ERR_MISSING_OBJECT2
          use XMLSerializer.reportMissingObjectError(String) 
com.sun.xml.bind.marshaller.Messages.ERR_NOT_IDENTIFIABLE
          only used from 1.0 
 

Deprecated Methods
com.sun.xml.bind.v2.model.impl.BuiltinLeafInfoImpl.asElement()
          always return null at this level. 
com.sun.xml.bind.v2.model.impl.ElementInfoImpl.canBeReferencedByIDREF()
          why are you calling a method whose return value is always known? 
com.sun.xml.bind.v2.model.impl.ArrayInfoImpl.canBeReferencedByIDREF()
          why are you calling a method whose return value is always known? 
com.sun.xml.bind.v2.model.impl.LeafInfoImpl.canBeReferencedByIDREF()
          why are you calling a method whose return value is always known? 
com.sun.xml.bind.v2.model.impl.AnyTypeImpl.canBeReferencedByIDREF()
          why are you calling a method whose return value is always known? 
com.sun.xml.bind.v2.model.impl.EnumLeafInfoImpl.canBeReferencedByIDREF()
          why are you calling a method whose return value is always known? 
com.sun.tools.xjc.model.AbstractCTypeInfoImpl.canBeReferencedByIDREF()
          why are you calling an unimplemented method? 
com.sun.tools.xjc.model.CEnumLeafInfo.canBeReferencedByIDREF()
          why are you calling the method whose return value is known? 
com.sun.xml.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.expectText()
           
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.expectText()
           
com.sun.tools.xjc.XJCListener.generatedFile(String)
          Override XJCListener.generatedFile(String, int, int). Deprecated in 2.0.1. 
com.sun.tools.xjc.model.CNonElement.getAdapterUse()
           
com.sun.tools.xjc.model.CEnumLeafInfo.getAdapterUse()
           
com.sun.tools.xjc.model.CBuiltinLeafInfo.getAdapterUse()
           
com.sun.xml.bind.v2.runtime.XMLSerializer.getCachedBase64DataInstance()
          Base64Data is no longer cached, so that XMLStreamWriterEx impl can retain the data, like JAX-WS does. 
com.sun.tools.xjc.api.JAXBModel.getClassList()
          this method is provided for now to allow gradual migration for JAX-RPC. 
com.sun.xml.bind.v2.model.impl.BuiltinLeafInfoImpl.getElementName()
          always return null at this level. 
com.sun.xml.bind.marshaller.DataWriter.getIndentStep()
          Only return the length of the indent string. 
com.sun.tools.xjc.model.CNonElement.getInfo()
           
com.sun.tools.xjc.model.CEnumLeafInfo.getInfo()
           
com.sun.tools.xjc.model.CBuiltinLeafInfo.getInfo()
           
com.sun.tools.xjc.model.CArrayInfo.getInfo()
           
com.sun.tools.xjc.model.CClassInfo.getInfo()
           
com.sun.tools.xjc.model.CClassRef.getInfo()
           
com.sun.tools.xjc.model.Model.getLocator()
          No line number available for the "root" component. 
com.sun.tools.xjc.model.CPropertyInfo.getName()
          marked as deprecated so that we can spot the use of this method. 
com.sun.tools.xjc.api.SchemaCompiler.getOptions()
          This method is not really "deprecated" (in the sense of being removed from future versions), but the JAXB team is not committed to evolve Options class in the compatible fashion. So please don't use this method unless you know what you're doing. 
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.getPredictor()
           
com.sun.tools.xjc.model.Model.getSchemaComponent()
          Always return null. Perhaps you are interested in Model.schemaComponent? 
com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getScope()
          you shouldn't be invoking this method on ClassInfoImpl. 
com.sun.xml.bind.v2.model.impl.EnumLeafInfoImpl.getScope()
          you shouldn't be invoking this method on ClassInfoImpl. 
com.sun.xml.bind.v2.model.impl.EnumLeafInfoImpl.getSubstitutionHead()
          if you are invoking this method directly, there's something wrong. 
com.sun.tools.xjc.model.CElementInfo.getType()
          why are you calling a method that returns this? 
com.sun.tools.xjc.model.CReferencePropertyInfo.getXmlName()
           
com.sun.tools.xjc.model.CElementPropertyInfo.getXmlName()
           
com.sun.tools.xjc.model.CNonElement.isCollection()
           
com.sun.tools.xjc.model.CEnumLeafInfo.isCollection()
           
com.sun.tools.xjc.model.CBuiltinLeafInfo.isCollection()
           
com.sun.xml.bind.v2.model.impl.BuiltinLeafInfoImpl.isElement()
          always return false at this level. 
com.sun.tools.xjc.model.CClassInfo.isFinal()
          if you are calling this method directly, you must be doing something wrong. 
com.sun.tools.xjc.model.nav.NavigatorImpl.isFinal(NClass)
          no class generated by XJC is final. 
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.isValidating()
          since 2.0 
com.sun.tools.xjc.reader.gbind.Element.iterator()
          if you statically call this method, there's something wrong. 
com.sun.xml.bind.api.JAXBRIContext.newInstance(Class[], Collection, String, boolean)
          Compatibility with older versions. 
com.sun.xml.bind.unmarshaller.DOMScanner.parse(Element, ContentHandler)
          in JAXB 2.0 Use DOMScanner.scan(Element) 
com.sun.xml.bind.unmarshaller.DOMScanner.parseWithContext(Element, ContentHandler)
          in JAXB 2.0 Use DOMScanner.scan(Element) 
com.sun.xml.bind.marshaller.DataWriter.setIndentStep(int)
          Should use the version that takes string. 
com.sun.tools.xjc.XJC2Task.setStackSize(String)
          not much need for JAXB2, as we now use much less stack. 
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.setValidating(boolean)
          since 2.0 
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(SAXSource)
           
 

Deprecated Constructors
com.sun.tools.xjc.reader.xmlschema.bindinfo.AbstractDeclarationImpl(Locator)
           
com.sun.tools.xjc.reader.xmlschema.bindinfo.BIConversion(Locator)