org.beanmaker
Class Bean

java.lang.Object
  |
  +--org.beanmaker.Bean

public class Bean
extends java.lang.Object

Bean is the class that contains the informations of xml file. These informations will pass (through getXXX methods) to org.beanmaker.BeanCreator class. It will provide to create the JavaBean.
The informatons are the following:
  

  • package identifies the package of JavaBean
  • attributes identifies the attributes of JavaBean (required)
  • beanName identifies the JavaBean's name(required)
  • interfaces identifies the interfaces that the JavaBean'll implement
  • import identifies the imports (es. import java.sql.*)
  • superclass identifies the superclasse that the JavaBean'll extend
  • types identifies the tpyes of the JavaBeans's attributes, it can be a  reference to another object(required).

    Version:
    1.2 11 Jan 2002
    Author:
    Martone Giovanni giovannimartone@hotmail.com
    See Also:
    BeanCreator

    Field Summary
    static java.lang.String CLASS_NAME
              Identifies the class name.
     
    Constructor Summary
    Bean()
              Constructs the Bean object.
     
    Method Summary
     java.util.ArrayList getAttributes()
              Return the attributes
     java.lang.String getBeanName()
              Return the name of the JavaBean
     java.util.ArrayList getImports()
              Return the imports, the size of ArrayList is 0 if the imports are not specified
     java.util.ArrayList getInterfaces()
              Return the interfaces that the JavaBean'll implement, the size of ArrayList is 0 if the interfaces are not specified
     java.lang.String getPackage()
              Return the package of the JavaBean, String can be void if the package isn't specified.
     java.lang.String getSuperclass()
              Return the name of superclass, the size of ArrayList is 0 if the interfaces aren't specified
     java.util.ArrayList getTypes()
              Return the types of attributes
     void setAttributes(java.util.ArrayList attributes)
              Sets the value of the attributes specified in attributes
     void setBeanName(java.lang.String beanName)
              Sets the value of the name of JavaBean specified in beanName
     void setImports(java.util.ArrayList imports)
              Sets the value of the imports specified in imports
     void setInterfaces(java.util.ArrayList interfaces)
              Sets the value of the interfaces specified in interfaces
     void setPackage(java.lang.String newPackage)
              Sets the value of the package specified in beanName
     void setSuperclass(java.lang.String superclass)
              Sets the value of the superclass that the JavaBean'll extend specified in superclass
     void setTypes(java.util.ArrayList types)
              Sets the value of the types of the attributes specified in types
     java.lang.String toString()
              Return the String represented by this object
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
     

    Field Detail

    CLASS_NAME

    public static final java.lang.String CLASS_NAME
    Identifies the class name.

    See Also:
    Constant Field Values
    Constructor Detail

    Bean

    public Bean()
    Constructs the Bean object.

    Method Detail

    setAttributes

    public void setAttributes(java.util.ArrayList attributes)
    Sets the value of the attributes specified in attributes

    Parameters:
    attributes - ArrayList that contains the attributes.

    getAttributes

    public java.util.ArrayList getAttributes()
    Return the attributes

    Returns:
    the attrbiutes of the JavaBean

    setBeanName

    public void setBeanName(java.lang.String beanName)
    Sets the value of the name of JavaBean specified in beanName

    Parameters:
    beanName - String that contains the name of JavaBean.

    getBeanName

    public java.lang.String getBeanName()
    Return the name of the JavaBean

    Returns:
    the name of the JavaBean

    setImports

    public void setImports(java.util.ArrayList imports)
    Sets the value of the imports specified in imports

    Parameters:
    imports - ArrayList that contains the imports.

    getImports

    public java.util.ArrayList getImports()
    Return the imports, the size of ArrayList is 0 if the imports are not specified

    Returns:
    the imports of the JavaBean

    setInterfaces

    public void setInterfaces(java.util.ArrayList interfaces)
    Sets the value of the interfaces specified in interfaces

    Parameters:
    interfaces - ArrayList that contains the interfaces.

    getInterfaces

    public java.util.ArrayList getInterfaces()
    Return the interfaces that the JavaBean'll implement, the size of ArrayList is 0 if the interfaces are not specified

    Returns:
    the interfaces of the JavaBean

    setPackage

    public void setPackage(java.lang.String newPackage)
    Sets the value of the package specified in beanName


    getPackage

    public java.lang.String getPackage()
    Return the package of the JavaBean, String can be void if the package isn't specified.

    Returns:
    the package of the JavaBean

    setSuperclass

    public void setSuperclass(java.lang.String superclass)
    Sets the value of the superclass that the JavaBean'll extend specified in superclass

    Parameters:
    superclass - String that contains the superclass

    getSuperclass

    public java.lang.String getSuperclass()
    Return the name of superclass, the size of ArrayList is 0 if the interfaces aren't specified

    Returns:
    the attrbiutes of the JavaBean

    setTypes

    public void setTypes(java.util.ArrayList types)
    Sets the value of the types of the attributes specified in types

    Parameters:
    types - ArrayList that contains the types of the attributes.

    getTypes

    public java.util.ArrayList getTypes()
    Return the types of attributes

    Returns:
    the types of attributes of the JavaBean

    toString

    public java.lang.String toString()
    Return the String represented by this object

    Overrides:
    toString in class java.lang.Object
    Returns:
    String


    Copyright © 2002 Giovanni Martone.