Top For Removal Deprecated By Reference
JAXB OSGI 4.0.9

Deprecated API


Terminally Deprecated Item Summary

SinceTerminally Deprecated Item and Description
2.3

Returns:

The JAnnotationArrayMember. More elements can be added by calling the same method multiple times
com.sun.codemodel.JAnnotationArrayMember.param
(JAnnotationUse
Adds a annotation to the array member
value
)

use annotate

4.0.7
com.sun.codemodel.JModule(final String
Java module name. Value can not be null
name
)

use two args constructor

4.0
com.sun.tools.xjc.api.J2SJAXBModel

Use com.sun.tools.jxc.api.J2SJAXBModel instead.

4.0
com.sun.tools.xjc.api.JavaCompiler

Use com.sun.tools.jxc.api.JavaCompiler instead.

4.0
com.sun.tools.xjc.api.Reference

Use com.sun.tools.jxc.api.Reference instead.

1.5.1
1.5.1
1.5.1
1.5.1
2.1.1
2.1.1
2.1.1
2.1.1
2.1.1
2.1.1
2.1.1
2.1.1
2.3
2.3
2.0
2.0
2.0
2.0
2.0
org.glassfish.jaxb.core.v2.ClassFactory.cleanCache()

this method is empty by now and will be removed in next major version

2.1.1

Deprecated Item Summary

SinceDeprecated Item and Description

Returns:

The JAnnotationUse that can be used as a member within this JAnnotationUse
com.sun.codemodel.JAnnotationUse.annotate
(Class<? extends Annotation>
The annotation class to be included
clazz
)

use JAnnotationArrayMember#annotate

com.sun.codemodel.JCodeModel.newAnonymousClass(JClass baseType)

The naming convention doesn't match the rest of the CodeModel. Use anonymousClass(JClass) instead.

com.sun.codemodel.JDefinedClass._class(int mods, String name, boolean isInterface)

com.sun.codemodel.JPackage._class(int mods, String name, boolean isInterface)

com.sun.tools.xjc.XJCBase.setStackSize(String ss)

not much need for JAXB2, as we now use much less stack.

Returns:

non-null read-only list.
com.sun.tools.xjc.api.JAXBModel.getClassList
()

this method is provided for now to allow gradual migration for JAX-RPC.

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.tools.xjc.model.AbstractCTypeInfoImpl.canBeReferencedByIDREF()

why are you calling an unimplemented method?

com.sun.tools.xjc.model.CBuiltinLeafInfo.asElement()

always return null at this level.

com.sun.tools.xjc.model.CBuiltinLeafInfo.canBeReferencedByIDREF()

why are you calling a method whose return value is always known?

com.sun.tools.xjc.model.CBuiltinLeafInfo.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.CElementInfo.getType()

why are you calling a method that returns this?

com.sun.tools.xjc.model.CEnumLeafInfo.canBeReferencedByIDREF()

why are you calling the method whose return value is known?

com.sun.tools.xjc.model.CPropertyInfo.getName()

marked as deprecated so that we can spot the use of this method.

com.sun.tools.xjc.model.Model.getLocator()

No line number available for the "root" component.

com.sun.tools.xjc.model.Model.getSchemaComponent()

Always return null. Perhaps you are interested in schemaComponent?

com.sun.tools.xjc.model.nav.NavigatorImpl.isFinal(NClass clazz)

no class generated by XJC is final.

com.sun.tools.xjc.reader.gbind.Element.iterator()

if you statically call this method, there's something wrong.

Returns:

The number of spaces in each indentation step, or 0 or less for no indentation.
com.sun.xml.txw2.output.DataWriter.getIndentStep
()

Only return the length of the indent string.

com.sun.xml.txw2.output.DataWriter.setIndentStep(int
The new indent step (0 or less for no indentation).
indentStep
)

Should use the version that takes string.

Returns:

The number of spaces in each indentation step, or 0 or less for no indentation.
com.sun.xml.txw2.output.IndentingXMLFilter.getIndentStep
()

Only return the length of the indent string.

