com.springsource.bundlor.support.contributors
Class HibernateMappingArtefactAnalyser
java.lang.Object
com.springsource.bundlor.support.contributors.AbstractXmlDocumentArtefactAnalyser
com.springsource.bundlor.support.contributors.HibernateMappingArtefactAnalyser
- All Implemented Interfaces:
- ArtifactAnalyzer
public final class HibernateMappingArtefactAnalyser
- extends AbstractXmlDocumentArtefactAnalyser
An analyzer for a Hibernate Mapping file. Analyzes the list of package names that are found in the
class
id
generator
composite-id
discriminator
version
property
many-to-one
one-to-one
one-to-many
many-to-many
component
dynamic-component
subclass
joined-subclass
union-subclass
import
elements.
Concurrent Semantics
Threadsafe.
- Author:
- Ben Hale
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BASIC_HIBERNATE_TYPES
private static final java.util.Set<java.lang.String> BASIC_HIBERNATE_TYPES
GENERATOR_TYPES
private static final java.util.Set<java.lang.String> GENERATOR_TYPES
packageExpression
private final javax.xml.xpath.XPathExpression packageExpression
tagExpression
private final javax.xml.xpath.XPathExpression tagExpression
HibernateMappingArtefactAnalyser
public HibernateMappingArtefactAnalyser()
analyse
protected void analyse(org.w3c.dom.Document doc,
java.lang.String artefactName,
PartialManifest partialManifest)
throws java.lang.Exception
- Specified by:
analyse
in class AbstractXmlDocumentArtefactAnalyser
- Throws:
java.lang.Exception
canAnalyse
public boolean canAnalyse(java.lang.String artefactName)
- Description copied from interface:
ArtifactAnalyzer
- Can this
ArtifactAnalyzer
analyse the artefact with the supplied name.
- Returns:
true
if the artefact can be analysed; otherwise false
.
getPackagePrefix
private java.lang.String getPackagePrefix(org.w3c.dom.Document doc)