test_class.file: alien4cloud-common/src/test/java/alien4cloud/utils/NameValidationUtilsTest.java
test_class.identifier: NameValidationUtilsTest
test_case.body: @Test
      public void validateNodeNameTest() {
          NameValidationUtils.validateNodeName("Compute");
          NameValidationUtils.validateNodeName("Compute_2");
  
          List<String> invalids = Lists.newArrayList("Computé", "Compute-2", "Compute.unix", "Compute 2");
          invalids.forEach(invalid -> {
              expectException(new Callable() {
                  @Override
                  public Object call() throws Exception {
                      NameValidationUtils.validateNodeName(invalid);
                      return null;
                  }
              }, InvalidNameException.class);
          });
      }
test_case.class_method_signature: NameValidationUtilsTest.validateNodeNameTest()
test_case.full_signature: @Test public void validateNodeNameTest()
test_case.identifier: validateNodeNameTest
test_case.invocations: validateNodeName validateNodeName newArrayList forEach expectException validateNodeName
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void validateNodeNameTest()
focal_class.declarator: DEFAULT_NAME_REGEX = "^\\w+$"
focal_class.modifier: public static final
focal_class.original_string: public static final String DEFAULT_NAME_REGEX = "^\\w+$";
focal_class.type: String
focal_class.var_name: DEFAULT_NAME_REGEX
focal_class.declarator: DEFAULT_NAME_REPLACE_PATTERN = Pattern.compile("\\W")
focal_class.modifier: public static final
focal_class.original_string: public static final Pattern DEFAULT_NAME_REPLACE_PATTERN = Pattern.compile("\\W");
focal_class.type: Pattern
focal_class.var_name: DEFAULT_NAME_REPLACE_PATTERN
focal_class.declarator: APPLICATION_NAME_REGEX = "[^/\\\\]+"
focal_class.modifier: public static final
focal_class.original_string: public static final String APPLICATION_NAME_REGEX = "[^/\\\\]+";
focal_class.type: String
focal_class.var_name: APPLICATION_NAME_REGEX
focal_class.declarator: NODE_NAME_REGEX = DEFAULT_NAME_REGEX
focal_class.modifier: public static final
focal_class.original_string: public static final String NODE_NAME_REGEX = DEFAULT_NAME_REGEX;
focal_class.type: String
focal_class.var_name: NODE_NAME_REGEX
focal_class.file: alien4cloud-common/src/main/java/alien4cloud/utils/NameValidationUtils.java
focal_class.identifier: NameValidationUtils
focal_class.class_method_signature: NameValidationUtils.isValid(String name, String regex)
focal_class.full_signature: private static boolean isValid(String name, String regex)
focal_class.identifier: isValid
focal_class.modifiers: private static
focal_class.parameters: (String name, String regex)
focal_class.return: boolean
focal_class.signature: boolean isValid(String name, String regex)
focal_class.class_method_signature: NameValidationUtils.isValid(String name)
focal_class.full_signature: public static boolean isValid(String name)
focal_class.identifier: isValid
focal_class.modifiers: public static
focal_class.parameters: (String name)
focal_class.return: boolean
focal_class.signature: boolean isValid(String name)
focal_class.class_method_signature: NameValidationUtils.validate(String ownerKey, String name, String regex, String message)
focal_class.full_signature: private static void validate(String ownerKey, String name, String regex, String message)
focal_class.identifier: validate
focal_class.modifiers: private static
focal_class.parameters: (String ownerKey, String name, String regex, String message)
focal_class.return: void
focal_class.signature: void validate(String ownerKey, String name, String regex, String message)
focal_class.class_method_signature: NameValidationUtils.validate(String ownerKey, String name)
focal_class.full_signature: public static void validate(String ownerKey, String name)
focal_class.identifier: validate
focal_class.modifiers: public static
focal_class.parameters: (String ownerKey, String name)
focal_class.return: void
focal_class.signature: void validate(String ownerKey, String name)
focal_class.class_method_signature: NameValidationUtils.validateApplicationName(String name)
focal_class.full_signature: public static void validateApplicationName(String name)
focal_class.identifier: validateApplicationName
focal_class.modifiers: public static
focal_class.parameters: (String name)
focal_class.return: void
focal_class.signature: void validateApplicationName(String name)
focal_class.class_method_signature: NameValidationUtils.validateApplicationId(String id)
focal_class.full_signature: public static void validateApplicationId(String id)
focal_class.identifier: validateApplicationId
focal_class.modifiers: public static
focal_class.parameters: (String id)
focal_class.return: void
focal_class.signature: void validateApplicationId(String id)
focal_class.class_method_signature: NameValidationUtils.validateNodeName(String name)
focal_class.full_signature: public static void validateNodeName(String name)
focal_class.identifier: validateNodeName
focal_class.modifiers: public static
focal_class.parameters: (String name)
focal_class.return: void
focal_class.signature: void validateNodeName(String name)
focal_method.body: public static void validateNodeName(String name) {
          String message = "Nodetemplate name <" + name + "> contains forbidden characters. Only alphanumeric and _ characters are allowed here.";
          validate("nodetemplateName", name, NODE_NAME_REGEX, message);
      }
focal_method.class_method_signature: NameValidationUtils.validateNodeName(String name)
focal_method.full_signature: public static void validateNodeName(String name)
focal_method.identifier: validateNodeName
focal_method.invocations: validate
focal_method.modifiers: public static
focal_method.parameters: (String name)
focal_method.return: void
focal_method.signature: void validateNodeName(String name)