public class JsonXMLRootProvider extends Object
| Constructor and Description |
|---|
JsonXMLRootProvider() |
| Modifier and Type | Method and Description |
|---|---|
JAXBElement<?> |
createElement(Class<?> type,
Object value)
Create root element for an
@XmlRootElement or @XmlType-annotaed type. |
QName |
getName(Class<?> type)
Calculate root element name for an
@XmlRootElement or @XmlType-annotaed type. |
protected String |
getNamespaceURI(XmlElementDecl xmlElementDecl,
XmlSchema xmlSchema) |
protected String |
getNamespaceURI(XmlRootElement xmlRootElement,
XmlSchema xmlSchema) |
protected String |
getNamespaceURI(XmlType xmlType,
XmlSchema xmlSchema) |
protected String |
getPrefix(String namespaceURI,
XmlSchema xmlSchema) |
protected Method |
getXmlElementDeclMethod(Class<?> type)
Determine
@XmlElementDecl-annotated factory method to create JAXBElement
for an @XmlType-annotated type |
protected QName |
getXmlRootElementName(Class<?> type)
Calculate root element name for an
@XmlRootElement-annotated type. |
protected QName |
getXmlTypeName(Class<?> type)
Calculate root element name for an
@XmlType-annotated type. |
protected String getNamespaceURI(XmlRootElement xmlRootElement, XmlSchema xmlSchema)
protected String getNamespaceURI(XmlElementDecl xmlElementDecl, XmlSchema xmlSchema)
protected QName getXmlRootElementName(Class<?> type)
@XmlRootElement-annotated type.type - protected QName getXmlTypeName(Class<?> type)
@XmlType-annotated type.type - protected Method getXmlElementDeclMethod(Class<?> type)
@XmlElementDecl-annotated factory method to create JAXBElement
for an @XmlType-annotated typetype - public QName getName(Class<?> type)
@XmlRootElement or @XmlType-annotaed type.type - nullpublic JAXBElement<?> createElement(Class<?> type, Object value) throws JAXBException
@XmlRootElement or @XmlType-annotaed type.type - value - null)JAXBExceptionCopyright © 2005–2019 Apache Software Foundation. All rights reserved.