toolbox.beangen
Class BeanDefinition

Package class diagram package BeanDefinition
java.lang.Object
  extended by toolbox.beangen.BeanDefinition

public class BeanDefinition
extends java.lang.Object

Parses the Bean Definition XML file.


Constructor Summary
BeanDefinition(java.lang.String beanDef)
          Construct a new BeanDefinition with the location of the Bean Definition XML file.
 
Method Summary
 java.lang.String getBeanComment()
          Return a String containing a class level comment that must be included in the generated bean.
 java.util.List getBeanImports()
          Return a List of imports that must be included in the bean that is defined by this definition.
 java.util.Map getBeanMappings()
          Return a Map containing the mappings between the bean property names and and the keys of the internal Map used to store property values.
 java.lang.String getBeanName()
          Return the name of the bean that this definition defines.
 java.lang.String getBeanPackage()
          Return the package name of the bean that this definition defines.
 java.util.List getBeanProperties()
          Return a List containing the properties of the bean that is defined by this definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanDefinition

public BeanDefinition(java.lang.String beanDef)
               throws BeanException
Construct a new BeanDefinition with the location of the Bean Definition XML file.

Parameters:
beanDef - Location of the Bean Definition XML file.
Throws:
BeanException
Method Detail

getBeanName

public java.lang.String getBeanName()
Return the name of the bean that this definition defines.

Returns:
String containing the bean name.

getBeanPackage

public java.lang.String getBeanPackage()
Return the package name of the bean that this definition defines.

Returns:
String containing the package name of the bean.

getBeanImports

public java.util.List getBeanImports()
Return a List of imports that must be included in the bean that is defined by this definition.

Returns:
List containing imports that must be included in the bean.

getBeanComment

public java.lang.String getBeanComment()
Return a String containing a class level comment that must be included in the generated bean.

Returns:
String containing a comment.

getBeanProperties

public java.util.List getBeanProperties()
Return a List containing the properties of the bean that is defined by this definition.

Returns:
List containing the properties of the bean.

getBeanMappings

public java.util.Map getBeanMappings()
Return a Map containing the mappings between the bean property names and and the keys of the internal Map used to store property values.

Returns:
Map containing property mappings.