com.sun.xml.txw2.output.IndentingXMLFilter.setIndentStep(int
The new indent step (0 or less for no indentation).
indentStep
)

Should use the version that takes string.

Returns:

The number of spaces in each indentation step, or 0 or less for no indentation.
com.sun.xml.txw2.output.IndentingXMLStreamWriter.getIndentStep
()

Only return the length of the indent string.

com.sun.xml.txw2.output.IndentingXMLStreamWriter.setIndentStep(int
The new indent step (0 or less for no indentation).
indentStep
)

Should use the version that takes string.

com.sun.xml.xsom.XSDeclaration.isAnonymous()

use the isGlobal method, which always returns the opposite of this function. Or the isLocal method.

Returns:

nun-null valid array. The return value always contains this element decl itself.
com.sun.xml.xsom.XSElementDecl.listSubstitutables
()

this method allocates a new array every time, so it could be inefficient when working with a large schema. Use getSubstitutables() instead.

2.3
com.sun.xml.xsom.XSSchema.getSourceDocument()

Since this method always returns null, if you are calling this method from and not from XSComponent, there's something wrong with your code.

org.glassfish.jaxb.core.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.

Returns:

The number of spaces in each indentation step, or 0 or less for no indentation.
org.glassfish.jaxb.core.marshaller.DataWriter.getIndentStep
()

Only return the length of the indent string.

org.glassfish.jaxb.core.marshaller.DataWriter.setIndentStep(int
The new indent step (0 or less for no indentation).
indentStep
)

Should use the version that takes string.

org.glassfish.jaxb.runtime.DatatypeConverterImpl

in JAXB 2.2.4 - use jakarta.xml.bind.DatatypeConverterImpl instead or let us know why you can't

org.glassfish.jaxb.runtime.v2.ContextFactory.createContext(Class<T>[] classes, Collection<TypeReference> typeRefs, Map<Class<T>, Class<T>> subclassReplacements, String defaultNsUri, boolean c14nSupport, RuntimeAnnotationReader ar, boolean xmlAccessorFactorySupport, boolean allNillable, boolean retainPropertyInfo)

use createContext(Class[] classes, Map<String,Object> properties) method instead

org.glassfish.jaxb.runtime.v2.ContextFactory.createContext(Class<T>[] classes, Collection<TypeReference> typeRefs, Map<Class<T>, Class<T>> subclassReplacements, String defaultNsUri, boolean c14nSupport, RuntimeAnnotationReader ar, boolean xmlAccessorFactorySupport, boolean allNillable, boolean retainPropertyInfo, boolean improvedXsiTypeHandling)

use createContext( Class[] classes, Map<String,Object> properties) method instead

org.glassfish.jaxb.runtime.v2.model.impl.AnyTypeImpl.canBeReferencedByIDREF()

why are you calling a method whose return value is always known?

org.glassfish.jaxb.runtime.v2.model.impl.ArrayInfoImpl.canBeReferencedByIDREF()

why are you calling a method whose return value is always known?

org.glassfish.jaxb.runtime.v2.model.impl.ClassInfoImpl.getScope()

you shouldn't be invoking this method on .

org.glassfish.jaxb.runtime.v2.model.impl.ElementInfoImpl.canBeReferencedByIDREF()

why are you calling a method whose return value is always known?

org.glassfish.jaxb.runtime.v2.model.impl.EnumLeafInfoImpl.canBeReferencedByIDREF()

why are you calling a method whose return value is always known?

org.glassfish.jaxb.runtime.v2.model.impl.EnumLeafInfoImpl.getSubstitutionHead()

if you are invoking this method directly, there's something wrong.

org.glassfish.jaxb.runtime.v2.model.impl.LeafInfoImpl.canBeReferencedByIDREF()

why are you calling a method whose return value is always known?

org.glassfish.jaxb.runtime.v2.runtime.XMLSerializer.getCachedBase64DataInstance()

Base64Data is no longer cached, so that XMLStreamWriterEx impl can retain the data, like JAX-WS does.

Returns:

the map of URI to vocabulary.
org.jvnet.fastinfoset.FastInfosetParser.getExternalVocabularies
()

