org.apache.cxf.jaxb
Class JAXBDataBinding
java.lang.Object
org.apache.cxf.databinding.source.AbstractDataBinding
org.apache.cxf.jaxb.JAXBDataBinding
- All Implemented Interfaces:
- DataBinding
public class JAXBDataBinding
- extends AbstractDataBinding
- implements DataBinding
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCHEMA_RESOURCE
public static final java.lang.String SCHEMA_RESOURCE
- See Also:
- Constant Field Values
UNWRAP_JAXB_ELEMENT
public static final java.lang.String UNWRAP_JAXB_ELEMENT
- See Also:
- Constant Field Values
JAXBDataBinding
public JAXBDataBinding()
JAXBDataBinding
public JAXBDataBinding(boolean q)
JAXBDataBinding
public JAXBDataBinding(java.lang.Class<?>... classes)
throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
JAXBDataBinding
public JAXBDataBinding(javax.xml.bind.JAXBContext context)
getContext
public javax.xml.bind.JAXBContext getContext()
setContext
public final void setContext(javax.xml.bind.JAXBContext ctx)
createWriter
public <T> DataWriter<T> createWriter(java.lang.Class<T> c)
- Specified by:
createWriter
in interface DataBinding
getSupportedWriterFormats
public java.lang.Class<?>[] getSupportedWriterFormats()
- Specified by:
getSupportedWriterFormats
in interface DataBinding
createReader
public <T> DataReader<T> createReader(java.lang.Class<T> c)
- Specified by:
createReader
in interface DataBinding
getSupportedReaderFormats
public java.lang.Class<?>[] getSupportedReaderFormats()
- Specified by:
getSupportedReaderFormats
in interface DataBinding
initialize
public void initialize(Service aservice)
- Description copied from interface:
DataBinding
- Initialize the service info (i.e. type & element names, Schemas) with
information from the databinding.
- Specified by:
initialize
in interface DataBinding
setExtraClass
public void setExtraClass(java.lang.Class[] userExtraClass)
getExtraClass
public java.lang.Class[] getExtraClass()
createJAXBContext
public javax.xml.bind.JAXBContext createJAXBContext(java.util.Set<java.lang.Class<?>> classes)
throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
createJAXBContext
public javax.xml.bind.JAXBContext createJAXBContext(java.util.Set<java.lang.Class<?>> classes,
java.lang.String defaultNs)
throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
createJAXBContextAndSchemas
public org.apache.cxf.jaxb.JAXBDataBinding.CachedContextAndSchemas createJAXBContextAndSchemas(java.util.Set<java.lang.Class<?>> classes,
java.lang.String defaultNs)
throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
addJaxbObjectFactory
public boolean addJaxbObjectFactory(javax.xml.bind.JAXBException e1)
getContextProperties
public java.util.Map<java.lang.String,java.lang.Object> getContextProperties()
- Return a map of properties. These properties are passed to
JAXBContext.newInstance when this object creates a context.
- Returns:
- the map of JAXB context properties.
setContextProperties
public void setContextProperties(java.util.Map<java.lang.String,java.lang.Object> contextProperties)
- Set a map of JAXB context properties. These properties are passed to
JAXBContext.newInstance when this object creates a context. Note that if
you create a JAXB context elsewhere, you will not respect these
properties unless you handle it manually.
- Parameters:
contextProperties
- map of properties.
getMarshallerProperties
public java.util.Map<java.lang.String,java.lang.Object> getMarshallerProperties()
- Return a map of properties. These properties are set into the JAXB
Marshaller (via Marshaller.setProperty(...) when the marshaller is
created.
- Returns:
- the map of JAXB marshaller properties.
setMarshallerProperties
public void setMarshallerProperties(java.util.Map<java.lang.String,java.lang.Object> marshallerProperties)
- Set a map of JAXB marshaller properties. These properties are set into
the JAXB Marshaller (via Marshaller.setProperty(...) when the marshaller
is created.
- Parameters:
marshallerProperties
- map of properties.
clearCaches
public static void clearCaches()
Apache CXF