org.biomage.tools.generate_classes
Class CreateClassFile.DataTypeAttrInformation

java.lang.Object
  extended by org.biomage.tools.generate_classes.CreateFile.AttrInformation
      extended by org.biomage.tools.generate_classes.CreateClassFile.DataTypeAttrInformation
Enclosing class:
CreateClassFile

public class CreateClassFile.DataTypeAttrInformation
extends CreateFile.AttrInformation

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


Constructor Summary
protected CreateClassFile.DataTypeAttrInformation(java.lang.String name, java.lang.String scope, java.lang.String datatype, java.lang.String comment, java.lang.String initialValue, boolean isRequired)
          Description: C'tor for class.
 
Method Summary
 java.lang.String getInitialValue()
          Description: Get method for the initialValue.
 boolean isRequired()
          Description: method to determine if the attribute is required.
 
Methods inherited from class org.biomage.tools.generate_classes.CreateFile.AttrInformation
getComment, getDatatype, getEnumValues, getName, getScope, initialize, isEnum
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateClassFile.DataTypeAttrInformation

protected CreateClassFile.DataTypeAttrInformation(java.lang.String name,
                                                  java.lang.String scope,
                                                  java.lang.String datatype,
                                                  java.lang.String comment,
                                                  java.lang.String initialValue,
                                                  boolean isRequired)
                                           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.
initialValue: - initial value, if any, for this attribute.
isRequired: - true if the attribute is required.

Throws:
java.lang.Exception
Method Detail

getInitialValue

public java.lang.String getInitialValue()
Description: Get method for the initialValue.

Returns:
the initialValue, which may be null or have length 0.


isRequired

public boolean isRequired()
Description: method to determine if the attribute is required.

Returns:
returns true if required, false otherwise.