|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.xml.bind.JAXBContext
org.apache.ws.jaxme.impl.JAXBContextImpl
JaxMe's implementation of a JAXBContext.
Field Summary | |
static java.lang.String |
CONFIGURATION_URI
|
Fields inherited from class javax.xml.bind.JAXBContext |
JAXB_CONTEXT_FACTORY |
Constructor Summary | |
protected |
JAXBContextImpl()
|
Method Summary | |
void |
addManager(JMManager pManager)
|
Configuration |
createConfiguration(org.xml.sax.Attributes pAttributes)
|
static JAXBContextImpl |
createContext()
|
static JAXBContextImpl |
createContext(java.lang.String pPackageNames,
java.lang.ClassLoader pClassLoader)
|
Marshaller |
createMarshaller()
Creates a new instance of Marshaller . |
Unmarshaller |
createUnmarshaller()
Creates a new instance of Unmarshaller . |
Validator |
createValidator()
Creates a new instance of Validator . |
java.lang.ClassLoader |
getClassLoader()
Returns the ClassLoader to use. |
java.lang.Object |
getElement(java.lang.Class pElementInterface)
Returns a new instance of a class implementing the element interface pElementInterface . |
JMHandler |
getJMHandler(java.lang.Class pElementInterface)
Returns a new handler instance for pQName . |
JMHandler |
getJMHandler(QName pQName)
Returns a new handler instance for pQName . |
JMMarshaller |
getJMMarshaller()
Returns a new JMMarshaller. |
java.lang.Class |
getJMMarshallerClass()
Returns the JMMarshaller class to use. |
PM |
getJMPM(java.lang.Class pElementInterface)
Returns a new instance of JMPM. |
PM |
getJMPM(QName pQName)
Returns a new instance of JMPM. |
JMUnmarshaller |
getJMUnmarshaller()
Returns a new JMUnmarshaller. |
java.lang.Class |
getJMUnmarshallerClass()
Sets the JMUnmarshaller class to use. |
JMValidator |
getJMValidator()
Returns a new JMValidator. |
java.lang.Class |
getJMValidatorClass()
Returns the JMValidator class to use. |
JMXmlSerializer |
getJMXmlSerializer(java.lang.Class pElementInterface)
Returns a new serializer instance for pElementInterface . |
JMXmlSerializer |
getJMXmlSerializer(QName pQName)
Returns a new serializer instance for pQName . |
JMManager |
getManager(java.lang.Class pElementInterface)
Returns a Manager for the given element interface. |
JMManager |
getManager(QName pQName)
Returns a Manager for the given QName. |
protected JMManager |
getManagerByInterface(java.lang.Class pElementInterface)
|
protected JMManager |
getManagerByQName(QName pQName)
|
java.lang.String |
getPackageNames()
Returns the package names managed by this context. |
protected void |
init()
Initializes the context by loading the configuration or the configurations from the given classpath. |
protected void |
setClassLoader(java.lang.ClassLoader pClassLoader)
Sets the ClassLoader to use. |
protected void |
setJMMarshallerClass(java.lang.Class pClass)
Sets the JMMarshaller class to use. |
protected void |
setJMUnmarshallerClass(java.lang.Class pClass)
Sets the JMUnmarshaller class to use. |
protected void |
setJMValidatorClass(java.lang.Class pClass)
Sets the JMValidator class to use. |
protected void |
setPackageNames(java.lang.String pPackageNames)
Sets the package names managed by this context. |
Methods inherited from class javax.xml.bind.JAXBContext |
newInstance, newInstance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CONFIGURATION_URI
Constructor Detail |
protected JAXBContextImpl()
Method Detail |
protected void setClassLoader(java.lang.ClassLoader pClassLoader)
Sets the ClassLoader to use.
public java.lang.ClassLoader getClassLoader()
Returns the ClassLoader to use.
protected void setPackageNames(java.lang.String pPackageNames)
Sets the package names managed by this context.
public java.lang.String getPackageNames()
Returns the package names managed by this context.
protected void setJMMarshallerClass(java.lang.Class pClass)
Sets the JMMarshaller class to use.
public java.lang.Class getJMMarshallerClass()
Returns the JMMarshaller class to use.
protected void setJMUnmarshallerClass(java.lang.Class pClass)
Sets the JMUnmarshaller class to use.
public java.lang.Class getJMUnmarshallerClass()
Sets the JMUnmarshaller class to use.
protected void setJMValidatorClass(java.lang.Class pClass)
Sets the JMValidator class to use.
public java.lang.Class getJMValidatorClass()
Returns the JMValidator class to use.
public Marshaller createMarshaller() throws JAXBException
JAXBContext
Creates a new instance of Marshaller
. The
Marshaller
can be used
to convert JAXB objects into XML data.
Note: Marshallers are reusable, but not reentrant (thread safe).
createMarshaller
in class JAXBContext
JAXBException
public Unmarshaller createUnmarshaller() throws JAXBException
JAXBContext
Creates a new instance of Unmarshaller
. The
Unmarshaller
can be used
to convert XML data into JAXB objects.
Note: Unmarshallers are reusable, but not reentrant (thread safe).
createUnmarshaller
in class JAXBContext
JAXBException
public Validator createValidator() throws JAXBException
JAXBContext
Creates a new instance of Validator
. The
Validator
can be used to validate JAXB objects.
createValidator
in class JAXBContext
JAXBException
protected JMManager getManagerByQName(QName pQName)
protected JMManager getManagerByInterface(java.lang.Class pElementInterface)
public JMManager getManager(QName pQName) throws JAXBException
Returns a Manager for the given QName.
ConfiguratorException
- No Manager is registered for the
given QName.
JAXBException
public JMManager getManager(java.lang.Class pElementInterface) throws JAXBException
Returns a Manager for the given element interface.
ConfiguratorException
- No Manager is registered for the
given QName.
JAXBException
public java.lang.Object getElement(java.lang.Class pElementInterface) throws JAXBException
Returns a new instance of a class implementing the
element interface pElementInterface
.
ConfiguratorException
- A Manager for pQName
was not declared or creating the instance caused an exception.
JAXBException
public JMHandler getJMHandler(QName pQName) throws UnmarshalException
Returns a new handler instance for pQName
.
ConfiguratorException
- A Manager for pQName
was not declared or creating the instance caused an exception.
UnmarshalException
public JMHandler getJMHandler(java.lang.Class pElementInterface) throws UnmarshalException
Returns a new handler instance for pQName
.
ConfiguratorException
- A Manager for pQName
was not declared or creating the instance caused an exception.
UnmarshalException
public JMXmlSerializer getJMXmlSerializer(java.lang.Class pElementInterface) throws MarshalException
Returns a new serializer instance for pElementInterface
.
ConfiguratorException
- A Manager for pElementInterface
was not declared or creating the instance caused an exception.
MarshalException
public JMXmlSerializer getJMXmlSerializer(QName pQName) throws MarshalException
Returns a new serializer instance for pQName
.
ConfiguratorException
- A Manager for pQName
was not declared or creating the instance caused an exception.
MarshalException
public JMMarshaller getJMMarshaller() throws MarshalException
Returns a new JMMarshaller.
MarshalException
public JMUnmarshaller getJMUnmarshaller() throws UnmarshalException
Returns a new JMUnmarshaller.
UnmarshalException
public JMValidator getJMValidator() throws ValidationException
Returns a new JMValidator.
ValidationException
public PM getJMPM(java.lang.Class pElementInterface) throws PMException
Returns a new instance of JMPM.
PMException
public PM getJMPM(QName pQName) throws PMException
Returns a new instance of JMPM.
PMException
protected void init() throws JAXBException
Initializes the context by loading the configuration or the configurations from the given classpath.
JAXBException
public static JAXBContextImpl createContext() throws JAXBException
JAXBException
public Configuration createConfiguration(org.xml.sax.Attributes pAttributes) throws JAXBException
JAXBException
public static JAXBContextImpl createContext(java.lang.String pPackageNames, java.lang.ClassLoader pClassLoader) throws JAXBException
JAXBException
public void addManager(JMManager pManager) throws JAXBException
JAXBException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |