GigaSpaces XAP 10.0.1 API

org.openspaces.core.util
Class StringProperties

java.lang.Object
  extended by org.openspaces.core.util.StringProperties

public class StringProperties
extends Object


Constructor Summary
StringProperties()
           
StringProperties(Map<String,String> properties)
           
StringProperties(Properties properties)
           
 
Method Summary
 void clear()
           
 boolean equals(Object other)
           
 String get(String key)
           
 String get(String key, String defaultValue)
           
 String[] getArgumentsArray(String key, String[] defaultValue)
           
 String[] getArray(String key, String separator, String[] defaultValue)
           
 boolean getBoolean(String key, boolean defaultValue)
           
 Object getConfig(String key, Object defaultValue)
           
 double getDouble(String key, double defaultValue)
           
 double getDoubleIgnoreExceptions(String key, double defaultValue)
           
 int getInteger(String key, int defaultValue)
           
 int getIntegerIgnoreExceptions(String key, int defaultValue)
           
 Map<String,String> getKeyValuePairs(String key, String pairSeperator, String keyValueSeperator, Map<String,String> defaultValue)
           
 long getLong(String key, long defaultValue)
           
 long getLongIgnoreExceptions(String key, long defaultValue)
           
 Map<String,String> getMap(String keyPrefix, Map<String,String> defaultValue)
           
 Map<String,String> getProperties()
           
 Set<String> getSet(String key, String separator, Set<String> defaultValue)
           
 Object getStringWrapperObject(String key, Object defaultValue)
           
 int hashCode()
           
 StringProperties put(String key, String value)
           
 void putAll(Map<String,String> properties)
           
 void putArgumentsArray(String key, String[] value)
           
 StringProperties putArray(String key, String[] value, String separator)
           
 void putBoolean(String key, boolean value)
           
 void putConfig(String key, Object object)
           
 StringProperties putDouble(String key, double value)
           
 StringProperties putInteger(String key, int value)
           
 void putKeyValuePairs(String key, Map<String,String> value, String pairSeperator, String keyValueSeperator)
           
 StringProperties putLong(String key, long value)
           
 void putMap(String keyPrefix, Map<String,String> value)
           
 StringProperties putSet(String key, Set<String> value, String separator)
           
 void putStringWrapperObject(String key, Object value)
           
 void remove(String key)
           
 void store(OutputStream out, String comments)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringProperties

public StringProperties()

StringProperties

public StringProperties(Properties properties)

StringProperties

public StringProperties(Map<String,String> properties)
Method Detail

put

public StringProperties put(String key,
                            String value)

get

public String get(String key)

get

public String get(String key,
                  String defaultValue)

putInteger

public StringProperties putInteger(String key,
                                   int value)

getInteger

public int getInteger(String key,
                      int defaultValue)
               throws NumberFormatException
Throws:
NumberFormatException

getIntegerIgnoreExceptions

public int getIntegerIgnoreExceptions(String key,
                                      int defaultValue)

putLong

public StringProperties putLong(String key,
                                long value)

getLong

public long getLong(String key,
                    long defaultValue)
             throws NumberFormatException
Throws:
NumberFormatException

getLongIgnoreExceptions

public long getLongIgnoreExceptions(String key,
                                    long defaultValue)

putDouble

public StringProperties putDouble(String key,
                                  double value)

getDouble

public double getDouble(String key,
                        double defaultValue)
                 throws NumberFormatException
Throws:
NumberFormatException

getDoubleIgnoreExceptions

public double getDoubleIgnoreExceptions(String key,
                                        double defaultValue)

getArray

public String[] getArray(String key,
                         String separator,
                         String[] defaultValue)

putArray

public StringProperties putArray(String key,
                                 String[] value,
                                 String separator)

getSet

public Set<String> getSet(String key,
                          String separator,
                          Set<String> defaultValue)

putSet

public StringProperties putSet(String key,
                               Set<String> value,
                               String separator)

store

public void store(OutputStream out,
                  String comments)
           throws IOException
Throws:
IOException

getProperties

public Map<String,String> getProperties()

putBoolean

public void putBoolean(String key,
                       boolean value)

getBoolean

public boolean getBoolean(String key,
                          boolean defaultValue)

getMap

public Map<String,String> getMap(String keyPrefix,
                                 Map<String,String> defaultValue)

putMap

public void putMap(String keyPrefix,
                   Map<String,String> value)

putArgumentsArray

public void putArgumentsArray(String key,
                              String[] value)

getArgumentsArray

public String[] getArgumentsArray(String key,
                                  String[] defaultValue)

clear

public void clear()

putAll

public void putAll(Map<String,String> properties)

remove

public void remove(String key)

putKeyValuePairs

public void putKeyValuePairs(String key,
                             Map<String,String> value,
                             String pairSeperator,
                             String keyValueSeperator)

getKeyValuePairs

public Map<String,String> getKeyValuePairs(String key,
                                           String pairSeperator,
                                           String keyValueSeperator,
                                           Map<String,String> defaultValue)

putConfig

public void putConfig(String key,
                      Object object)

getConfig

public Object getConfig(String key,
                        Object defaultValue)

putStringWrapperObject

public void putStringWrapperObject(String key,
                                   Object value)

getStringWrapperObject

public Object getStringWrapperObject(String key,
                                     Object defaultValue)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.