com.sun.xml.bind.v2.runtime
public final class JAXBContextImpl extends JAXBRIContext
| Nested Class Summary | |
|---|---|
| static class | JAXBContextImpl.JAXBContextBuilder |
| Field Summary | |
|---|---|
| boolean | allNillable |
| RuntimeAnnotationReader | annotationReader |
| protected Map<RuntimeTypeInfo,JaxBeanInfo> | beanInfos
All created JaxBeanInfos.
|
| protected boolean | c14nSupport
true to reorder attributes lexicographically in preparation of the c14n support. |
| boolean | fastBoot
If true, we aim for faster JAXBContext instanciation performance,
instead of going after efficient sustained unmarshalling/marshalling performance.
|
| boolean | improvedXsiTypeHandling
Improved xsi type handling. |
| Pool<Marshaller> | marshallerPool
Pool of Marshallers. |
| NameBuilder | nameBuilder
Used to assign indices to known names in this grammar.
|
| NameList | nameList
Keeps the list of known names.
|
| boolean | retainPropertyInfo
Store properties, so that they can be recovered in the run (is here because of JSON encoding of Jersey). |
| Map<Class,Class> | subclassReplacements |
| boolean | supressAccessorWarnings
Supress reflection accessor warnings. |
| Pool<Unmarshaller> | unmarshallerPool |
| boolean | xmlAccessorFactorySupport
Flag that user has provided a custom AccessorFactory for JAXB to use |
| Method Summary | |
|---|---|
| JAXBContextImpl | createAugmented(Class<?> clazz)
Creates a JAXBContextImpl that includes the specified additional classes. |
| <T> Binder<T> | createBinder(Class<T> domType) |
| Binder<Node> | createBinder() |
| Bridge | createBridge(TypeReference ref) |
| BridgeContext | createBridgeContext() |
| static Document | createDom()
Creates a new DOM document. |
| JAXBIntrospector | createJAXBIntrospector() |
| MarshallerImpl | createMarshaller() |
| SchemaOutputResolver | createTestResolver()
Used for testing. |
| static Transformer | createTransformer()
Creates a new identity transformer. |
| static TransformerHandler | createTransformerHandler()
Creates a new identity transformer. |
| UnmarshallerImpl | createUnmarshaller() |
| Validator | createValidator() |
| void | generateEpisode(Result output) |
| void | generateSchema(SchemaOutputResolver outputResolver) |
| JaxBeanInfo | getBeanInfo(Object o)
Gets the JaxBeanInfo object that can handle
the given JAXB-bound object.
|
| JaxBeanInfo | getBeanInfo(Object o, boolean fatal)
Gets the JaxBeanInfo object that can handle
the given JAXB-bound object.
|
| <T> JaxBeanInfo<T> | getBeanInfo(Class<T> clazz)
Gets the JaxBeanInfo object that can handle
the given JAXB-bound class.
|
| <T> JaxBeanInfo<T> | getBeanInfo(Class<T> clazz, boolean fatal)
Gets the JaxBeanInfo object that can handle
the given JAXB-bound class.
|
| String | getBuildId() |
| ElementBeanInfoImpl | getElement(Class scope, QName name) |
| QName | getElementName(Object o) |
| QName | getElementName(Class o) |
| RawAccessor | getElementPropertyAccessor(Class wrapperBean, String nsUri, String localName) |
| JaxBeanInfo | getGlobalType(QName name)
Gets the JaxBeanInfo for the given named XML Schema type.
|
| List<String> | getKnownNamespaceURIs() |
| String | getNearestTypeName(QName name)
Finds a type name that this context recognizes which is
"closest" to the given type name.
|
| int | getNumberOfAttributeNames() |
| int | getNumberOfElementNames() |
| int | getNumberOfLocalNames() |
| protected JaxBeanInfo | getOrCreate(RuntimeEnumLeafInfo eli) |
| protected ClassBeanInfoImpl | getOrCreate(RuntimeClassInfo ci) |
| protected JaxBeanInfo | getOrCreate(RuntimeArrayInfo ai) |
| JaxBeanInfo | getOrCreate(RuntimeTypeInfo e) |
| RuntimeTypeInfoSet | getRuntimeTypeInfoSet() |
| RuntimeTypeInfoSet | getTypeInfoSet()
Creates a RuntimeTypeInfoSet. |
| QName | getTypeName(TypeReference tr) |
| Encoded[] | getUTF8NameTable() |
| Set<QName> | getValidRootNames()
Returns the set of valid root tag names.
|
| Set<XmlNs> | getXmlNsSet()
Returns declared XmlNs annotations (from package-level annotation XmlSchema
|
| String | getXMIMEContentType(Object o)
Gets the value of the xmime:contentType attribute on the given object, or null
if for some reason it couldn't be found, including any error. |
| boolean | hasSwaRef()
True if this JAXBContext has XmlAttachmentRef. |
| Loader | selectRootLoader(UnmarshallingContext.State state, TagName tag)
Based on the tag name, determine what object to unmarshal,
and then set a new object and its loader to the current unmarshaller state.
|
| String | toString() |
See Also: TREAT_EVERYTHING_NILLABLE
This map is only used while the JAXBContextImpl is built and set to null to avoid keeping references too long.
Since: 2.0.4
This method traverses the base classes of the given object.
Returns: null if c isn't a JAXB-bound class and fatal==false.
Parameters: fatal if true, the failure to look up will throw an exception. Otherwise it will just return null.
This method doesn't look for base classes.
Returns: null if c isn't a JAXB-bound class and fatal==false.
Parameters: fatal if true, the failure to look up will throw an exception. Otherwise it will just return null.
Returns: null if the type name is not recognized. For schema languages other than XML Schema, this method always returns null.
This method is used for error recovery.
Returns: set of all present XmlNs annotations
Returns: null if the given name pair is not recognized.