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