org.ow2.util.xmlconfig.mapping
Class XMLMappingBuilder

java.lang.Object
  extended by org.ow2.util.xmlconfig.mapping.XMLMappingBuilder

public class XMLMappingBuilder
extends java.lang.Object

Allows to build the Mapping object for a set of classes.

Author:
Florent Benoit

Constructor Summary
XMLMappingBuilder(java.lang.String nameSpace, java.net.URL mappingURL)
          Deprecated.  
XMLMappingBuilder(java.net.URL mappingURL)
          Builds a new mapping builder.
 
Method Summary
 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
 

Constructor Detail

XMLMappingBuilder

public XMLMappingBuilder(java.net.URL mappingURL)
Builds a new mapping builder.

Parameters:
mappingURL - the given url that reference the mapping file.

XMLMappingBuilder

@Deprecated
public XMLMappingBuilder(java.lang.String nameSpace,
                                    java.net.URL mappingURL)
Deprecated. 

Builds a new mapping builder. (only for backward compliance)

Parameters:
nameSpace - the namespace of the mapping
mappingURL - the given url that reference the mapping file.
Method Detail

build

public void build()
           throws XMLConfigurationException
Build the XMLMapping object by analyzing the mapping file.

Throws:
XMLConfigurationException - if there is a failure when analyzing the XML file.

getXmlMapping

public XMLMapping getXmlMapping()
Gets the XML mapping object.

Returns:
the mapping object between classname/alias and their mapping description.


Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.