JAXBContext enhanced with JAXB RI specific functionalities.
Subject to change without notice.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | ANNOTATION_READER
The property that you can specify to |
| public static final String | BACKUP_WITH_PARENT_NAMESPACE
If true and element namespace is not specified, namespace of parent element will be used. |
| public static final String | CANONICALIZATION_SUPPORT
The property that you can specify to |
| public static final String | DEFAULT_NAMESPACE_REMAP
The property that you can specify to |
| public static final String | DISABLE_XML_SECURITY
If true XML security features when parsing XML documents will be disabled. |
| public static final String | ENABLE_XOP
Marshaller/Unmarshaller property to enable XOP processing. |
| public static final String | IMPROVED_XSI_TYPE_HANDLING
Improves handling of xsi:type used on leaf properties. |
| public static final String | MAX_ERRORS
The maximum number of errors to report. |
| public static final String | RETAIN_REFERENCE_TO_INFO
Retains references to PropertyInfos. |
| public static final String | SUBCLASS_REPLACEMENTS
The property that you can specify to |
| public static final String | SUPRESS_ACCESSOR_WARNINGS
Supress security warnings when trying to access fields through reflection. |
| public static final String | TREAT_EVERYTHING_NILLABLE
The property that you can specify to |
| public static final String | TYPE_REFERENCES
The property that you can specify to |
| public static final String | XMLACCESSORFACTORY_SUPPORT
The property that you can specify to |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Bridge | Returns: null if the specified reference is not given toJAXBRIContext#newInstance.Creates a mini-marshaller/unmarshaller that can process a |
| public abstract void | generateEpisode(Result
This receives the generated episode file. output)Generates the episode file that represents the binding known to this |
| public abstract void | generateSchema(SchemaOutputResolver
this object controls the output to which schemas
will be sent. outputResolver)Overrides jakarta. Generates the schema documents from the model. |
| public static Type | Returns: The use ofbaseType in type.
or null if the type is not assignable to the base type.The type that derives from type, Class<T> baseTypeThe class whose parameterization we are interested in. baseType)Gets the parameterization of the given base type. |
| public abstract String | Returns: may be null, if the runtime is loaded by a class loader that doesn't support the access to the manifest informatino.Gets the build information of the JAXB runtime. |
| public abstract QName | Returns: null if the object is not bound to an element.If the given object is bound to an element in XML by JAXB, returns the element name. |
| public abstract QName | |
| public abstract < type of the wrapper bean B, type of the property of the bean V> RawAccessor | Returns: always return non-null valid accessor object.Gets a |
| public abstract List | Returns: always non-null.Gets the namespace URIs statically known to this |
| public abstract RuntimeTypeInfoSet | getRuntimeTypeInfoSet()
Allows you to access the runtime model information of the JAXB XML/Java binding. |
| public abstract QName | Returns: null if the referenced type is an anonymous and therefore doesn't have a name.must not be null. This must be one of the tr)TypeReferences specified
in the JAXBRIContext#newInstance method.Returns the name of the XML Type bound to the specified Java type. |
| public abstract boolean | |
| public static String | Returns: Typically, this method returns "NameLikeThis".Computes a Java class name from a local name. |
| public static String | Returns: Typically, this method returns "NameLikeThis".Computes a Java class name from a local name. |
| public static String | Returns: Typically, this method returns "nameLikeThis".Computes a Java identifier from a local name. |
| public static JAXBRIContext | newInstance(Class<T>[]
Classes to be bound. See classes, Collection<TypeReference> JAXBContext#newInstance(Class[]) for the meaning.See typeRefs, Map<Class<T>, Class<T>> TYPE_REFERENCES for the meaning of this parameter.
Can be null.See subclassReplacements, String SUBCLASS_REPLACEMENTS for the meaning of this parameter.
Can be null.See defaultNamespaceRemap, boolean DEFAULT_NAMESPACE_REMAP for the meaning of this parameter.
Can be null (and should be null for ordinary use of JAXB.)See c14nSupport, RuntimeAnnotationReader CANONICALIZATION_SUPPORT for the meaning of this parameter.See ar)ANNOTATION_READER for the meaning of this parameter.
Can be null.Creates a new . |
| public static JAXBRIContext | newInstance(Class<T>[]
Classes to be bound. See classes, Collection<TypeReference> JAXBContext#newInstance(Class[]) for the meaning.See typeRefs, Map<Class<T>, Class<T>> TYPE_REFERENCES for the meaning of this parameter.
Can be null.See subclassReplacements, String SUBCLASS_REPLACEMENTS for the meaning of this parameter.
Can be null.See defaultNamespaceRemap, boolean DEFAULT_NAMESPACE_REMAP for the meaning of this parameter.
Can be null (and should be null for ordinary use of JAXB.)See c14nSupport, RuntimeAnnotationReader CANONICALIZATION_SUPPORT for the meaning of this parameter.See ar, boolean ANNOTATION_READER for the meaning of this parameter.
Can be null.See xmlAccessorFactorySupport, boolean XMLACCESSORFACTORY_SUPPORT for the meaning of this parameter.See allNillable, boolean TREAT_EVERYTHING_NILLABLE for the meaning of this parameter.See retainPropertyInfo, boolean RETAIN_REFERENCE_TO_INFO for the meaning of this parameter.See supressAccessorWarnings)SUPRESS_ACCESSOR_WARNINGS for the meaning of this parameter.Creates a new . |
| ANNOTATION_READER | back to summary |
|---|---|
| public static final String ANNOTATION_READER The property that you can specify to
| |
| BACKUP_WITH_PARENT_NAMESPACE | back to summary |
|---|---|
| public static final String BACKUP_WITH_PARENT_NAMESPACE If true and element namespace is not specified, namespace of parent element will be used. The default value is false. Boolean
| |
| CANONICALIZATION_SUPPORT | back to summary |
|---|---|
| public static final String CANONICALIZATION_SUPPORT The property that you can specify to
| |
| DEFAULT_NAMESPACE_REMAP | back to summary |
|---|---|
| public static final String DEFAULT_NAMESPACE_REMAP The property that you can specify to
The value of the property is
| |
| DISABLE_XML_SECURITY | back to summary |
|---|---|
| public static final String DISABLE_XML_SECURITY If true XML security features when parsing XML documents will be disabled. The default value is false. Boolean
| |
| ENABLE_XOP | back to summary |
|---|---|
| public static final String ENABLE_XOP Marshaller/Unmarshaller property to enable XOP processing.
| |
| IMPROVED_XSI_TYPE_HANDLING | back to summary |
|---|---|
| public static final String IMPROVED_XSI_TYPE_HANDLING Improves handling of xsi:type used on leaf properties. Boolean
| |
| MAX_ERRORS | back to summary |
|---|---|
| public static final String MAX_ERRORS The maximum number of errors to report. Use negative value to report all errors. The default value is 10. Boolean
| |
| RETAIN_REFERENCE_TO_INFO | back to summary |
|---|---|
| public static final String RETAIN_REFERENCE_TO_INFO Retains references to PropertyInfos. Boolean
| |
| SUBCLASS_REPLACEMENTS | back to summary |
|---|---|
| public static final String SUBCLASS_REPLACEMENTS The property that you can specify to See the release notes for more details about this feature.
| |
| SUPRESS_ACCESSOR_WARNINGS | back to summary |
|---|---|
| public static final String SUPRESS_ACCESSOR_WARNINGS Supress security warnings when trying to access fields through reflection. Boolean
| |
| TREAT_EVERYTHING_NILLABLE | back to summary |
|---|---|
| public static final String TREAT_EVERYTHING_NILLABLE The property that you can specify to
| |
| TYPE_REFERENCES | back to summary |
|---|---|
| public static final String TYPE_REFERENCES The property that you can specify to
The value of the property is
This mechanism allows additional element declarations that were not a part of
the schema into the created
| |
| XMLACCESSORFACTORY_SUPPORT | back to summary |
|---|---|
| public static final String XMLACCESSORFACTORY_SUPPORT The property that you can specify to
| |
| JAXBRIContext | back to summary |
|---|---|
| protected JAXBRIContext() | |
| createBridge | back to summary |
|---|---|
| public abstract Bridge Creates a mini-marshaller/unmarshaller that can process a
| |
| generateEpisode | back to summary |
|---|---|
| public abstract void generateEpisode(Result output) Generates the episode file that represents the binding known to this Episode file is really just a JAXB customization file, except that currently we use the RI-specific SCD to refer to schema components.
| |
| generateSchema | back to summary |
|---|---|
| public abstract void generateSchema(SchemaOutputResolver outputResolver) throws IOException Overrides jakarta. Generates the schema documents from the model.
The caller can use the additionalElementDecls parameter to
add element declarations to the generate schema.
For example, if the JAX-RPC passes in the following entry:
| |
| getBaseType | back to summary |
|---|---|
| public static Type getBaseType(Type type, Class<T> baseType) Gets the parameterization of the given base type. For example, given the following
This method works like this:
| |
| getBuildId | back to summary |
|---|---|
| public abstract String getBuildId() Gets the build information of the JAXB runtime. | |
| getElementName | back to summary |
|---|---|
| public abstract QName getElementName(Object o) throws JAXBException If the given object is bound to an element in XML by JAXB, returns the element name.
| |
| getElementName | back to summary |
|---|---|
| public abstract QName getElementName(Class<T> o) throws JAXBException Allows to retrieve the element name based on Class.
| |
| getElementPropertyAccessor | back to summary |
|---|---|
| public abstract <B, V> RawAccessor Gets a This method is designed to assist the JAX-RPC RI fill in a wrapper bean (in the doc/lit/wrap mode.) In the said mode, a wrapper bean is supposed to only have properties that match elements, and for each element that appear in the content model there's one property.
Therefore, this method takes a wrapper bean and a tag name that identifies a property
on the given wrapper bean, then returns a This method is not designed for a performance. The caller is expected to cache the result.
| |
| getKnownNamespaceURIs | back to summary |
|---|---|
| public abstract List Gets the namespace URIs statically known to this When JAXB is used to marshal into sub-trees, it declares these namespace URIs at each top-level element that it marshals. To avoid repeated namespace declarations at sub-elements, the application may declare those namespaces at a higher level. | |
| getRuntimeTypeInfoSet | back to summary |
|---|---|
| public abstract RuntimeTypeInfoSet getRuntimeTypeInfoSet() Allows you to access the runtime model information of the JAXB XML/Java binding. This is useful for doing a deeper integration with the JAXB RI. For more information about the model, see https://jaxb2-reflection.dev.java.net/
| |
| getTypeName | back to summary |
|---|---|
| public abstract QName getTypeName(TypeReference tr) Returns the name of the XML Type bound to the specified Java type.
| |
| hasSwaRef | back to summary |
|---|---|
| public abstract boolean hasSwaRef() Returns true if this context includes a class
that has
| |
| mangleNameToClassName | back to summary |
|---|---|
| public static String mangleNameToClassName(String localName) Computes a Java class name from a local name. This method faithfully implements the name mangling rule as specified in the JAXB spec. | |
| mangleNameToPropertyName | back to summary |
|---|---|
| public static String mangleNameToPropertyName(String localName) Computes a Java class name from a local name.
This method faithfully implements the name mangling rule as specified in the JAXB spec.
This method works like | |
| mangleNameToVariableName | back to summary |
|---|---|
| public static String mangleNameToVariableName(String localName) Computes a Java identifier from a local name. This method faithfully implements the name mangling rule as specified in the JAXB spec. In JAXB, a collision with a Java reserved word (such as "return") never happens. Accordingly, this method may return an identifier that collides with reserved words.
Use | |
| newInstance | back to summary |
|---|---|
| public static JAXBRIContext newInstance(Class<T>[] classes, Collection<TypeReference> typeRefs, Map<Class<T>, Class<T>> subclassReplacements, String defaultNamespaceRemap, boolean c14nSupport, RuntimeAnnotationReader ar) throws JAXBException Creates a new .
| |
| newInstance | back to summary |
|---|---|
| public static JAXBRIContext newInstance(Class<T>[] classes, Collection<TypeReference> typeRefs, Map<Class<T>, Class<T>> subclassReplacements, String defaultNamespaceRemap, boolean c14nSupport, RuntimeAnnotationReader ar, boolean xmlAccessorFactorySupport, boolean allNillable, boolean retainPropertyInfo, boolean supressAccessorWarnings) throws JAXBException Creates a new .
| |