org.galagosearch.tupleflow
Class Parameters.Value

java.lang.Object
  extended by org.galagosearch.tupleflow.Parameters.Value
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Parameters

public static class Parameters.Value
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Parameters.Value()
          Construct a new Value object with nothing in it.
 
Method Summary
 Parameters.Value add(java.lang.String key)
          Add a new child value object.
 void add(java.lang.String key, java.lang.CharSequence value)
          Add a new XML value.
 void add(java.lang.String key, java.util.List<Parameters.Value> values)
           
 boolean containsKey(java.lang.String key)
           
 java.lang.String get(java.lang.String key)
           
 java.lang.String get(java.lang.String key, java.lang.String def)
           
 boolean isEmpty()
          Returns true if there is no data in this value object.
 java.util.List<Parameters.Value> list(java.lang.String key)
           
 java.util.Map<java.lang.String,java.util.List<Parameters.Value>> map()
           
 void set(java.lang.CharSequence value)
           
 void set(java.lang.String key, java.util.List<Parameters.Value> values)
           
 java.util.List<java.lang.String> stringList(java.lang.String key)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Parameters.Value

public Parameters.Value()
Construct a new Value object with nothing in it.

Method Detail

isEmpty

public boolean isEmpty()
Returns true if there is no data in this value object.


add

public Parameters.Value add(java.lang.String key)
Add a new child value object. This is similar to adding a child XML element at this point, but without actually putting any data in that element yet.

Parameters:
key - The XML tag/key name of this child value.
Returns:
A new empty child Value object.

add

public void add(java.lang.String key,
                java.util.List<Parameters.Value> values)

add

public void add(java.lang.String key,
                java.lang.CharSequence value)
Add a new XML value. Key may be a simple tag name or a slash-delimited XML pathname.

Parameters:
key - The XML path to the tag this call should modify/add.
value - The text value to assign to the node specified by the key parameter.

set

public void set(java.lang.CharSequence value)

set

public void set(java.lang.String key,
                java.util.List<Parameters.Value> values)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

map

public java.util.Map<java.lang.String,java.util.List<Parameters.Value>> map()

get

public java.lang.String get(java.lang.String key,
                            java.lang.String def)

get

public java.lang.String get(java.lang.String key)

list

public java.util.List<Parameters.Value> list(java.lang.String key)

stringList

public java.util.List<java.lang.String> stringList(java.lang.String key)

containsKey

public boolean containsKey(java.lang.String key)


Copyright © 2009. All Rights Reserved.