public class DefaultJAXBContextImpl extends JAXBContext
JAXB_CONTEXT_FACTORY
Constructor and Description |
---|
DefaultJAXBContextImpl(GrammarInfo gi)
This constructor is used by the default no-arg constructor in the
generated JAXBContextImpl objects.
|
DefaultJAXBContextImpl(String contextPath,
ClassLoader classLoader)
This is the constructor used by javax.xml.bind.FactoryFinder which
bootstraps the RI.
|
Modifier and Type | Method and Description |
---|---|
Marshaller |
createMarshaller()
Create a
Marshaller object that can be used to convert a
java content-tree into XML data. |
Unmarshaller |
createUnmarshaller()
Create an
Unmarshaller object that can be used to convert XML
data into a java content-tree. |
Validator |
createValidator()
Create a
Validator object that can be used to validate a
java content-tree. |
com.sun.msv.grammar.Grammar |
getGrammar()
Loads a grammar object for the unmarshal-time validation.
|
GrammarInfo |
getGrammarInfo() |
Object |
getProperty(String name)
There are no required properties, so simply throw an exception.
|
Object |
newInstance(Class javaContentInterface)
Create an instance of the specified Java content interface.
|
void |
setProperty(String name,
Object value)
There are no required properties, so simply throw an exception.
|
createBinder, createBinder, createJAXBIntrospector, generateSchema, newInstance, newInstance, newInstance, newInstance, newInstance
public DefaultJAXBContextImpl(String contextPath, ClassLoader classLoader) throws JAXBException
JAXBException
public DefaultJAXBContextImpl(GrammarInfo gi)
public GrammarInfo getGrammarInfo()
public com.sun.msv.grammar.Grammar getGrammar() throws JAXBException
getGrammar is normally very expensive, so it's worth synchronizing to avoid unnecessary invocation.
JAXBException
public Marshaller createMarshaller() throws JAXBException
Marshaller
object that can be used to convert a
java content-tree into XML data.createMarshaller
in class JAXBContext
Marshaller
objectJAXBException
- if an error was encountered while creating the
Marshaller
objectpublic Unmarshaller createUnmarshaller() throws JAXBException
Unmarshaller
object that can be used to convert XML
data into a java content-tree.createUnmarshaller
in class JAXBContext
Unmarshaller
objectJAXBException
- if an error was encountered while creating the
Unmarshaller
objectpublic Validator createValidator() throws JAXBException
Validator
object that can be used to validate a
java content-tree.createValidator
in class JAXBContext
Unmarshaller
objectJAXBException
- if an error was encountered while creating the
Validator
objectpublic Object newInstance(Class javaContentInterface) throws JAXBException
javaContentInterface
- the Class objectJAXBException
public void setProperty(String name, Object value) throws PropertyException
PropertyException
public Object getProperty(String name) throws PropertyException
PropertyException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.