com.cisco.oss.foundation.configuration.validation.params
Class ParamFactory

java.lang.Object
  extended by com.cisco.oss.foundation.configuration.validation.params.ParamFactory
Direct Known Subclasses:
ParamListFactory, ParamSetFactory, SimpleParamFactory

public class ParamFactory
extends Object

Created By: kgreen Date-Time: 11/6/13 5:17 PM


Nested Class Summary
protected static class ParamFactory.ParamType
           
 
Field Summary
static SimpleParamFactory dynamicFactory
           
static ParamListFactory listDynamicFactory
           
static ParamListFactory listStaticFactory
           
static ParamSetFactory setDynamicFactory
           
static ParamSetFactory setStaticFactory
           
static SimpleParamFactory staticFactory
           
 
Constructor Summary
protected ParamFactory(ParamFactory.ParamType paramType)
           
 
Method Summary
protected
<T,C extends Collection<T>>
ParamValidators.ParamListValidator<T,C>
getListValidator(ParamValidators.ParamValidator<T> validator)
           
protected  Param getParam(ParamReaders.ParamReader reader, String name)
           
protected  Param getParam(ParamReaders.ParamReader reader, String name, Object defValue)
           
protected  Param getParam(ParamReaders.ParamReader reader, String name, Object defValue, ParamValidators.ParamValidator validator)
           
protected
<T> List<T>
toList(T... values)
           
protected
<T> List<T>
toList(T value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

staticFactory

public static final SimpleParamFactory staticFactory

dynamicFactory

public static final SimpleParamFactory dynamicFactory

listStaticFactory

public static final ParamListFactory listStaticFactory

listDynamicFactory

public static final ParamListFactory listDynamicFactory

setStaticFactory

public static final ParamSetFactory setStaticFactory

setDynamicFactory

public static final ParamSetFactory setDynamicFactory
Constructor Detail

ParamFactory

protected ParamFactory(ParamFactory.ParamType paramType)
Method Detail

getParam

protected Param getParam(ParamReaders.ParamReader reader,
                         String name)

getParam

protected Param getParam(ParamReaders.ParamReader reader,
                         String name,
                         Object defValue)

getParam

protected Param getParam(ParamReaders.ParamReader reader,
                         String name,
                         Object defValue,
                         ParamValidators.ParamValidator validator)

toList

protected <T> List<T> toList(T value)

toList

protected <T> List<T> toList(T... values)

getListValidator

protected <T,C extends Collection<T>> ParamValidators.ParamListValidator<T,C> getListValidator(ParamValidators.ParamValidator<T> validator)


Copyright © 2014 Cisco. All Rights Reserved.