|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.xmlconfig.mapping.XMLMappingBuilder
public class XMLMappingBuilder
Allows to build the Mapping object for a set of classes.
Field Summary | |
---|---|
private static java.lang.String |
ATTRIBUTE_ELEMENT
Name of the <attribute> element. |
private static java.lang.String |
CLASS_ELEMENT
Name of the <class> element. |
private static java.lang.String |
MAPPING_NS
Namespace used for the mapping file (for validation). |
private java.net.URL |
mappingURL
URL that reference the mapping file. |
private static java.lang.String |
PACKAGE_ELEMENT
Name of the <package> element. |
private XMLMapping |
xmlMapping
The mapping used for the given namespace. |
Constructor Summary | |
---|---|
XMLMappingBuilder(java.net.URL mappingURL)
Builds a new mapping builder. |
Method Summary | |
---|---|
private void |
addClassMapping(org.w3c.dom.NodeList classList,
java.lang.String packageName,
boolean packageParent)
Add the mapping for the given list of class elements. |
void |
build()
Build the XMLMapping object by analyzing the mapping file. |
XMLMapping |
getXmlMapping()
Gets the XML mapping object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String MAPPING_NS
private static final java.lang.String PACKAGE_ELEMENT
private static final java.lang.String CLASS_ELEMENT
private static final java.lang.String ATTRIBUTE_ELEMENT
private java.net.URL mappingURL
private XMLMapping xmlMapping
Constructor Detail |
---|
public XMLMappingBuilder(java.net.URL mappingURL)
mappingURL
- the given url that reference the mapping file.Method Detail |
---|
public void build() throws XMLConfigurationException
XMLConfigurationException
- if there is a failure when analyzing
the XML file.private void addClassMapping(org.w3c.dom.NodeList classList, java.lang.String packageName, boolean packageParent)
classList
- the list of elementspackageName
- the name of the package to use as prefix.packageParent
- if true, package as parent node is accepted, else it
is denied.public XMLMapping getXmlMapping()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |