org.biomage.tools.generate_classes
Class CreateFile.AttrInformation

java.lang.Object
  extended by org.biomage.tools.generate_classes.CreateFile.AttrInformation
Direct Known Subclasses:
CreateClassFile.DataTypeAttrInformation, CreateClassFile.MethodInformation, CreateClassFile.MethodInformation.ParamInfo, CreateFile.AssociationAttrInformation
Enclosing class:
CreateFile

public abstract class CreateFile.AttrInformation
extends java.lang.Object

Description: Inner class to hold attribute information. Checks to see if the data type is an enum and adjusts the information accordingly.


Constructor Summary
protected CreateFile.AttrInformation(java.lang.String name, java.lang.String scope, java.lang.String datatype, java.lang.String comment)
          Description: C'tor for class.
 
Method Summary
 java.lang.String getComment()
          Description: Get method for comment.
 java.lang.String getDatatype()
          Description: Get method for datatype.
 java.util.Vector getEnumValues()
          Description: Get method for whether the datatype is an enumeration.
 java.lang.String getName()
          Description: Get method for name.
 java.lang.String getScope()
          Description: Get method for scope.
protected  void initialize(java.lang.String name, java.lang.String scope, java.lang.String datatype, java.lang.String comment)
          Description: C'tor for class.
 boolean isEnum()
          Description: Get method for whether the datatype is an enumeration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateFile.AttrInformation

protected CreateFile.AttrInformation(java.lang.String name,
                                     java.lang.String scope,
                                     java.lang.String datatype,
                                     java.lang.String comment)
                              throws java.lang.Exception
Description: C'tor for class.

Parameters:
name: - name of the attribute.
scope: - visibility of the attribute.
datatype: - datatype or enumeration values.
comment: - optional comment.

Throws:
java.lang.Exception
Method Detail

initialize

protected void initialize(java.lang.String name,
                          java.lang.String scope,
                          java.lang.String datatype,
                          java.lang.String comment)
                   throws java.lang.Exception
Description: C'tor for class.

Parameters:
name: - name of the attribute.
scope: - visibility of the attribute.
datatype: - datatype or enumeration values.
comment: - optional comment.

Throws:
java.lang.Exception

getName

public java.lang.String getName()
                         throws java.lang.Exception
Description: Get method for name.

Returns:
name.

Throws:
java.lang.Exception

getScope

public java.lang.String getScope()
                          throws java.lang.Exception
Description: Get method for scope.

Returns:
scope.

Throws:
java.lang.Exception

getDatatype

public java.lang.String getDatatype()
                             throws java.lang.Exception
Description: Get method for datatype.

Returns:
datatype.

Throws:
java.lang.Exception

getComment

public java.lang.String getComment()
                            throws java.lang.Exception
Description: Get method for comment.

Returns:
comment.

Throws:
java.lang.Exception

isEnum

public boolean isEnum()
               throws java.lang.Exception
Description: Get method for whether the datatype is an enumeration.

Returns:
true if the datype is an enumeration, false otherwise.

Throws:
java.lang.Exception

getEnumValues

public java.util.Vector getEnumValues()
                               throws java.lang.Exception
Description: Get method for whether the datatype is an enumeration.

Returns:
true if the datype is an enumeration, false otherwise.

Throws:
java.lang.Exception