Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.xml.bind.JAXBContext
org.apache.ws.jaxme.impl.JAXBContextImpl
public class JAXBContextImpl
extends JAXBContext
Field Summary | |
static String |
|
Fields inherited from class javax.xml.bind.JAXBContext | |
JAXB_CONTEXT_FACTORY |
Constructor Summary | |
Method Summary | |
void |
|
Configuration |
|
static JAXBContextImpl |
|
static JAXBContextImpl |
|
Marshaller | |
Unmarshaller | |
Validator | |
ClassLoader |
|
JMMarshaller |
|
Class |
|
PM |
|
PM | |
JMUnmarshaller |
|
Class |
|
JMValidator |
|
Class |
|
JMManager |
|
JMManager |
|
protected JMManager |
|
protected JMManager |
|
JMManager |
|
String |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
Methods inherited from class javax.xml.bind.JAXBContext | |
createMarshaller , createUnmarshaller , createValidator , newInstance , newInstance |
public static final String CONFIGURATION_URI
The namespace of JaxMe's configuration files.
public void addManager(JMManager pManager) throws JAXBException
Invoked from the SAX handler when reading the config file for adding another instance of JMManager.
public Configuration createConfiguration(Attributes pAttributes) throws JAXBException
Invoked from the SAX handler when loading the config file.
public static JAXBContextImpl createContext() throws JAXBException
Creates a new instance ofJAXBContext
. Invoked implicitly byJAXBContext.newInstance(String)
.
public static JAXBContextImpl createContext(String pPackageNames, ClassLoader pClassLoader) throws JAXBException
Creates a new instance ofJAXBContext
. Invoked implicitly byJAXBContext.newInstance(String,ClassLoader)
public Marshaller createMarshaller() throws JAXBException
- Overrides:
- createMarshaller in interface JAXBContext
public Unmarshaller createUnmarshaller() throws JAXBException
- Overrides:
- createUnmarshaller in interface JAXBContext
public Validator createValidator() throws JAXBException
- Overrides:
- createValidator in interface JAXBContext
public ClassLoader getClassLoader()
Returns the ClassLoader to use.
public JMMarshaller getJMMarshaller() throws MarshalException
Returns a new JMMarshaller.
public Class getJMMarshallerClass()
Returns the JMMarshaller class to use.
public JMUnmarshaller getJMUnmarshaller() throws UnmarshalException
Returns a new JMUnmarshaller.
public Class getJMUnmarshallerClass()
Sets the JMUnmarshaller class to use.
public JMValidator getJMValidator() throws ValidationException
Returns a new JMValidator.
public Class getJMValidatorClass()
Returns the JMValidator class to use.
public JMManager getManager(Class pElementInterface) throws JAXBException
Returns a Manager for the given element interface. Same method thangetManager(Class)
, except that it throws aJAXBException
.
- Throws:
JAXBException
- No Manager is registered for the given QName.
- See Also:
getManagerS(Class)
public JMManager getManager(QName pQName) throws JAXBException
Returns a Manager for the given QName.
- Throws:
JAXBException
- No Manager is registered for the given QName.
public JMManager getManagerS(Class pElementInterface) throws SAXException
Returns a Manager for the given element interface. Same method thangetManager(Class)
, except that it throws aSAXException
.
- See Also:
getManager(Class)
public String getPackageNames()
Returns the package names managed by this context.
protected void init() throws JAXBException
Initializes the context by loading the configuration or the configurations from the given classpath.
protected void setClassLoader(ClassLoader pClassLoader)
Sets the ClassLoader to use.
protected void setJMMarshallerClass(Class pClass)
Sets the JMMarshaller class to use.
protected void setJMUnmarshallerClass(Class pClass)
Sets the JMUnmarshaller class to use.
protected void setJMValidatorClass(Class pClass)
Sets the JMValidator class to use.
protected void setPackageNames(String pPackageNames)
Sets the package names managed by this context.