net.fortytwo.ripple
Class RippleProperties
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
net.fortytwo.ripple.RippleProperties
- All Implemented Interfaces:
- Serializable, Cloneable, Map<Object,Object>
public class RippleProperties
- extends Properties
- Author:
- Joshua Shinavier (http://fortytwo.net)
- See Also:
- Serialized Form
|
Method Summary |
boolean |
getBoolean(String name)
|
boolean |
getBoolean(String name,
boolean defaultValue)
|
Date |
getDate(String name)
|
Date |
getDate(String name,
Date defaultValue)
|
double |
getDouble(String name)
|
double |
getDouble(String name,
double defaultValue)
|
File |
getFile(String name)
|
File |
getFile(String name,
File defaultValue)
|
float |
getFloat(String name)
|
float |
getFloat(String name,
float defaultValue)
|
int |
getInt(String name)
|
int |
getInt(String name,
int defaultValue)
|
long |
getLong(String name)
|
long |
getLong(String name,
long defaultValue)
|
String |
getString(String name)
|
String |
getString(String name,
String defaultValue)
|
URI |
getURI(String name)
|
URI |
getURI(String name,
URI defaultValue)
|
URL |
getURL(String name)
|
URL |
getURL(String name,
URL defaultValue)
|
void |
setBoolean(String name,
boolean value)
|
void |
setDate(String name,
Date value)
|
void |
setDouble(String name,
double value)
|
void |
setFile(String name,
File value)
|
void |
setFloat(String name,
float value)
|
void |
setInt(String name,
int value)
|
void |
setLong(String name,
long value)
|
void |
setString(String name,
String value)
|
void |
setURI(String name,
URI value)
|
void |
setURL(String name,
URL value)
|
| Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames |
| Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
RippleProperties
public RippleProperties(Properties defaults)
RippleProperties
public RippleProperties()
getString
public String getString(String name)
throws RippleException
- Throws:
RippleException
getString
public String getString(String name,
String defaultValue)
throws RippleException
- Throws:
RippleException
setString
public void setString(String name,
String value)
getBoolean
public boolean getBoolean(String name)
throws RippleException
- Throws:
RippleException
getBoolean
public boolean getBoolean(String name,
boolean defaultValue)
throws RippleException
- Throws:
RippleException
setBoolean
public void setBoolean(String name,
boolean value)
getDouble
public double getDouble(String name)
throws RippleException
- Throws:
RippleException
getDouble
public double getDouble(String name,
double defaultValue)
throws RippleException
- Throws:
RippleException
setDouble
public void setDouble(String name,
double value)
getFloat
public float getFloat(String name)
throws RippleException
- Throws:
RippleException
getFloat
public float getFloat(String name,
float defaultValue)
throws RippleException
- Throws:
RippleException
setFloat
public void setFloat(String name,
float value)
getInt
public int getInt(String name)
throws RippleException
- Throws:
RippleException
getInt
public int getInt(String name,
int defaultValue)
throws RippleException
- Throws:
RippleException
setInt
public void setInt(String name,
int value)
getLong
public long getLong(String name)
throws RippleException
- Throws:
RippleException
getLong
public long getLong(String name,
long defaultValue)
throws RippleException
- Throws:
RippleException
setLong
public void setLong(String name,
long value)
getURI
public URI getURI(String name)
throws RippleException
- Throws:
RippleException
getURI
public URI getURI(String name,
URI defaultValue)
throws RippleException
- Throws:
RippleException
setURI
public void setURI(String name,
URI value)
getURL
public URL getURL(String name)
throws RippleException
- Throws:
RippleException
getURL
public URL getURL(String name,
URL defaultValue)
throws RippleException
- Throws:
RippleException
setURL
public void setURL(String name,
URL value)
getFile
public File getFile(String name)
throws RippleException
- Throws:
RippleException
getFile
public File getFile(String name,
File defaultValue)
throws RippleException
- Throws:
RippleException
setFile
public void setFile(String name,
File value)
getDate
public Date getDate(String name)
throws RippleException
- Throws:
RippleException
getDate
public Date getDate(String name,
Date defaultValue)
throws RippleException
- Throws:
RippleException
setDate
public void setDate(String name,
Date value)
Copyright © 2007-2014. All Rights Reserved.