com.cloudera.lib.wsrs
Class EnumParam<E extends Enum<E>>

java.lang.Object
  extended by com.cloudera.lib.wsrs.Param<E>
      extended by com.cloudera.lib.wsrs.EnumParam<E>
Direct Known Subclasses:
GetOpParam, PostOpParam, PutOpParam

public abstract class EnumParam<E extends Enum<E>>
extends Param<E>


Field Summary
 
Fields inherited from class com.cloudera.lib.wsrs.Param
value
 
Constructor Summary
EnumParam(String label, String str, Class<E> e)
           
 
Method Summary
protected  String getDomain()
           
protected  E parse(String str)
           
 
Methods inherited from class com.cloudera.lib.wsrs.Param
parseParam, setValue, toString, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnumParam

public EnumParam(String label,
                 String str,
                 Class<E> e)
Method Detail

parse

protected E parse(String str)
                           throws Exception
Specified by:
parse in class Param<E extends Enum<E>>
Throws:
Exception

getDomain

protected String getDomain()
Specified by:
getDomain in class Param<E extends Enum<E>>


Copyright © 2012 Cloudera. All Rights Reserved.