| java.lang.Object org.ow2.easybeans.xmlconfig.XMLConfiguration
XMLConfiguration | public class XMLConfiguration (Code) | | XML configuration class that configure a given object with an xml
configuration file.
Additional information will be searched on the namespace with the resource named easybeans-mapping.xml.
author: Florent Benoit |
Constructor Summary | |
public | XMLConfiguration(URL xmlConfigurationURL) Build an xml configuration with the given xml configuration file. |
XMLConfiguration | public XMLConfiguration(URL xmlConfigurationURL)(Code) | | Build an xml configuration with the given xml configuration file.
Parameters: xmlConfigurationURL - the given xml configuration file |
configure | public void configure(Object object, Element element, ClassMapping parentClassMapping) throws XMLConfigurationException(Code) | | Configure the given object by looking at the element (of the
configuration).
Parameters: object - the given object to configure. Parameters: element - the element that contains configuration. Parameters: parentClassMapping - the parent class mapping throws: XMLConfigurationException - if configuration fails |
isElementMapping | public boolean isElementMapping(String name, ClassMapping classMapping)(Code) | | Is that the given name should be considered as an XML element (and read the value of this element).
Parameters: name - the given name Parameters: classMapping - the mapping used to get the info true if the name should be read from the XML element. |
isListElement | public boolean isListElement(String name, ClassMapping classMapping)(Code) | | Is that the given name should be used with a list.
Parameters: name - the given name Parameters: classMapping - the mapping used to get the info true if the name should be used as a list. |
|
|