test_class.file: alien4cloud-common/src/test/java/alien4cloud/utils/NameValidationUtilsTest.java
test_class.identifier: NameValidationUtilsTest
test_case.body: @Test
      public void isValidTest() {
          Assert.assertTrue(NameValidationUtils.isValid("Compute"));
          Assert.assertTrue(NameValidationUtils.isValid("Compute_2"));
  
          Assert.assertFalse(NameValidationUtils.isValid("Computé"));
          Assert.assertFalse(NameValidationUtils.isValid("Compute-2"));
          Assert.assertFalse(NameValidationUtils.isValid("Compute.unix"));
          Assert.assertFalse(NameValidationUtils.isValid("Compute 2"));
      }
test_case.class_method_signature: NameValidationUtilsTest.isValidTest()
test_case.full_signature: @Test public void isValidTest()
test_case.identifier: isValidTest
test_case.invocations: assertTrue isValid assertTrue isValid assertFalse isValid assertFalse isValid assertFalse isValid assertFalse isValid
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void isValidTest()
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: private static boolean isValid(String name, String regex) {
          return Pattern.matches(regex, name);
      }
focal_method.class_method_signature: NameValidationUtils.isValid(String name, String regex)
focal_method.full_signature: private static boolean isValid(String name, String regex)
focal_method.identifier: isValid
focal_method.invocations: matches
focal_method.modifiers: private static
focal_method.parameters: (String name, String regex)
focal_method.return: boolean
focal_method.signature: boolean isValid(String name, String regex)