test_class.declarator: history
test_class.modifier: private
test_class.original_string: private SplitHistory history;
test_class.type: SplitHistory
test_class.var_name: history
test_class.declarator: historySplit
test_class.modifier: private
test_class.original_string: private SplitHistory[] historySplit;
test_class.type: SplitHistory[]
test_class.var_name: historySplit
test_class.file: commons/flow/src/test/java/org/openehealth/ipf/commons/flow/history/SplitHistoryTest.java
test_class.identifier: SplitHistoryTest
test_case.body: @Test
  	public void testParse() {
  		assertEquals(history, SplitHistory.parse("[(0/1)]"));
  		assertEquals(historySplit[0], SplitHistory.parse("[(0/1),(0/3)]"));
  		assertEquals(historySplit[1], SplitHistory.parse("[(0/1),(1/3)]"));
  		assertEquals(historySplit[2], SplitHistory.parse("[(0/1),(2/3)]"));
  	}
test_case.class_method_signature: SplitHistoryTest.testParse()
test_case.full_signature: @Test public void testParse()
test_case.identifier: testParse
test_case.invocations: assertEquals parse assertEquals parse assertEquals parse assertEquals parse
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testParse()
focal_class.declarator: ROOT = new SplitHistory()
focal_class.modifier: public static final
focal_class.original_string: public static final SplitHistory ROOT = new SplitHistory();
focal_class.type: SplitHistory
focal_class.var_name: ROOT
focal_class.declarator: PATH_OPEN = "["
focal_class.modifier: private static final
focal_class.original_string: private static final String PATH_OPEN = "[";
focal_class.type: String
focal_class.var_name: PATH_OPEN
focal_class.declarator: PATH_CLOSE = "]"
focal_class.modifier: private static final
focal_class.original_string: private static final String PATH_CLOSE = "]";
focal_class.type: String
focal_class.var_name: PATH_CLOSE
focal_class.declarator: PATH_SEP = ","
focal_class.modifier: private static final
focal_class.original_string: private static final String PATH_SEP = ",";
focal_class.type: String
focal_class.var_name: PATH_SEP
focal_class.declarator: PATTERN = "^\\" + PATH_OPEN + ".*\\" + PATH_CLOSE + "$"
focal_class.modifier: private static final
focal_class.original_string: private static final String PATTERN = "^\\" + PATH_OPEN + ".*\\" + PATH_CLOSE + "$";
focal_class.type: String
focal_class.var_name: PATTERN
focal_class.declarator: entries
focal_class.modifier: private final
focal_class.original_string: private final List<SplitHistoryEntry> entries;
focal_class.type: List<SplitHistoryEntry>
focal_class.var_name: entries
focal_class.file: commons/flow/src/main/java/org/openehealth/ipf/commons/flow/history/SplitHistory.java
focal_class.identifier: SplitHistory
focal_class.interfaces: implements Comparable<SplitHistory>, Serializable
focal_class.class_method_signature: SplitHistory.SplitHistory()
focal_class.full_signature: public  SplitHistory()
focal_class.identifier: SplitHistory
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  SplitHistory()
focal_class.class_method_signature: SplitHistory.SplitHistory(int initialCapacity)
focal_class.full_signature: public  SplitHistory(int initialCapacity)
focal_class.identifier: SplitHistory
focal_class.modifiers: public
focal_class.parameters: (int initialCapacity)
focal_class.signature:  SplitHistory(int initialCapacity)
focal_class.class_method_signature: SplitHistory.SplitHistory(boolean addRoot)
focal_class.full_signature: private  SplitHistory(boolean addRoot)
focal_class.identifier: SplitHistory
focal_class.modifiers: private
focal_class.parameters: (boolean addRoot)
focal_class.signature:  SplitHistory(boolean addRoot)
focal_class.class_method_signature: SplitHistory.SplitHistory(int initialCapacity, boolean addRoot)
focal_class.full_signature: private  SplitHistory(int initialCapacity, boolean addRoot)
focal_class.identifier: SplitHistory
focal_class.modifiers: private
focal_class.parameters: (int initialCapacity, boolean addRoot)
focal_class.signature:  SplitHistory(int initialCapacity, boolean addRoot)
focal_class.class_method_signature: SplitHistory.size()
focal_class.full_signature: public int size()
focal_class.identifier: size
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int size()
focal_class.class_method_signature: SplitHistory.entries()
focal_class.full_signature: public List<SplitHistoryEntry> entries()
focal_class.identifier: entries
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<SplitHistoryEntry>
focal_class.signature: List<SplitHistoryEntry> entries()
focal_class.class_method_signature: SplitHistory.indexPath()
focal_class.full_signature: public int[] indexPath()
focal_class.identifier: indexPath
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int[]
focal_class.signature: int[] indexPath()
focal_class.class_method_signature: SplitHistory.indexPathString()
focal_class.full_signature: public String indexPathString()
focal_class.identifier: indexPathString
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String indexPathString()
focal_class.class_method_signature: SplitHistory.split(int num)
focal_class.full_signature: public SplitHistory[] split(int num)
focal_class.identifier: split
focal_class.modifiers: public
focal_class.parameters: (int num)
focal_class.return: SplitHistory[]
focal_class.signature: SplitHistory[] split(int num)
focal_class.class_method_signature: SplitHistory.split(int index, boolean last)
focal_class.full_signature: public SplitHistory split(int index, boolean last)
focal_class.identifier: split
focal_class.modifiers: public
focal_class.parameters: (int index, boolean last)
focal_class.return: SplitHistory
focal_class.signature: SplitHistory split(int index, boolean last)
focal_class.class_method_signature: SplitHistory.compareTo(SplitHistory history)
focal_class.full_signature: @Override public int compareTo(SplitHistory history)
focal_class.identifier: compareTo
focal_class.modifiers: @Override public
focal_class.parameters: (SplitHistory history)
focal_class.return: int
focal_class.signature: int compareTo(SplitHistory history)
focal_class.class_method_signature: SplitHistory.isPredecessor(SplitHistory history)
focal_class.full_signature: public boolean isPredecessor(SplitHistory history)
focal_class.identifier: isPredecessor
focal_class.modifiers: public
focal_class.parameters: (SplitHistory history)
focal_class.return: boolean
focal_class.signature: boolean isPredecessor(SplitHistory history)
focal_class.class_method_signature: SplitHistory.isSuccessor(SplitHistory history)
focal_class.full_signature: public boolean isSuccessor(SplitHistory history)
focal_class.identifier: isSuccessor
focal_class.modifiers: public
focal_class.parameters: (SplitHistory history)
focal_class.return: boolean
focal_class.signature: boolean isSuccessor(SplitHistory history)
focal_class.class_method_signature: SplitHistory.isFirstUpTo(int level)
focal_class.full_signature: public boolean isFirstUpTo(int level)
focal_class.identifier: isFirstUpTo
focal_class.modifiers: public
focal_class.parameters: (int level)
focal_class.return: boolean
focal_class.signature: boolean isFirstUpTo(int level)
focal_class.class_method_signature: SplitHistory.isLastUpTo(int level)
focal_class.full_signature: public boolean isLastUpTo(int level)
focal_class.identifier: isLastUpTo
focal_class.modifiers: public
focal_class.parameters: (int level)
focal_class.return: boolean
focal_class.signature: boolean isLastUpTo(int level)
focal_class.class_method_signature: SplitHistory.isFirst()
focal_class.full_signature: public boolean isFirst()
focal_class.identifier: isFirst
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isFirst()
focal_class.class_method_signature: SplitHistory.isLast()
focal_class.full_signature: public boolean isLast()
focal_class.identifier: isLast
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isLast()
focal_class.class_method_signature: SplitHistory.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: SplitHistory.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: SplitHistory.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_class.class_method_signature: SplitHistory.parse(String history)
focal_class.full_signature: public static SplitHistory parse(String history)
focal_class.identifier: parse
focal_class.modifiers: public static
focal_class.parameters: (String history)
focal_class.return: SplitHistory
focal_class.signature: SplitHistory parse(String history)
focal_class.class_method_signature: SplitHistory.validateRoot(SplitHistoryEntry node)
focal_class.full_signature: private static void validateRoot(SplitHistoryEntry node)
focal_class.identifier: validateRoot
focal_class.modifiers: private static
focal_class.parameters: (SplitHistoryEntry node)
focal_class.return: void
focal_class.signature: void validateRoot(SplitHistoryEntry node)
focal_method.body: public static SplitHistory parse(String history) {
          if (!history.matches(PATTERN)) {
              throw new SplitHistoryFormatException("History '" + history + "' doesn't match pattern '" + PATTERN + "'");
          }
          String p = history.substring(1, history.length() - 1);
          String[] na = p.split(",");
          SplitHistory result = new SplitHistory(na.length + 2, false);
          for (int i = 0; i < na.length; i++) {
              SplitHistoryEntry n = SplitHistoryEntry.parse(na[i].trim());
              if (i == 0) {
                  validateRoot(n);
              }
              result.entries.add(n);
          }
          return result;
      }
focal_method.class_method_signature: SplitHistory.parse(String history)
focal_method.full_signature: public static SplitHistory parse(String history)
focal_method.identifier: parse
focal_method.invocations: matches substring length split parse trim validateRoot add
focal_method.modifiers: public static
focal_method.parameters: (String history)
focal_method.return: SplitHistory
focal_method.signature: SplitHistory parse(String history)