|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biomage.tools.generate_classes.CreateFile
org.biomage.tools.generate_classes.CreateInterfaceFile
public class CreateInterfaceFile
Description: Class that is responsible for generating a java file for the interface represented by the association end 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 | |
---|---|
CreateInterfaceFile(java.lang.String sInterfaceName,
org.w3c.dom.Element associationEndElement,
java.util.Map id2classElement,
java.util.Map id2packageInformation)
Description: Constructor for the interface file generator. |
Method Summary | |
---|---|
protected void |
associationInformation()
Description: Puts together the information on the interface associations. |
int |
getFileType()
Description: Returns what kind of model element this class is based on. |
static java.lang.String |
getInterfaceName(java.lang.String sRoleName)
Description: Converts a role name to an interface name. |
protected void |
headerInformation()
Description: Obtains the information to generate the information for the package and the declaration of the class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CreateInterfaceFile(java.lang.String sInterfaceName, org.w3c.dom.Element associationEndElement, java.util.Map id2classElement, java.util.Map id2packageInformation) throws java.lang.Exception
sInterfaceName:
- the interface name.associationEndElement:
- the association end element.id2classElement:
- the map from ID to class element.id2packageInformation:
- the map from ID to package information.
java.lang.Exception
Method Detail |
---|
public static java.lang.String getInterfaceName(java.lang.String sRoleName) throws java.lang.Exception
sRoleName:
- role name.
java.lang.Exception
protected void associationInformation() throws java.lang.Exception
java.lang.Exception
protected void headerInformation() throws java.lang.Exception
java.lang.Exception
public int getFileType()
getFileType
in class CreateFile
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |