com.hyper9.simdk.codegen.types
Interface TypeProcessor<T extends MetaType>

All Known Implementing Classes:
DataObjectTypeProcessorImpl, EnumTypeProcessorImpl, FaultTypeProcessorImpl, ManagedObjectTypeProcessorImpl, TypeProcessorImpl, VimServiceTypeProcessorImpl

public interface TypeProcessor<T extends MetaType>

A callback used when enumerating package resources and processing meta types.

Author:
akutz

Method Summary
 HashMap<String,T> getProcessedMetaTypes()
          Gets a list of the processed MetaTypes indexed by simple name.
 void processClass(Class<?> clazz, String sourceFilePath)
          Processes a class that is being enumerated from a package.
 boolean shouldProcess(Class<?> clazz, String sourceFilePath)
          Gets a flag indicating whether or not processClass should be invoked on this class.
 

Method Detail

shouldProcess

boolean shouldProcess(Class<?> clazz,
                      String sourceFilePath)
                      throws Exception
Gets a flag indicating whether or not processClass should be invoked on this class.

Parameters:
clazz - The class to test.
sourceFilePath - The class's source file path.
Returns:
A flag indicating whether or not processClass should be invoked on this class.
Throws:
Exception - When an error occurs.

processClass

void processClass(Class<?> clazz,
                  String sourceFilePath)
                  throws Exception
Processes a class that is being enumerated from a package.

Parameters:
clazz - The class.
sourceFilePath - The class's source file path.
Throws:
Exception - When an error occurs.

getProcessedMetaTypes

HashMap<String,T> getProcessedMetaTypes()
Gets a list of the processed MetaTypes indexed by simple name.

Returns:
A list of the processed MetaTypes indexed by simple name.


Copyright © 2009-2010 Hyper9. All Rights Reserved.