test_class.file: oak-commons/src/test/java/org/apache/jackrabbit/oak/commons/PropertiesUtilTest.java
test_class.identifier: PropertiesUtilTest
test_case.body: @Test
      public void testToStringArray() {
          final String[] defaultValue = new String[]{"1"};
          assertArrayEquals(null, PropertiesUtil.toStringArray(5));
          assertArrayEquals(null, PropertiesUtil.toStringArray(null));
          assertArrayEquals(defaultValue, PropertiesUtil.toStringArray(5, defaultValue));
          assertArrayEquals(defaultValue, PropertiesUtil.toStringArray(null, defaultValue));
          assertArrayEquals(new String[]{"hallo"}, PropertiesUtil.toStringArray("hallo", defaultValue));
          assertArrayEquals(new String[]{"hallo"}, PropertiesUtil.toStringArray(new String[]{"hallo"}, defaultValue));
          assertArrayEquals(new String[]{"hallo", "you"}, PropertiesUtil.toStringArray(new String[]{"hallo", "you"}, defaultValue));
          assertArrayEquals(new String[]{"5", "1"}, PropertiesUtil.toStringArray(new Integer[]{5, 1}, defaultValue));
          assertArrayEquals(new String[]{"5", "1"}, PropertiesUtil.toStringArray(new Integer[]{5, null, 1}, defaultValue));
          final List<String> l = new ArrayList<String>();
          assertArrayEquals(new String[]{}, PropertiesUtil.toStringArray(l, defaultValue));
          l.add("1");
          l.add("2");
          assertArrayEquals(new String[]{"1", "2"}, PropertiesUtil.toStringArray(l, defaultValue));
          l.add(null);
          assertArrayEquals(new String[]{"1", "2"}, PropertiesUtil.toStringArray(l, defaultValue));
          final Map<String, Object> m = new HashMap<String, Object>();
          m.put("1", 5);
          assertArrayEquals(defaultValue, PropertiesUtil.toStringArray(m, defaultValue));
      }
