org.kitesdk.morphline.base
Class Configs

java.lang.Object
  extended by org.kitesdk.morphline.base.Configs

public final class Configs
extends Object

Helpers to traverse and read parts of a HOCON data structure.


Constructor Summary
Configs()
           
 
Method Summary
 boolean getBoolean(com.typesafe.config.Config config, String path)
           
 boolean getBoolean(com.typesafe.config.Config config, String path, boolean defaults)
           
 Charset getCharset(com.typesafe.config.Config config, String path, Charset defaults)
           
 com.typesafe.config.Config getConfig(com.typesafe.config.Config config, String path)
           
 com.typesafe.config.Config getConfig(com.typesafe.config.Config config, String path, com.typesafe.config.Config defaults)
           
 List<? extends com.typesafe.config.Config> getConfigList(com.typesafe.config.Config config, String path)
           
 List<? extends com.typesafe.config.Config> getConfigList(com.typesafe.config.Config config, String path, List<? extends com.typesafe.config.Config> defaults)
           
 double getDouble(com.typesafe.config.Config config, String path)
           
 double getDouble(com.typesafe.config.Config config, String path, double defaults)
           
 Set<Map.Entry<String,Object>> getEntrySet(com.typesafe.config.Config config)
           
 int getInt(com.typesafe.config.Config config, String path)
           
 int getInt(com.typesafe.config.Config config, String path, int defaults)
           
 Locale getLocale(com.typesafe.config.Config config, String path)
           
 Locale getLocale(com.typesafe.config.Config config, String path, Locale defaults)
           
 long getLong(com.typesafe.config.Config config, String path)
           
 long getLong(com.typesafe.config.Config config, String path, long defaults)
           
 long getNanoseconds(com.typesafe.config.Config config, String path)
           
 long getNanoseconds(com.typesafe.config.Config config, String path, long defaults)
           
 String getString(com.typesafe.config.Config config, String path)
           
 String getString(com.typesafe.config.Config config, String path, String defaults)
           
 List<String> getStringList(com.typesafe.config.Config config, String path)
           
 List<String> getStringList(com.typesafe.config.Config config, String path, List<String> defaults)
           
 TimeUnit getTimeUnit(com.typesafe.config.Config config, String path)
           
 TimeUnit getTimeUnit(com.typesafe.config.Config config, String path, TimeUnit defaults)
           
 TimeUnit getTimeUnit(String str)
           
 void validateArguments(com.typesafe.config.Config config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configs

public Configs()
Method Detail

validateArguments

public void validateArguments(com.typesafe.config.Config config)

getString

public String getString(com.typesafe.config.Config config,
                        String path,
                        String defaults)

getString

public String getString(com.typesafe.config.Config config,
                        String path)

getStringList

public List<String> getStringList(com.typesafe.config.Config config,
                                  String path,
                                  List<String> defaults)

getStringList

public List<String> getStringList(com.typesafe.config.Config config,
                                  String path)

getConfigList

public List<? extends com.typesafe.config.Config> getConfigList(com.typesafe.config.Config config,
                                                                String path,
                                                                List<? extends com.typesafe.config.Config> defaults)

getConfigList

public List<? extends com.typesafe.config.Config> getConfigList(com.typesafe.config.Config config,
                                                                String path)

getConfig

public com.typesafe.config.Config getConfig(com.typesafe.config.Config config,
                                            String path,
                                            com.typesafe.config.Config defaults)

getConfig

public com.typesafe.config.Config getConfig(com.typesafe.config.Config config,
                                            String path)

getBoolean

public boolean getBoolean(com.typesafe.config.Config config,
                          String path,
                          boolean defaults)

getBoolean

public boolean getBoolean(com.typesafe.config.Config config,
                          String path)

getInt

public int getInt(com.typesafe.config.Config config,
                  String path,
                  int defaults)

getInt

public int getInt(com.typesafe.config.Config config,
                  String path)

getLong

public long getLong(com.typesafe.config.Config config,
                    String path,
                    long defaults)

getLong

public long getLong(com.typesafe.config.Config config,
                    String path)

getDouble

public double getDouble(com.typesafe.config.Config config,
                        String path,
                        double defaults)

getDouble

public double getDouble(com.typesafe.config.Config config,
                        String path)

getCharset

public Charset getCharset(com.typesafe.config.Config config,
                          String path,
                          Charset defaults)

getNanoseconds

public long getNanoseconds(com.typesafe.config.Config config,
                           String path,
                           long defaults)

getNanoseconds

public long getNanoseconds(com.typesafe.config.Config config,
                           String path)

getTimeUnit

public TimeUnit getTimeUnit(com.typesafe.config.Config config,
                            String path,
                            TimeUnit defaults)

getTimeUnit

public TimeUnit getTimeUnit(com.typesafe.config.Config config,
                            String path)

getTimeUnit

public TimeUnit getTimeUnit(String str)

getLocale

public Locale getLocale(com.typesafe.config.Config config,
                        String path,
                        Locale defaults)

getLocale

public Locale getLocale(com.typesafe.config.Config config,
                        String path)

getEntrySet

public Set<Map.Entry<String,Object>> getEntrySet(com.typesafe.config.Config config)


Copyright © 2013–2014. All rights reserved.