test_class.declarator: modelNode
test_class.modifier: private
test_class.original_string: private ModelNode modelNode;
test_class.type: ModelNode
test_class.var_name: modelNode
test_class.declarator: foo
test_class.modifier: private
test_class.original_string: private ModelNode foo;
test_class.type: ModelNode
test_class.var_name: foo
test_class.declarator: bar
test_class.modifier: private
test_class.original_string: private ModelNode bar;
test_class.type: ModelNode
test_class.var_name: bar
test_class.file: dmr/src/test/java/org/jboss/hal/dmr/ModelNodeHelperTest.java
test_class.identifier: ModelNodeHelperTest
test_case.body: @Test
      public void invalidPath() {
          assertFalse(ModelNodeHelper.failSafeGet(modelNode, "/").isDefined());
      }
test_case.class_method_signature: ModelNodeHelperTest.invalidPath()
test_case.full_signature: @Test public void invalidPath()
test_case.identifier: invalidPath
test_case.invocations: assertFalse isDefined failSafeGet
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void invalidPath()
focal_class.declarator: ENCODED_SLASH = "%2F"
focal_class.modifier: private static final
focal_class.original_string: private static final String ENCODED_SLASH = "%2F";
focal_class.type: String
focal_class.var_name: ENCODED_SLASH
focal_class.declarator: ISO_8601 = GWT.isScript() ? DateTimeFormat.getFormat(
              DateTimeFormat.PredefinedFormat.ISO_8601) : null
focal_class.modifier: private static final
focal_class.original_string: private static final DateTimeFormat ISO_8601 = GWT.isScript() ? DateTimeFormat.getFormat(
              DateTimeFormat.PredefinedFormat.ISO_8601) : null;
focal_class.type: DateTimeFormat
focal_class.var_name: ISO_8601
focal_class.file: dmr/src/main/java/org/jboss/hal/dmr/ModelNodeHelper.java
focal_class.identifier: ModelNodeHelper
focal_class.class_method_signature: ModelNodeHelper.encodeValue(String value)
focal_class.full_signature: @JsIgnore public static String encodeValue(String value)
focal_class.identifier: encodeValue
focal_class.modifiers: @JsIgnore public static
focal_class.parameters: (String value)
focal_class.return: String
focal_class.signature: String encodeValue(String value)
focal_class.class_method_signature: ModelNodeHelper.decodeValue(String value)
focal_class.full_signature: @JsIgnore public static String decodeValue(String value)
focal_class.identifier: decodeValue
focal_class.modifiers: @JsIgnore public static
focal_class.parameters: (String value)
focal_class.return: String
focal_class.signature: String decodeValue(String value)
focal_class.class_method_signature: ModelNodeHelper.failSafeGet(ModelNode modelNode, String path)
focal_class.full_signature: public static ModelNode failSafeGet(ModelNode modelNode, String path)
focal_class.identifier: failSafeGet
focal_class.modifiers: public static
focal_class.parameters: (ModelNode modelNode, String path)
focal_class.return: ModelNode
focal_class.signature: ModelNode failSafeGet(ModelNode modelNode, String path)
focal_class.class_method_signature: ModelNodeHelper.failSafeBoolean(ModelNode modelNode, String path)
focal_class.full_signature: public static boolean failSafeBoolean(ModelNode modelNode, String path)
focal_class.identifier: failSafeBoolean
focal_class.modifiers: public static
focal_class.parameters: (ModelNode modelNode, String path)
focal_class.return: boolean
focal_class.signature: boolean failSafeBoolean(ModelNode modelNode, String path)
focal_class.class_method_signature: ModelNodeHelper.failSafeDate(ModelNode modelNode, String path)
focal_class.full_signature: @JsIgnore public static Date failSafeDate(ModelNode modelNode, String path)
focal_class.identifier: failSafeDate
focal_class.modifiers: @JsIgnore public static
focal_class.parameters: (ModelNode modelNode, String path)
focal_class.return: Date
focal_class.signature: Date failSafeDate(ModelNode modelNode, String path)
focal_class.class_method_signature: ModelNodeHelper.failSafeList(ModelNode modelNode, String path)
focal_class.full_signature: @JsIgnore public static List<ModelNode> failSafeList(ModelNode modelNode, String path)
focal_class.identifier: failSafeList
focal_class.modifiers: @JsIgnore public static
focal_class.parameters: (ModelNode modelNode, String path)
focal_class.return: List<ModelNode>
focal_class.signature: List<ModelNode> failSafeList(ModelNode modelNode, String path)
focal_class.class_method_signature: ModelNodeHelper.failSafePropertyList(ModelNode modelNode, String path)
focal_class.full_signature: @JsIgnore public static List<Property> failSafePropertyList(ModelNode modelNode, String path)
focal_class.identifier: failSafePropertyList
focal_class.modifiers: @JsIgnore public static
focal_class.parameters: (ModelNode modelNode, String path)
focal_class.return: List<Property>
focal_class.signature: List<Property> failSafePropertyList(ModelNode modelNode, String path)
focal_class.class_method_signature: ModelNodeHelper.getOrDefault(ModelNode modelNode, String attribute, Supplier<T> supplier, T defaultValue)
focal_class.full_signature: @JsIgnore public static T getOrDefault(ModelNode modelNode, String attribute, Supplier<T> supplier, T defaultValue)
focal_class.identifier: getOrDefault
focal_class.modifiers: @JsIgnore public static
focal_class.parameters: (ModelNode modelNode, String attribute, Supplier<T> supplier, T defaultValue)
focal_class.return: T
focal_class.signature: T getOrDefault(ModelNode modelNode, String attribute, Supplier<T> supplier, T defaultValue)
focal_class.class_method_signature: ModelNodeHelper.storeIndex(List<ModelNode> modelNodes)
focal_class.full_signature: @JsIgnore public static void storeIndex(List<ModelNode> modelNodes)
focal_class.identifier: storeIndex
focal_class.modifiers: @JsIgnore public static
focal_class.parameters: (List<ModelNode> modelNodes)
focal_class.return: void
focal_class.signature: void storeIndex(List<ModelNode> modelNodes)
focal_class.class_method_signature: ModelNodeHelper.asNamedNodes(List<Property> properties)
focal_class.full_signature: @JsIgnore public static List<NamedNode> asNamedNodes(List<Property> properties)
focal_class.identifier: asNamedNodes
focal_class.modifiers: @JsIgnore public static
focal_class.parameters: (List<Property> properties)
focal_class.return: List<NamedNode>
focal_class.signature: List<NamedNode> asNamedNodes(List<Property> properties)
focal_class.class_method_signature: ModelNodeHelper.asEnumValue(ModelNode modelNode, String attribute, Function<String, E> valueOf,
              E defaultValue)
focal_class.full_signature: @JsIgnore public static E asEnumValue(ModelNode modelNode, String attribute, Function<String, E> valueOf,
              E defaultValue)
focal_class.identifier: asEnumValue
focal_class.modifiers: @JsIgnore public static
focal_class.parameters: (ModelNode modelNode, String attribute, Function<String, E> valueOf,
              E defaultValue)
focal_class.return: E
focal_class.signature: E asEnumValue(ModelNode modelNode, String attribute, Function<String, E> valueOf,
              E defaultValue)