test_case.class_method_signature: PropertiesUtilTest.testToStringArray()
test_case.full_signature: @Test public void testToStringArray()
test_case.identifier: testToStringArray
test_case.invocations: assertArrayEquals toStringArray assertArrayEquals toStringArray assertArrayEquals toStringArray assertArrayEquals toStringArray assertArrayEquals toStringArray assertArrayEquals toStringArray assertArrayEquals toStringArray assertArrayEquals toStringArray assertArrayEquals toStringArray assertArrayEquals toStringArray add add assertArrayEquals toStringArray add assertArrayEquals toStringArray put assertArrayEquals toStringArray
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testToStringArray()
focal_class.declarator: log = LoggerFactory.getLogger(PropertiesUtil.class)
focal_class.modifier: private static
focal_class.original_string: private static Logger log = LoggerFactory.getLogger(PropertiesUtil.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.file: oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/PropertiesUtil.java
focal_class.identifier: PropertiesUtil
focal_class.class_method_signature: PropertiesUtil.PropertiesUtil()
focal_class.full_signature: private  PropertiesUtil()
focal_class.identifier: PropertiesUtil
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  PropertiesUtil()
focal_class.class_method_signature: PropertiesUtil.toBoolean(Object propValue, boolean defaultValue)
focal_class.full_signature: public static boolean toBoolean(Object propValue, boolean defaultValue)
focal_class.identifier: toBoolean
focal_class.modifiers: public static
focal_class.parameters: (Object propValue, boolean defaultValue)
focal_class.return: boolean
focal_class.signature: boolean toBoolean(Object propValue, boolean defaultValue)
focal_class.class_method_signature: PropertiesUtil.toString(Object propValue, String defaultValue)
focal_class.full_signature: public static String toString(Object propValue, String defaultValue)
focal_class.identifier: toString
focal_class.modifiers: public static
focal_class.parameters: (Object propValue, String defaultValue)
focal_class.return: String
focal_class.signature: String toString(Object propValue, String defaultValue)
focal_class.class_method_signature: PropertiesUtil.toLong(Object propValue, long defaultValue)
focal_class.full_signature: public static long toLong(Object propValue, long defaultValue)
focal_class.identifier: toLong
focal_class.modifiers: public static
focal_class.parameters: (Object propValue, long defaultValue)
focal_class.return: long
focal_class.signature: long toLong(Object propValue, long defaultValue)
focal_class.class_method_signature: PropertiesUtil.toInteger(Object propValue, int defaultValue)
focal_class.full_signature: public static int toInteger(Object propValue, int defaultValue)
focal_class.identifier: toInteger
focal_class.modifiers: public static
focal_class.parameters: (Object propValue, int defaultValue)
focal_class.return: int
focal_class.signature: int toInteger(Object propValue, int defaultValue)
focal_class.class_method_signature: PropertiesUtil.toDouble(Object propValue, double defaultValue)
focal_class.full_signature: public static double toDouble(Object propValue, double defaultValue)
focal_class.identifier: toDouble
focal_class.modifiers: public static
focal_class.parameters: (Object propValue, double defaultValue)
focal_class.return: double
focal_class.signature: double toDouble(Object propValue, double defaultValue)
focal_class.class_method_signature: PropertiesUtil.toObject(Object propValue)
focal_class.full_signature: public static Object toObject(Object propValue)
focal_class.identifier: toObject
focal_class.modifiers: public static
focal_class.parameters: (Object propValue)
focal_class.return: Object
focal_class.signature: Object toObject(Object propValue)
focal_class.class_method_signature: PropertiesUtil.toStringArray(Object propValue)
focal_class.full_signature: public static String[] toStringArray(Object propValue)
focal_class.identifier: toStringArray
focal_class.modifiers: public static
focal_class.parameters: (Object propValue)
focal_class.return: String[]
focal_class.signature: String[] toStringArray(Object propValue)
focal_class.class_method_signature: PropertiesUtil.toStringArray(Object propValue, String[] defaultArray)
focal_class.full_signature: public static String[] toStringArray(Object propValue, String[] defaultArray)
focal_class.identifier: toStringArray
focal_class.modifiers: public static
focal_class.parameters: (Object propValue, String[] defaultArray)
focal_class.return: String[]
focal_class.signature: String[] toStringArray(Object propValue, String[] defaultArray)
focal_class.class_method_signature: PropertiesUtil.populate(Object instance, Map<String,?> config, boolean validate)
focal_class.full_signature: @SuppressWarnings("unchecked") public static void populate(Object instance, Map<String,?> config, boolean validate)
focal_class.identifier: populate
focal_class.modifiers: @SuppressWarnings("unchecked") public static
focal_class.parameters: (Object instance, Map<String,?> config, boolean validate)
focal_class.return: void
focal_class.signature: void populate(Object instance, Map<String,?> config, boolean validate)
focal_class.class_method_signature: PropertiesUtil.getSetters(Class<?> klass)
focal_class.full_signature: private static Map<String, Method> getSetters(Class<?> klass)
focal_class.identifier: getSetters
focal_class.modifiers: private static
focal_class.parameters: (Class<?> klass)
focal_class.return: Map<String, Method>
focal_class.signature: Map<String, Method> getSetters(Class<?> klass)
focal_class.class_method_signature: PropertiesUtil.setProperty(
              Object instance, String name, Method setter, Object value)
focal_class.full_signature: private static void setProperty(
              Object instance, String name, Method setter, Object value)
focal_class.identifier: setProperty
focal_class.modifiers: private static
focal_class.parameters: (
              Object instance, String name, Method setter, Object value)
focal_class.return: void
focal_class.signature: void setProperty(
              Object instance, String name, Method setter, Object value)
focal_method.body: public static String[] toStringArray(Object propValue) {
          return toStringArray(propValue, null);
      }
focal_method.class_method_signature: PropertiesUtil.toStringArray(Object propValue)
focal_method.full_signature: public static String[] toStringArray(Object propValue)
focal_method.identifier: toStringArray
focal_method.invocations: toStringArray
focal_method.modifiers: public static
focal_method.parameters: (Object propValue)
focal_method.return: String[]
focal_method.signature: String[] toStringArray(Object propValue)