|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.xml.bind.JAXBContext org.eclipse.persistence.jaxb.JAXBContext
public class JAXBContext
INTERNAL:
Purpose:Provide a TopLink implementation of the JAXBContext interface.
Responsibilities:
This is the TopLink JAXB 2.0 implementation of javax.xml.bind.JAXBContext. This class is created by the JAXBContextFactory and is used to create Marshallers, Unmarshallers, Validators, Binders and Introspectors. A JAXBContext can also be used to create Schema Files.
JAXBContext
,
JAXBMarshaller
,
JAXBUnmarshaller
,
JAXBBinder
,
JAXBIntrospector
Field Summary |
---|
Fields inherited from class javax.xml.bind.JAXBContext |
---|
JAXB_CONTEXT_FACTORY |
Constructor Summary | |
---|---|
JAXBContext(XMLContext context)
|
|
JAXBContext(XMLContext context,
Generator generator,
java.lang.reflect.Type[] boundTypes)
|
Method Summary | |
---|---|
void |
applyORMMetadata(org.eclipse.persistence.internal.sessions.AbstractSession ormSession)
ADVANCED: Adjust the OXM metadata to take into accound ORM mapping metadata, |
Binder |
createBinder()
Creates a Binder for W3C DOM. |
Binder |
createBinder(java.lang.Class nodeClass)
Creates a Binder object that can be used for associative/in-place unmarshalling/marshalling. |
JAXBIntrospector |
createJAXBIntrospector()
Creates a JAXBIntrospector object that can be used to introspect JAXB objects. |
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()
Validator has been made optional and deprecated in JAXB 2.0. |
void |
generateSchema(SchemaOutputResolver outputResolver)
Generates the schema documents for this context. |
void |
generateSchema(SchemaOutputResolver outputResolver,
java.util.Map<javax.xml.namespace.QName,java.lang.reflect.Type> additonalGlobalElements)
|
java.util.Map<java.lang.String,java.lang.Class> |
getArrayClassesToGeneratedClasses()
|
java.util.HashMap<java.lang.String,java.lang.Class> |
getClassToGeneratedClasses()
|
java.util.Map<java.lang.reflect.Type,java.lang.Class> |
getCollectionClassesToGeneratedClasses()
|
java.util.HashMap<javax.xml.namespace.QName,java.lang.Class> |
getQNamesToDeclaredClasses()
|
java.util.HashMap<java.lang.reflect.Type,javax.xml.namespace.QName> |
getTypeToSchemaType()
|
XMLContext |
getXMLContext()
|
void |
initTypeToSchemaType()
|
void |
setClassToGeneratedClasses(java.util.HashMap<java.lang.String,java.lang.Class> classToClass)
|
void |
setQNamesToDeclaredClasses(java.util.HashMap<javax.xml.namespace.QName,java.lang.Class> nameToDeclaredClasses)
|
void |
setQNameToGeneratedClasses(java.util.HashMap<javax.xml.namespace.QName,java.lang.Class> qNameToClass)
|
Methods inherited from class javax.xml.bind.JAXBContext |
---|
newInstance, newInstance, newInstance, newInstance, newInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JAXBContext(XMLContext context)
public JAXBContext(XMLContext context, Generator generator, java.lang.reflect.Type[] boundTypes)
Method Detail |
---|
public XMLContext getXMLContext()
public void generateSchema(SchemaOutputResolver outputResolver)
JAXBContext
generateSchema
in class JAXBContext
outputResolver
- this object controls the output to which schemas
will be sent.public void generateSchema(SchemaOutputResolver outputResolver, java.util.Map<javax.xml.namespace.QName,java.lang.reflect.Type> additonalGlobalElements)
public Marshaller createMarshaller()
JAXBContext
createMarshaller
in class JAXBContext
public Unmarshaller createUnmarshaller()
JAXBContext
createUnmarshaller
in class JAXBContext
public Validator createValidator()
JAXBContext
Validator
has been made optional and deprecated in JAXB 2.0. Please
refer to the javadoc for Validator
for more detail.
Create a Validator object that can be used to validate a java content tree against its source schema.
createValidator
in class JAXBContext
public Binder createBinder()
JAXBContext
createBinder
in class JAXBContext
public Binder createBinder(java.lang.Class nodeClass)
JAXBContext
createBinder
in class JAXBContext
nodeClass
- select the DOM API to use by passing in its DOM Node class.
public JAXBIntrospector createJAXBIntrospector()
JAXBContext
createJAXBIntrospector
in class JAXBContext
public void setQNameToGeneratedClasses(java.util.HashMap<javax.xml.namespace.QName,java.lang.Class> qNameToClass)
public java.util.HashMap<java.lang.String,java.lang.Class> getClassToGeneratedClasses()
public void setClassToGeneratedClasses(java.util.HashMap<java.lang.String,java.lang.Class> classToClass)
public void applyORMMetadata(org.eclipse.persistence.internal.sessions.AbstractSession ormSession)
public java.util.HashMap<javax.xml.namespace.QName,java.lang.Class> getQNamesToDeclaredClasses()
public void setQNamesToDeclaredClasses(java.util.HashMap<javax.xml.namespace.QName,java.lang.Class> nameToDeclaredClasses)
public java.util.Map<java.lang.String,java.lang.Class> getArrayClassesToGeneratedClasses()
public java.util.Map<java.lang.reflect.Type,java.lang.Class> getCollectionClassesToGeneratedClasses()
public void initTypeToSchemaType()
public java.util.HashMap<java.lang.reflect.Type,javax.xml.namespace.QName> getTypeToSchemaType()
|
EclipseLink 1.2.0, build 'v20091016-r5565' API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |