com.hyper9.simdk.codegen.impls
Class EnumTypeImpl

java.lang.Object
  extended by com.hyper9.simdk.codegen.impls.MetaTypeImpl
      extended by com.hyper9.simdk.codegen.impls.EnumTypeImpl
All Implemented Interfaces:
EnumType, MetaType

public class EnumTypeImpl
extends MetaTypeImpl
implements EnumType

A meta type that represents an Enum.

Author:
akutz

Constructor Summary
protected EnumTypeImpl(Class<?> inType, String inTypeSourceFilePath)
          Creates a new instance of the EnumTypeImpl class.
 
Method Summary
 void build()
          Builds the type to be written.
 String getCompilationType()
          Gets a string that represents the compilation type (class, interface, enum) of this meta type.
 List<String> getElements()
          Get the elements of this enum type.
 void writeCompilationTypeContent(Writer out)
          This method is called by the writeToFile method after the beginning of the compilation type is written and before the end of the compilation type is written.
 
Methods inherited from class com.hyper9.simdk.codegen.impls.MetaTypeImpl
addOutImportType, addXmlTypeName, getAnnotations, getInType, getInTypeSourceFilePath, getMethods, getOutImports, getOutType, getPathToOutFile, getProperties, isTypeObject, upCaseFirstChar, writeToFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hyper9.simdk.codegen.types.MetaType
getAnnotations, getInType, getInTypeSourceFilePath, getMethods, getOutImports, getOutType, getProperties, writeToFile
 

Constructor Detail

EnumTypeImpl

protected EnumTypeImpl(Class<?> inType,
                       String inTypeSourceFilePath)
Creates a new instance of the EnumTypeImpl class.

Parameters:
inType - The VMware type the MetaType is based on.
inTypeSourceFilePath - The full path to the In type's source file.
Method Detail

writeCompilationTypeContent

public void writeCompilationTypeContent(Writer out)
                                 throws Exception
Description copied from interface: MetaType
This method is called by the writeToFile method after the beginning of the compilation type is written and before the end of the compilation type is written.

Specified by:
writeCompilationTypeContent in interface MetaType
Parameters:
out - The writer.
Throws:
Exception

getElements

public List<String> getElements()
Description copied from interface: EnumType
Get the elements of this enum type.

Specified by:
getElements in interface EnumType
Returns:
The elements of this enum type.

getCompilationType

public String getCompilationType()
Description copied from interface: MetaType
Gets a string that represents the compilation type (class, interface, enum) of this meta type.

Specified by:
getCompilationType in interface MetaType
Returns:
A string that represents the compilation type (class, interface, enum) of this meta type.

build

public void build()
           throws Exception
Description copied from interface: MetaType
Builds the type to be written.

Specified by:
build in interface MetaType
Overrides:
build in class MetaTypeImpl
Throws:
Exception


Copyright © 2009-2010 Hyper9. All Rights Reserved.