play.data.binding
类 ParamNode

java.lang.Object
  继承者 play.data.binding.ParamNode
直接已知子类:
RootParamNode

public class ParamNode
extends java.lang.Object


嵌套类摘要
static class ParamNode.RemovedNode
           
 
构造方法摘要
ParamNode(java.lang.String name)
           
 
方法摘要
 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)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ParamNode

public ParamNode(java.lang.String name)
方法详细信息

getName

public java.lang.String getName()

getValues

public java.lang.String[] getValues()

getFirstValue

public java.lang.String getFirstValue(java.lang.Class<?> type)

addChild

public void addChild(ParamNode child)

getChild

public ParamNode getChild(java.lang.String name)

getChild

public ParamNode getChild(java.lang.String name,
                          boolean returnEmptyChildIfNotFound)

removeChild

public 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. The we can later call which will add it back again. This is a "hack" related to #1195 which makes it possible to reuse the RootParamsNode-structure if you want to perform the bind-operation multiple times.

参数:
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.
返回:
true if anything was removed.

restoreRemovedChildren

public static void restoreRemovedChildren(java.util.List<ParamNode.RemovedNode> removedNodesList)

getAllChildren

public java.util.Collection<ParamNode> getAllChildren()

getAllChildrenKeys

public java.util.Set<java.lang.String> getAllChildrenKeys()

setValue

public void setValue(java.lang.String[] value,
                     java.lang.String originalKey)

getOriginalKey

public java.lang.String getOriginalKey()

convert

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