org.sonatype.sisu.goodies.common
Class NameValue

java.lang.Object
  extended by org.sonatype.sisu.goodies.common.NameValue

public class NameValue
extends Object

Container and parser for name=value bits.

Since:
1.1

Field Summary
 String name
           
static String SEPARATOR
           
static String TRUE
           
 String value
           
 
Method Summary
static Map<String,String> decode(String input)
           
static Map<String,String> decode(String input, boolean trimValue)
           
static Map<String,String> decode(String pattern, String input, boolean trimValue)
           
static NameValue parse(String input)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SEPARATOR

@NonNls
public static final String SEPARATOR
See Also:
Constant Field Values

TRUE

public static final String TRUE

name

public final String name

value

public final String value
Method Detail

parse

public static NameValue parse(@NonNls
                              String input)

toString

public String toString()
Overrides:
toString in class Object

decode

public static Map<String,String> decode(String pattern,
                                        String input,
                                        boolean trimValue)

decode

public static Map<String,String> decode(String input,
                                        boolean trimValue)

decode

public static Map<String,String> decode(String input)


Copyright © 2008-2012 Sonatype, Inc.. All Rights Reserved.