BrightSide Workbench Full Report + Source Code
org.turro.elephant.context.ElephantProperties Class Reference

Static Public Member Functions

static void resetProperties ()
 
static boolean containsContextProperty (String context, String property)
 
static String getContextProperty (String context, String property)
 
static String getContextProperty (String context, String property, String defaultValue)
 
static Boolean getContextProperty (String context, String property, Boolean defaultValue)
 
static List< String > getContextPrefixedProperties (String context, String prefix)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 36 of file ElephantProperties.java.

Member Function Documentation

◆ containsContextProperty()

static boolean org.turro.elephant.context.ElephantProperties.containsContextProperty ( String  context,
String  property 
)
static

Definition at line 45 of file ElephantProperties.java.

45  {
46  checkProperties();
47  return _elephantContext != null ? _elephantContext.containsKey(context + "_" + property) : false;
48  }
Here is the caller graph for this function:

◆ getContextPrefixedProperties()

static List<String> org.turro.elephant.context.ElephantProperties.getContextPrefixedProperties ( String  context,
String  prefix 
)
static

Definition at line 63 of file ElephantProperties.java.

63  {
64  checkProperties();
65  return _elephantContext.keySet().stream()
66  .filter(k -> ((String) k).startsWith(context + "_" + prefix))
67  .map(k -> (String) _elephantContext.get(k))
68  .collect(Collectors.toList());
69  }
Here is the caller graph for this function:

◆ getContextProperty() [1/3]

static String org.turro.elephant.context.ElephantProperties.getContextProperty ( String  context,
String  property 
)
static

Definition at line 50 of file ElephantProperties.java.

50  {
51  return getContextProperty(context, property, (String) null);
52  }
static String getContextProperty(String context, String property)
Here is the caller graph for this function:

◆ getContextProperty() [2/3]

static Boolean org.turro.elephant.context.ElephantProperties.getContextProperty ( String  context,
String  property,
Boolean  defaultValue 
)
static

Definition at line 59 of file ElephantProperties.java.

59  {
60  return Boolean.valueOf(getContextProperty(context, property, defaultValue.toString()));
61  }
Here is the call graph for this function:

◆ getContextProperty() [3/3]

static String org.turro.elephant.context.ElephantProperties.getContextProperty ( String  context,
String  property,
String  defaultValue 
)
static

Definition at line 54 of file ElephantProperties.java.

54  {
55  checkProperties();
56  return _elephantContext != null ? _elephantContext.getProperty(context + "_" + property, defaultValue) : null;
57  }

◆ resetProperties()

static void org.turro.elephant.context.ElephantProperties.resetProperties ( )
static

Definition at line 41 of file ElephantProperties.java.

41  {
42  _elephantContext = null;
43  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: