public class ParamNode extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ParamNode.RemovedNode |
Modifier and Type | Method and Description |
---|---|
void |
addChild(ParamNode child) |
static RootParamNode |
convert(Map<String,String[]> params) |
Collection<ParamNode> |
getAllChildren() |
Set<String> |
getAllChildrenKeys() |
ParamNode |
getChild(String name) |
ParamNode |
getChild(String name,
boolean returnEmptyChildIfNotFound) |
String |
getFirstValue(Class<?> type) |
String |
getName() |
String |
getOriginalKey() |
String[] |
getValues() |
boolean |
removeChild(String name,
List<ParamNode.RemovedNode> removedNodesList)
Removes a child from this node, but stores what is removed to list.
|
static void |
restoreRemovedChildren(List<ParamNode.RemovedNode> removedNodesList) |
void |
setValue(String[] value,
String originalKey) |
public ParamNode(String name)
public String getName()
public String[] getValues()
public void addChild(ParamNode child)
public boolean removeChild(String name, List<ParamNode.RemovedNode> removedNodesList)
name
- the name of the child-node in this paramNode which should be removed.removedNodesList
- a list where info about what is removed where is stored.public static void restoreRemovedChildren(List<ParamNode.RemovedNode> removedNodesList)
public Collection<ParamNode> getAllChildren()
public String getOriginalKey()
public static RootParamNode convert(Map<String,String[]> params)
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly