Class XMLContext
- java.lang.Object
-
- org.hibernate.cfg.annotations.reflection.XMLContext
-
- All Implemented Interfaces:
Serializable
public class XMLContext extends Object implements Serializable
A helper for consuming orm.xml mappings.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
XMLContext.Default
-
Constructor Summary
Constructors Constructor Description XMLContext(BootstrapContext bootstrapContext)
XMLContext(ClassLoaderAccess classLoaderAccess)
Deprecated.UseXMLContext(BootstrapContext)
instead.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
addDocument(org.dom4j.Document doc)
void
applyDiscoveredAttributeConverters(AttributeConverterDefinitionCollector collector)
static String
buildSafeClassName(String className, String defaultPackageName)
static String
buildSafeClassName(String className, XMLContext.Default defaults)
List<org.dom4j.Element>
getAllDocuments()
XMLContext.Default
getDefault(String className)
List<String>
getDefaultEntityListeners()
org.dom4j.Element
getXMLTree(String className)
boolean
hasContext()
-
-
-
Constructor Detail
-
XMLContext
@Deprecated public XMLContext(ClassLoaderAccess classLoaderAccess)
Deprecated.UseXMLContext(BootstrapContext)
instead.
-
XMLContext
public XMLContext(BootstrapContext bootstrapContext)
-
-
Method Detail
-
addDocument
public List<String> addDocument(org.dom4j.Document doc)
- Parameters:
doc
- The xml document to add- Returns:
- Add a xml document to this context and return the list of added class names.
-
buildSafeClassName
public static String buildSafeClassName(String className, String defaultPackageName)
-
buildSafeClassName
public static String buildSafeClassName(String className, XMLContext.Default defaults)
-
getDefault
public XMLContext.Default getDefault(String className)
-
getXMLTree
public org.dom4j.Element getXMLTree(String className)
-
getAllDocuments
public List<org.dom4j.Element> getAllDocuments()
-
hasContext
public boolean hasContext()
-
applyDiscoveredAttributeConverters
public void applyDiscoveredAttributeConverters(AttributeConverterDefinitionCollector collector)
-
-