public class DynamicJAXBContext extends JAXBContext
A specialized JAXBContext for marshalling and unmarshalling DynamicEntities.
DynamicJAXBContext also provides methods to:
New instances of DynamicJAXBContext must be created with DynamicJAXBContextFactory.
JAXBContext
,
DynamicJAXBContextFactory
,
DynamicEntity
,
DynamicType
JAXBContext.JAXBContextInput, JAXBContext.JAXBContextState
contextInput, contextState, DEFAULT_VALIDATION_EVENT_HANDLER
JAXB_CONTEXT_FACTORY
Modifier and Type | Method and Description |
---|---|
DynamicClassLoader |
getDynamicClassLoader() |
DynamicType |
getDynamicType(java.lang.String javaName)
Obtain a reference to the DynamicType object for a given Java name.
|
java.lang.Object |
getEnumConstant(java.lang.String enumName,
java.lang.String constantName)
Returns the constant named constantName from the enum class specified by enumName.
|
DynamicEntity |
newDynamicEntity(DynamicType dynamicType)
Create a new instance of DynamicEntity for a given DynamicType.
|
DynamicEntity |
newDynamicEntity(java.lang.String javaName)
Create a new instance of DynamicEntity for a given Java name.
|
applyORMMetadata, createBinder, createBinder, createByQualifiedName, createByXPath, createJAXBElement, createJAXBElementFromXMLRoot, createJAXBIntrospector, createMarshaller, createObjectGraph, createObjectGraph, createUnmarshaller, createValidator, generateJsonSchema, generateSchema, generateSchema, getArrayClassesToGeneratedClasses, getBeanValidationHelper, getClassToGeneratedClasses, getCollectionClassesToGeneratedClasses, getQNamesToDeclaredClasses, getTypeMappingInfoToSchemaType, getTypeToSchemaType, getValueByXPath, getXMLContext, getXMLInputFactory, hasSwaRef, initTypeToSchemaType, refreshMetadata, setClassToGeneratedClasses, setQNamesToDeclaredClasses, setQNameToGeneratedClasses, setValueByXPath, setXMLContext
newInstance, newInstance, newInstance, newInstance, newInstance
public DynamicClassLoader getDynamicClassLoader()
public DynamicType getDynamicType(java.lang.String javaName)
javaName
- A Java class name, used to look up its DynamicType.public DynamicEntity newDynamicEntity(java.lang.String javaName) throws java.lang.IllegalArgumentException
javaName
- The Java class name to create a new DynamicEntity for.java.lang.IllegalArgumentException
public DynamicEntity newDynamicEntity(DynamicType dynamicType)
dynamicType
- The DynamicType to create a new DynamicEntity for.public java.lang.Object getEnumConstant(java.lang.String enumName, java.lang.String constantName) throws java.lang.ClassNotFoundException, JAXBException
enumName
- Java class name of an enum.constantName
- Name of the constant to get from the specified enum.java.lang.ClassNotFoundException
JAXBException