focal_class.class_method_signature: ModelNodeHelper.asEnumValue(ModelNode modelNode, Function<String, E> valueOf, E defaultValue)
focal_class.full_signature: @JsIgnore public static E asEnumValue(ModelNode modelNode, Function<String, E> valueOf, E defaultValue)
focal_class.identifier: asEnumValue
focal_class.modifiers: @JsIgnore public static
focal_class.parameters: (ModelNode modelNode, Function<String, E> valueOf, E defaultValue)
focal_class.return: E
focal_class.signature: E asEnumValue(ModelNode modelNode, Function<String, E> valueOf, E defaultValue)
focal_class.class_method_signature: ModelNodeHelper.asAttributeValue(E enumValue)
focal_class.full_signature: @JsIgnore public static String asAttributeValue(E enumValue)
focal_class.identifier: asAttributeValue
focal_class.modifiers: @JsIgnore public static
focal_class.parameters: (E enumValue)
focal_class.return: String
focal_class.signature: String asAttributeValue(E enumValue)
focal_class.class_method_signature: ModelNodeHelper.move(ModelNode modelNode, String source, String destination)
focal_class.full_signature: public static void move(ModelNode modelNode, String source, String destination)
focal_class.identifier: move
focal_class.modifiers: public static
focal_class.parameters: (ModelNode modelNode, String source, String destination)
focal_class.return: void
focal_class.signature: void move(ModelNode modelNode, String source, String destination)
focal_class.class_method_signature: ModelNodeHelper.properties(String... properties)
focal_class.full_signature: public static ModelNode properties(String... properties)
focal_class.identifier: properties
focal_class.modifiers: public static
focal_class.parameters: (String... properties)
focal_class.return: ModelNode
focal_class.signature: ModelNode properties(String... properties)
focal_class.class_method_signature: ModelNodeHelper.ModelNodeHelper()
focal_class.full_signature: private  ModelNodeHelper()
focal_class.identifier: ModelNodeHelper
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  ModelNodeHelper()
focal_class.class_method_signature: ModelNodeHelper.jsFailSafeList(ModelNode modelNode, String path)
focal_class.full_signature: @JsMethod(name = "failSafeList") @EsReturn("ModelNode[]") public static ModelNode[] jsFailSafeList(ModelNode modelNode, String path)
focal_class.identifier: jsFailSafeList
focal_class.modifiers: @JsMethod(name = "failSafeList") @EsReturn("ModelNode[]") public static
focal_class.parameters: (ModelNode modelNode, String path)
focal_class.return: ModelNode[]
focal_class.signature: ModelNode[] jsFailSafeList(ModelNode modelNode, String path)
focal_class.class_method_signature: ModelNodeHelper.jsFailSafePropertyList(ModelNode modelNode, String path)
focal_class.full_signature: @JsMethod(name = "failSafePropertyList") @EsReturn("Property[]") public static Property[] jsFailSafePropertyList(ModelNode modelNode, String path)
focal_class.identifier: jsFailSafePropertyList
focal_class.modifiers: @JsMethod(name = "failSafePropertyList") @EsReturn("Property[]") public static
focal_class.parameters: (ModelNode modelNode, String path)
focal_class.return: Property[]
focal_class.signature: Property[] jsFailSafePropertyList(ModelNode modelNode, String path)
focal_class.class_method_signature: ModelNodeHelper.jsAsNamedNodes(@EsParam("Property[]") Property[] properties)
focal_class.full_signature: @JsMethod(name = "asNamedNodes") @EsReturn("NamedNode[]") public static NamedNode[] jsAsNamedNodes(@EsParam("Property[]") Property[] properties)
focal_class.identifier: jsAsNamedNodes
focal_class.modifiers: @JsMethod(name = "asNamedNodes") @EsReturn("NamedNode[]") public static
focal_class.parameters: (@EsParam("Property[]") Property[] properties)
focal_class.return: NamedNode[]
focal_class.signature: NamedNode[] jsAsNamedNodes(@EsParam("Property[]") Property[] properties)
focal_method.body: public static ModelNode failSafeGet(ModelNode modelNode, String path) {
          ModelNode undefined = new ModelNode();
  
          if (Strings.emptyToNull(path) != null) {
              Iterable<String> keys = Splitter.on('/').omitEmptyStrings().trimResults().split(path);
              if (!Iterables.isEmpty(keys)) {
                  ModelNode context = modelNode;
                  for (String key : keys) {
                      String safeKey = decodeValue(key);
                      if (context.hasDefined(safeKey)) {
                          context = context.get(safeKey);
                      } else {
                          context = undefined;
                          break;
                      }
                  }
                  return context;
              }
          }
  
          return undefined;
      }
focal_method.class_method_signature: ModelNodeHelper.failSafeGet(ModelNode modelNode, String path)
focal_method.full_signature: public static ModelNode failSafeGet(ModelNode modelNode, String path)
focal_method.identifier: failSafeGet
focal_method.invocations: emptyToNull split trimResults omitEmptyStrings on isEmpty decodeValue hasDefined get
focal_method.modifiers: public static
focal_method.parameters: (ModelNode modelNode, String path)
focal_method.return: ModelNode
focal_method.signature: ModelNode failSafeGet(ModelNode modelNode, String path)