test_class.declarator: validator = new NameValidator(newNamespaceNode("valid"), false)
test_class.modifier: private final
test_class.original_string: private final Validator validator = new NameValidator(newNamespaceNode("valid"), false);
test_class.type: Validator
test_class.var_name: validator
test_class.file: oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/name/NameValidatorTest.java
test_class.identifier: NameValidatorTest
test_case.body: @Test
      public void testEscaping() {
          assertEquals("abc", NameValidator.getPrintableName("abc"));
          assertEquals("\\t\\r\\n\\b\\f", NameValidator.getPrintableName("\t\r\n\b\f"));
          assertEquals("\\u00e0", NameValidator.getPrintableName("\u00e0"));
      }
test_case.class_method_signature: NameValidatorTest.testEscaping()
test_case.full_signature: @Test public void testEscaping()
test_case.identifier: testEscaping
test_case.invocations: assertEquals getPrintableName assertEquals getPrintableName assertEquals getPrintableName
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEscaping()
focal_class.declarator: LOG = LoggerFactory.getLogger(NameValidator.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(NameValidator.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: namespaces
focal_class.modifier: private final
focal_class.original_string: private final NodeState namespaces;
focal_class.type: NodeState
focal_class.var_name: namespaces
focal_class.declarator: prefixes
focal_class.modifier: private final
focal_class.original_string: private final Set<String> prefixes;
focal_class.type: Set<String>
focal_class.var_name: prefixes
focal_class.declarator: initPhase
focal_class.modifier: private final
focal_class.original_string: private final boolean initPhase;
focal_class.type: boolean
focal_class.var_name: initPhase
focal_class.declarator: strictInitialNSChecks = Boolean.getBoolean("oak.strictInitialNSChecks")
focal_class.modifier: private final
focal_class.original_string: private final boolean strictInitialNSChecks = Boolean.getBoolean("oak.strictInitialNSChecks");
focal_class.type: boolean
focal_class.var_name: strictInitialNSChecks
focal_class.file: oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/name/NameValidator.java
focal_class.identifier: NameValidator
focal_class.class_method_signature: NameValidator.NameValidator(NodeState namespaces, boolean initPhase)
focal_class.full_signature:   NameValidator(NodeState namespaces, boolean initPhase)
focal_class.identifier: NameValidator
focal_class.parameters: (NodeState namespaces, boolean initPhase)
focal_class.signature:  NameValidator(NodeState namespaces, boolean initPhase)
focal_class.class_method_signature: NameValidator.getPrintableName(String s)
focal_class.full_signature: protected static String getPrintableName(String s)
focal_class.identifier: getPrintableName
focal_class.modifiers: protected static
focal_class.parameters: (String s)
focal_class.return: String
focal_class.signature: String getPrintableName(String s)
focal_class.class_method_signature: NameValidator.checkValidName(String name)
focal_class.full_signature: protected void checkValidName(String name)
focal_class.identifier: checkValidName
focal_class.modifiers: protected
focal_class.parameters: (String name)
focal_class.return: void
focal_class.signature: void checkValidName(String name)
focal_class.class_method_signature: NameValidator.checkPrefix(String prefix)
focal_class.full_signature: private void checkPrefix(String prefix)
focal_class.identifier: checkPrefix
focal_class.modifiers: private
focal_class.parameters: (String prefix)
focal_class.return: void
focal_class.signature: void checkPrefix(String prefix)
focal_class.class_method_signature: NameValidator.contains(Set<String> prefixes, NodeState namespaces, String prefix)
focal_class.full_signature: private static boolean contains(Set<String> prefixes, NodeState namespaces, String prefix)
focal_class.identifier: contains
focal_class.modifiers: private static
focal_class.parameters: (Set<String> prefixes, NodeState namespaces, String prefix)
focal_class.return: boolean
focal_class.signature: boolean contains(Set<String> prefixes, NodeState namespaces, String prefix)
focal_class.class_method_signature: NameValidator.checkValidValue(PropertyState property)
focal_class.full_signature: protected void checkValidValue(PropertyState property)
focal_class.identifier: checkValidValue
focal_class.modifiers: protected
focal_class.parameters: (PropertyState property)
focal_class.return: void
focal_class.signature: void checkValidValue(PropertyState property)
focal_class.class_method_signature: NameValidator.checkValidValue(String value)
focal_class.full_signature: protected void checkValidValue(String value)
focal_class.identifier: checkValidValue
focal_class.modifiers: protected
focal_class.parameters: (String value)
focal_class.return: void
focal_class.signature: void checkValidValue(String value)
focal_class.class_method_signature: NameValidator.propertyAdded(PropertyState after)
focal_class.full_signature: @Override public void propertyAdded(PropertyState after)
focal_class.identifier: propertyAdded
focal_class.modifiers: @Override public
focal_class.parameters: (PropertyState after)
focal_class.return: void
focal_class.signature: void propertyAdded(PropertyState after)
focal_class.class_method_signature: NameValidator.propertyChanged(PropertyState before, PropertyState after)
focal_class.full_signature: @Override public void propertyChanged(PropertyState before, PropertyState after)
focal_class.identifier: propertyChanged
focal_class.modifiers: @Override public
focal_class.parameters: (PropertyState before, PropertyState after)
focal_class.return: void
focal_class.signature: void propertyChanged(PropertyState before, PropertyState after)
focal_class.class_method_signature: NameValidator.propertyDeleted(PropertyState before)
focal_class.full_signature: @Override public void propertyDeleted(PropertyState before)
focal_class.identifier: propertyDeleted
focal_class.modifiers: @Override public
focal_class.parameters: (PropertyState before)
focal_class.return: void
focal_class.signature: void propertyDeleted(PropertyState before)
focal_class.class_method_signature: NameValidator.childNodeAdded(String name, NodeState after)
focal_class.full_signature: @Override public Validator childNodeAdded(String name, NodeState after)
focal_class.identifier: childNodeAdded
focal_class.modifiers: @Override public
focal_class.parameters: (String name, NodeState after)
focal_class.return: Validator
focal_class.signature: Validator childNodeAdded(String name, NodeState after)
focal_class.class_method_signature: NameValidator.childNodeChanged(
              String name, NodeState before, NodeState after)
focal_class.full_signature: @Override public Validator childNodeChanged(
              String name, NodeState before, NodeState after)
focal_class.identifier: childNodeChanged
focal_class.modifiers: @Override public
focal_class.parameters: (
              String name, NodeState before, NodeState after)
focal_class.return: Validator
focal_class.signature: Validator childNodeChanged(
              String name, NodeState before, NodeState after)
focal_class.class_method_signature: NameValidator.childNodeDeleted(String name, NodeState before)
focal_class.full_signature: @Override public Validator childNodeDeleted(String name, NodeState before)
focal_class.identifier: childNodeDeleted
focal_class.modifiers: @Override public
focal_class.parameters: (String name, NodeState before)
focal_class.return: Validator
focal_class.signature: Validator childNodeDeleted(String name, NodeState before)
focal_class.superclass: extends DefaultValidator
focal_method.body: protected static String getPrintableName(String s) {
          StringBuilder sb = new StringBuilder();
          for (int i = 0; i < s.length(); i++) {
              char c = s.charAt(i);
              if (c >= ' ' && c < 127) {
                  sb.append(c);
              } else if (c == '\b') {
                  sb.append("\\b");
              } else if (c == '\f') {
                  sb.append("\\f");
              } else if (c == '\n') {
                  sb.append("\\n");
              } else if (c == '\r') {
                  sb.append("\\r");
              } else if (c == '\t') {
                  sb.append("\\t");
              } else {
                  sb.append(String.format("\\u%04x", (int) c));
              }
          }
          return sb.toString();
      }
focal_method.class_method_signature: NameValidator.getPrintableName(String s)
focal_method.full_signature: protected static String getPrintableName(String s)
focal_method.identifier: getPrintableName
focal_method.invocations: length charAt append append append append append append append format toString
focal_method.modifiers: protected static
focal_method.parameters: (String s)
focal_method.return: String
focal_method.signature: String getPrintableName(String s)