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