public class ClassParams
extends java.lang.Object
Constructor and Description |
---|
ClassParams(java.lang.String fileName)
Parses a given .param file to extract all the Parameter and Conditional objects
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
filterParams(java.util.Map<java.lang.String,java.lang.String> inputMap)
Given a map of parameter,value pairs, only returns a new map that has only params that are active based on the conditional rules
|
java.util.ArrayList<Conditional> |
getConditionals()
Gets the list of all conditionals for this class
|
java.util.HashMap<java.lang.String,Parameter> |
getParameterMap()
Gets a map between the parameter names and the actuall parameters for this class
|
java.util.ArrayList<Parameter> |
getParameters()
Gets the list of all parameters for this class
|
java.lang.String |
getTargetClass()
Gets the canonical name of the class that these parameters capture
|
public ClassParams(java.lang.String fileName)
public java.util.Map<java.lang.String,java.lang.String> filterParams(java.util.Map<java.lang.String,java.lang.String> inputMap)
inputMap
- The map consisting of parameter name to values that need to be filteredpublic java.lang.String getTargetClass()
public java.util.ArrayList<Parameter> getParameters()
public java.util.ArrayList<Conditional> getConditionals()
public java.util.HashMap<java.lang.String,Parameter> getParameterMap()