|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.odysseus.staxon.json.jaxb.JsonXMLRootProvider
public class JsonXMLRootProvider
Root name/element provider.
| Constructor Summary | |
|---|---|
JsonXMLRootProvider()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JsonXMLRootProvider()
| Method Detail |
|---|
protected String getNamespaceURI(XmlType xmlType,
XmlSchema xmlSchema)
protected String getNamespaceURI(XmlRootElement xmlRootElement,
XmlSchema xmlSchema)
protected String getNamespaceURI(XmlElementDecl xmlElementDecl,
XmlSchema xmlSchema)
protected String getPrefix(String namespaceURI,
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 type
type -
public QName getName(Class<?> type)
@XmlRootElement or @XmlType-annotaed type.
type -
null
public JAXBElement<?> createElement(Class<?> type,
Object value)
throws JAXBException
@XmlRootElement or @XmlType-annotaed type.
type - value -
null)
JAXBException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||