com.hyper9.simdk.codegen.types
Interface MetaType

All Known Subinterfaces:
DataObjectType, EnumType, FaultType, ManagedObjectType, VimServiceType
All Known Implementing Classes:
DataObjectTypeImpl, EnumTypeImpl, FaultTypeImpl, ManagedObjectTypeImpl, MetaClassTypeImpl, MetaTypeImpl, VimServiceTypeImpl

public interface MetaType

A type that helps in the conversion of an internal VMware type to a SimDK type.

Author:
akutz

Method Summary
 void build()
          Builds the type to be written.
 List<String> getAnnotations()
          Gets a list of this out type's annotations.
 String getCompilationType()
          Gets a string that represents the compilation type (class, interface, enum) of this meta type.
 Class<?> getInType()
          Gets the In type.
 String getInTypeSourceFilePath()
          Gets the path to the source file of the In type.
 List<MetaMethod> getMethods()
          Get this meta type's methods.
 List<String> getOutImports()
          Gets a list of the types to import for the out type.
 OutType getOutType()
          Gets the Out type.
 List<MetaProperty> getProperties()
          Get this meta type's properties.
 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.
 void writeToFile(String path)
          Writes the meta type to a file.
 

Method Detail

getInType

Class<?> getInType()
Gets the In type.

Returns:
The In type.

getInTypeSourceFilePath

String getInTypeSourceFilePath()
Gets the path to the source file of the In type.

Returns:
The path to the source file of the In type.

getOutType

OutType getOutType()
Gets the Out type.

Returns:
The Out type.

getCompilationType

String getCompilationType()
Gets a string that represents the compilation type (class, interface, enum) of this meta type.

Returns:
A string that represents the compilation type (class, interface, enum) of this meta type.

getProperties

List<MetaProperty> getProperties()
Get this meta type's properties.

Returns:
This meta type's properties.

getMethods

List<MetaMethod> getMethods()
Get this meta type's methods.

Returns:
This meta type's methods.

getOutImports

List<String> getOutImports()
Gets a list of the types to import for the out type.

Returns:
A list of the types to import for the out type.

writeToFile

void writeToFile(String path)
                 throws Exception
Writes the meta type to a file.

Parameters:
path - The path of the root directory to write the file.
Throws:
Exception - When an error occurs.

writeCompilationTypeContent

void writeCompilationTypeContent(Writer out)
                                 throws Exception
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.

Parameters:
out - The writer.
Throws:
Exception

build

void build()
           throws Exception
Builds the type to be written.

Throws:
Exception

getAnnotations

List<String> getAnnotations()
Gets a list of this out type's annotations.

Returns:


Copyright © 2009-2010 Hyper9. All Rights Reserved.