org.biomage.tools.generate_classes
Class CreateMAGEFile

java.lang.Object
  extended by org.biomage.tools.generate_classes.CreateFile
      extended by org.biomage.tools.generate_classes.CreateMAGEFile

public class CreateMAGEFile
extends CreateFile

Description: Class that is resposible for generating a java file for the class represented by the class node passed into the constructor.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.biomage.tools.generate_classes.CreateFile
CreateFile.AssociationAttrInformation, CreateFile.AttrInformation, CreateFile.IdentifierAttrInformation, CreateFile.RoleInformation
 
Field Summary
 
Fields inherited from class org.biomage.tools.generate_classes.CreateFile
associationInfo, baseClassCreateFile, baseClassID, baseClassName, classDoc, className, concreteSubClassNames, dataAttrInfo, importDate, importSerializable, importVector, interfaceInfo, isAbstract, isBaseClass, isIdentifiable, isIndependent, isInterface, isReferenced, JAVA_INTERFACE, methodInfo, NEWLINE, packageDoc, packageImports, packageName, roleNames, subClassNames, typeOwned, UML_CLASS, UML_MODEL, UML_PACKAGE, visibility
 
Constructor Summary
protected CreateMAGEFile(java.util.Vector createPackageFileList, org.w3c.dom.Element packageList)
          Description: Constructor for the MAGE file generator.
 
Method Summary
protected  java.util.Vector associationAttrInformation(java.util.Vector createPackageFileList, org.w3c.dom.Element packageOrder)
          Description: Puts together the information on the class associations.
 int getFileType()
          Description: Returns what kind of model element this class is based on.
protected  void headerInformation()
          Description: Obtains the information to generate the information for the package and the declaration of the class.
 
Methods inherited from class org.biomage.tools.generate_classes.CreateFile
addAssociation, addAssociation, addAssociation, addRoleName, getAssociationInfo, getAttrInfo, getBaseClassCreateFile, getBaseClassFileName, getBaseClassID, getClassDoc, getClassFileName, getConcreteSubClassNames, getDocumentation, getImports, getInterfaceInfo, getMethodInfo, getPackageID, getPackageName, getRoleNames, getVisibility, importDate, importSerializable, importVector, isAbstract, isBaseClass, isIdentifiableClass, isIndependentClass, isReferenced, isReferenced, registerSubClassName, registerWithBaseClass, setBaseClassCreateFile, setIsIndependentClass, setVisibility, typeOwned, typeOwned
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateMAGEFile

protected CreateMAGEFile(java.util.Vector createPackageFileList,
                         org.w3c.dom.Element packageList)
                  throws java.lang.Exception
Description: Constructor for the MAGE file generator.

Parameters:
createPackageFileList: - node representing the package lists class to live in the MAGE class.
Throws:
java.lang.Exception
Method Detail

headerInformation

protected void headerInformation()
                          throws java.lang.Exception
Description: Obtains the information to generate the information for the package and the declaration of the class.

Throws:
java.lang.Exception

associationAttrInformation

protected java.util.Vector associationAttrInformation(java.util.Vector createPackageFileList,
                                                      org.w3c.dom.Element packageOrder)
                                               throws java.lang.Exception
Description: Puts together the information on the class associations.

Parameters:
createPackageFileList: - the package classes to get the association information.

Returns:
Vector of ClassAttrInformations

Throws:
java.lang.Exception

getFileType

public int getFileType()
Description: Returns what kind of model element this class is based on.

Specified by:
getFileType in class CreateFile
Returns:
returns that this represents the model itself