gec.gctparser
Class StructParser

java.lang.Object
  extended by gec.gctparser.StructParser

public class StructParser
extends java.lang.Object

Parse the enumerated types.

Author:
bburch

Constructor Summary
StructParser()
          Null constructor.
 
Method Summary
 java.lang.String getProjectName()
          Return the project name.
 java.util.Vector getVectorOfEnumeratedTypes()
           
 void parse()
          Parse the file for the enumerated types.
 void setResource(java.io.File resourceFile)
          Set the resource file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StructParser

public StructParser()
Null constructor.

Method Detail

getProjectName

public java.lang.String getProjectName()
Return the project name. The project name is derived as the lower case version of the project directory name.

Returns:
String - the estimated project name.

getVectorOfEnumeratedTypes

public java.util.Vector getVectorOfEnumeratedTypes()

parse

public void parse()
Parse the file for the enumerated types.


setResource

public void setResource(java.io.File resourceFile)
Set the resource file. From this file, determine the LIBRARY/blocks/STRUCTS/library.st file. The resource will be at something like $gctdir/PROJECTS/projectname/blocks/RESOURC/source.st or $gctdir/LIBRARY/libraryname/blocks/RESOURC/source.st From this, back up several to get the '$gctdir'. Then, go get $gctdir/LIBRARY/blocks/STRUCTS/library.st.

Parameters:
resourceFile -