org.sonatype.gossip.model.io.props
Class Context

java.lang.Object
  extended by org.sonatype.gossip.model.io.props.Context
All Implemented Interfaces:
Cloneable

public final class Context
extends Object
implements Cloneable

Container for Gossip configuration details.

Since:
1.0
Author:
Jason Dillon

Method Summary
static Properties asProperties(Context ctx)
           
 Context child(String prefix)
           
 Object clone()
           
 boolean contains(String name)
           
static Context create(URL input)
           
 String get(String name)
           
 String get(String name, String defaultValue)
           
 String key(String name)
           
 Set<String> names()
           
 Context parent()
           
 String set(String name, String value)
           
 int size()
           
 String[] split(String name, boolean trim)
           
 Properties toProperties()
           
 String toString()
           
static String[] trim(String[] strings)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString()
Overrides:
toString in class Object

clone

public Object clone()
Overrides:
clone in class Object

key

public String key(String name)

contains

public boolean contains(String name)

set

public String set(String name,
                  String value)

get

public String get(String name,
                  String defaultValue)

get

public String get(String name)

size

public int size()

names

public Set<String> names()

parent

public Context parent()

child

public Context child(String prefix)

create

public static Context create(URL input)
                      throws IOException
Throws:
IOException

asProperties

public static Properties asProperties(Context ctx)

toProperties

public Properties toProperties()

split

public String[] split(String name,
                      boolean trim)

trim

public static String[] trim(String[] strings)


Copyright © 2008-2011 Sonatype. All Rights Reserved.