The map returned will not be the same instance and contain the same entries as the map set by setExternalVocabularies method.

Deprecated Reference Summary

SinceItem with Deprecated Reference and Description

Returns:

null if it is not a part of the input to JavaCompiler#bind(Collection, Map, String, ProcessingEnvironment).
com.sun.tools.xjc.api.J2SJAXBModel.getXmlTypeName
(Reference
must not be null. This must be one of the References specified in the JavaCompiler#bind(Collection, Map, String, ProcessingEnvironment) method.
javaType
)

Reference is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

Non-null if no error was reported. Otherwise null.
com.sun.tools.xjc.api.JavaCompiler.bind
(Collection<Reference>
The list of types that needs to be bound to XML. "root references" from JAX-RPC to JAXB is always in the form of (type,annotations) pair.
rootTypes
,
Map<QName, Reference>
Add element declarations for the specified element names to the XML types mapped from the corresponding References. Those References must be included in the rootTypes parameter. In this map, a Reference can be null, in which case the element name is declared to have an empty complex type. (<xs:element name='foo'><xs:complexType/></xs:element>) This parameter can be null, in which case the method behaves as if the empty map is given.
additionalElementDecls
,
String
If not-null, all the uses of the empty default namespace ("") will be replaced by this namespace URI.
defaultNamespaceRemap
,
ProcessingEnvironment
The caller supplied view to the annotated source code that JAXB is going to process.
source
)

J2SJAXBModel is deprecated or references (maybe indirectly) at least one deprecated element.

com.sun.tools.jxc.api.J2SJAXBModel

J2SJAXBModel is deprecated or references (maybe indirectly) at least one deprecated element.

com.sun.tools.jxc.api.JavaCompiler

JavaCompiler is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

Non-null if no error was reported. Otherwise null.
com.sun.tools.jxc.api.JavaCompiler.bind
(Collection<Reference>
The list of types that needs to be bound to XML. "root references" from JAX-RPC to JAXB is always in the form of (type,annotations) pair.
rootTypes
,
Map<QName, Reference>
Add element declarations for the specified element names to the XML types mapped from the corresponding References. Those References must be included in the rootTypes parameter. In this map, a Reference can be null, in which case the element name is declared to have an empty complex type. (<xs:element name='foo'><xs:complexType/></xs:element>) This parameter can be null, in which case the method behaves as if the empty map is given.
additionalElementDecls
,
ProcessingEnvironment
The caller supplied view to the annotated source code that JAXB is going to process.
source
,
String
If not-null, all the uses of the empty default namespace ("") will be replaced by this namespace URI.
defaultNamespaceRemap
)

J2SJAXBModel is deprecated or references (maybe indirectly) at least one deprecated element.

Returns:

always return non-null object.
com.sun.tools.jxc.api.JXC.createJavaCompiler
()

JavaCompiler is deprecated or references (maybe indirectly) at least one deprecated element.

com.sun.tools.jxc.api.impl.j2s.JavaCompilerImpl

JavaCompiler is deprecated or references (maybe indirectly) at least one deprecated element.

com.sun.tools.jxc.api.impl.j2s.JavaCompilerImpl.bind(Collection<Reference> rootClasses, Map<QName, Reference> additionalElementDecls, ProcessingEnvironment env, String defaultNamespaceRemap)

J2SJAXBModel is deprecated or references (maybe indirectly) at least one deprecated element.

com.sun.tools.jxc.api.impl.j2s.JavaCompilerImpl.bind(Collection<Reference> rootTypes, Map<QName, Reference> additionalElementDecls, String defaultNamespaceRemap, ProcessingEnvironment env)

J2SJAXBModel is deprecated or references (maybe indirectly) at least one deprecated element.

com.sun.tools.jxc.api.impl.j2s.JAXBModelImpl

J2SJAXBModel is deprecated or references (maybe indirectly) at least one deprecated element.

com.sun.tools.jxc.api.impl.j2s.JAXBModelImpl.getXmlTypeName(Reference javaType)

Reference is deprecated or references (maybe indirectly) at least one deprecated element.