org.gcube.dataanalysis.ecoengine.utils
Class DynamicEnum

java.lang.Object
  extended by org.gcube.dataanalysis.ecoengine.utils.DynamicEnum
Direct Known Subclasses:
LMEEnum

public class DynamicEnum
extends Object


Nested Class Summary
static class DynamicEnum.DynamicEnumE
           
 
Constructor Summary
DynamicEnum()
           
 
Method Summary
<T extends Enum<?>>
void
addEnum(Class<T> enumType, String enumName)
          Add an enum instance to the enum class given as argument
 Field[] getFields()
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicEnum

public DynamicEnum()
Method Detail

addEnum

public <T extends Enum<?>> void addEnum(Class<T> enumType,
                                        String enumName)
Add an enum instance to the enum class given as argument

Type Parameters:
T - the type of the enum (implicit)
Parameters:
enumType - the class of the enum to be modified
enumName - the name of the new enum instance to be added to the class.

getFields

public Field[] getFields()

main

public static void main(String[] args)


Copyright © 2013. All Rights Reserved.