test_class.file: vault-core/src/test/java/org/apache/jackrabbit/vault/util/DocViewPropertyTest.java
test_class.identifier: DocViewPropertyTest
test_case.body: @Test
      public void testEscape() {
          assertEscaped("hello", "hello", false);
          assertEscaped("hello, world", "hello, world", false);
          assertEscaped("hello, world", "hello\\, world", true);
          assertEscaped("[hello]", "\\[hello]", false);
          assertEscaped("[hello]", "[hello]", true);
          assertEscaped("{hello}", "\\{hello}", false);
          assertEscaped("{hello}", "{hello}", true);
          assertEscaped("hello\u000fworld", "hello\\u000fworld", false);
          assertEscaped("hello\u000fworld", "hello\\u000fworld", true);
          assertEscaped("hello\\world", "hello\\\\world", false);
          assertEscaped("hello\\world", "hello\\\\world", true);
      }
test_case.class_method_signature: DocViewPropertyTest.testEscape()
test_case.full_signature: @Test public void testEscape()
test_case.identifier: testEscape
test_case.invocations: assertEscaped assertEscaped assertEscaped assertEscaped assertEscaped assertEscaped assertEscaped assertEscaped assertEscaped assertEscaped assertEscaped
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEscape()
focal_class.declarator: BINARY_REF = "BinaryRef"
focal_class.modifier: private static final
focal_class.original_string: private static final String BINARY_REF = "BinaryRef";
focal_class.type: String
focal_class.var_name: BINARY_REF
focal_class.declarator: name
focal_class.modifier: public final
focal_class.original_string: public final String name;
focal_class.type: String
focal_class.var_name: name
focal_class.declarator: values
focal_class.modifier: public final
focal_class.original_string: public final String[] values;
focal_class.type: String[]
focal_class.var_name: values
focal_class.declarator: isMulti
focal_class.modifier: public final
focal_class.original_string: public final boolean isMulti;
focal_class.type: boolean
focal_class.var_name: isMulti
focal_class.declarator: type
focal_class.modifier: public final
focal_class.original_string: public final int type;
focal_class.type: int
focal_class.var_name: type
focal_class.declarator: isReferenceProperty
focal_class.modifier: public final
focal_class.original_string: public final boolean isReferenceProperty;
focal_class.type: boolean
focal_class.var_name: isReferenceProperty
focal_class.declarator: UNAMBIGOUS = new HashSet<String>()
focal_class.modifier: private static final
focal_class.original_string: private static final Set<String> UNAMBIGOUS = new HashSet<String>();
focal_class.type: Set<String>
focal_class.var_name: UNAMBIGOUS
focal_class.file: vault-core/src/main/java/org/apache/jackrabbit/vault/util/DocViewProperty.java
focal_class.identifier: DocViewProperty
focal_class.class_method_signature: DocViewProperty.DocViewProperty(String name, String[] values, boolean multi, int type)
focal_class.full_signature: public  DocViewProperty(String name, String[] values, boolean multi, int type)
focal_class.identifier: DocViewProperty
focal_class.modifiers: public
focal_class.parameters: (String name, String[] values, boolean multi, int type)
focal_class.signature:  DocViewProperty(String name, String[] values, boolean multi, int type)
focal_class.class_method_signature: DocViewProperty.DocViewProperty(String name, String[] values, boolean multi, int type, boolean isRef)
focal_class.full_signature: public  DocViewProperty(String name, String[] values, boolean multi, int type, boolean isRef)
focal_class.identifier: DocViewProperty
focal_class.modifiers: public
focal_class.parameters: (String name, String[] values, boolean multi, int type, boolean isRef)
focal_class.signature:  DocViewProperty(String name, String[] values, boolean multi, int type, boolean isRef)
focal_class.class_method_signature: DocViewProperty.parse(String name, String value)
focal_class.full_signature: public static DocViewProperty parse(String name, String value)
focal_class.identifier: parse
focal_class.modifiers: public static
focal_class.parameters: (String name, String value)
focal_class.return: DocViewProperty
focal_class.signature: DocViewProperty parse(String name, String value)
focal_class.class_method_signature: DocViewProperty.format(Property prop)
focal_class.full_signature: public static String format(Property prop)
focal_class.identifier: format
focal_class.modifiers: public static
focal_class.parameters: (Property prop)
focal_class.return: String
focal_class.signature: String format(Property prop)
focal_class.class_method_signature: DocViewProperty.format(Property prop, boolean sort, boolean useBinaryReferences)
focal_class.full_signature: public static String format(Property prop, boolean sort, boolean useBinaryReferences)
focal_class.identifier: format
focal_class.modifiers: public static
focal_class.parameters: (Property prop, boolean sort, boolean useBinaryReferences)
focal_class.return: String
focal_class.signature: String format(Property prop, boolean sort, boolean useBinaryReferences)
focal_class.class_method_signature: DocViewProperty.escape(StringBuffer buf, String value, boolean isMulti)
focal_class.full_signature: protected static void escape(StringBuffer buf, String value, boolean isMulti)
focal_class.identifier: escape
focal_class.modifiers: protected static
focal_class.parameters: (StringBuffer buf, String value, boolean isMulti)
focal_class.return: void
focal_class.signature: void escape(StringBuffer buf, String value, boolean isMulti)
focal_class.class_method_signature: DocViewProperty.isAmbiguous(Property prop)
focal_class.full_signature: public static boolean isAmbiguous(Property prop)
focal_class.identifier: isAmbiguous
focal_class.modifiers: public static
focal_class.parameters: (Property prop)
focal_class.return: boolean
focal_class.signature: boolean isAmbiguous(Property prop)
focal_class.class_method_signature: DocViewProperty.apply(Node node)
focal_class.full_signature: public boolean apply(Node node)
focal_class.identifier: apply
focal_class.modifiers: public
focal_class.parameters: (Node node)
focal_class.return: boolean
focal_class.signature: boolean apply(Node node)
focal_class.class_method_signature: DocViewProperty.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: DocViewProperty.equals(Object obj)
focal_class.full_signature: @Override public boolean equals(Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(Object obj)
focal_class.class_method_signature: DocViewProperty.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: protected static void escape(StringBuffer buf, String value, boolean isMulti) {
          for (int i=0; i<value.length(); i++) {
              char c = value.charAt(i);
              if (c == '\\') {
                  buf.append("\\\\");
              } else if (c == ',' && isMulti) {
                  buf.append("\\,");
              } else if (i == 0 && !isMulti && (c == '[' || c == '{')) {
                  buf.append('\\').append(c);
              } else if ( XMLChar.isInvalid(c)) {
                  buf.append("\\u");
                  buf.append(Text.hexTable[(c >> 12) & 15]);
                  buf.append(Text.hexTable[(c >> 8) & 15]);
                  buf.append(Text.hexTable[(c >> 4) & 15]);
                  buf.append(Text.hexTable[c & 15]);
              } else {
                  buf.append(c);
              }
          }
      }
focal_method.class_method_signature: DocViewProperty.escape(StringBuffer buf, String value, boolean isMulti)
focal_method.full_signature: protected static void escape(StringBuffer buf, String value, boolean isMulti)
focal_method.identifier: escape
focal_method.invocations: length charAt append append append append isInvalid append append append append append append
focal_method.modifiers: protected static
focal_method.parameters: (StringBuffer buf, String value, boolean isMulti)
focal_method.return: void
focal_method.signature: void escape(StringBuffer buf, String value, boolean isMulti)