test_class.declarator: START_TIME = 1545392727685L
test_class.modifier: private static final
test_class.original_string: private static final long START_TIME = 1545392727685L;
test_class.type: long
test_class.var_name: START_TIME
test_class.declarator: END_TIME = 1545392728527L
test_class.modifier: private static final
test_class.original_string: private static final long END_TIME = 1545392728527L;
test_class.type: long
test_class.var_name: END_TIME
test_class.file: collect_app/src/test/java/org/odk/collect/android/logic/AuditEventTest.java
test_class.identifier: AuditEventTest
test_case.body: @Test
      public void testToString() {
          AuditEvent auditEvent = new AuditEvent(START_TIME, QUESTION, false, false, getTestFormIndex(), "");
          assertNotNull(auditEvent);
          assertTrue(auditEvent.isIntervalAuditEventType());
          assertEquals("question,/data/text1,1545392727685,", auditEvent.toString());
          assertFalse(auditEvent.isEndTimeSet());
          auditEvent.setEnd(END_TIME);
          assertTrue(auditEvent.isEndTimeSet());
          assertFalse(auditEvent.isLocationAlreadySet());
          assertEquals("question,/data/text1,1545392727685,1545392728527", auditEvent.toString());
      }
test_case.class_method_signature: AuditEventTest.testToString()
test_case.full_signature: @Test public void testToString()
test_case.identifier: testToString
test_case.invocations: getTestFormIndex assertNotNull assertTrue isIntervalAuditEventType assertEquals toString assertFalse isEndTimeSet setEnd assertTrue isEndTimeSet assertFalse isLocationAlreadySet assertEquals toString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testToString()
focal_class.declarator: start
focal_class.modifier: private final
focal_class.original_string: private final long start;
focal_class.type: long
focal_class.var_name: start
focal_class.declarator: auditEventType
focal_class.modifier: private
focal_class.original_string: private AuditEventType auditEventType;
focal_class.type: AuditEventType
focal_class.var_name: auditEventType
focal_class.declarator: latitude
focal_class.modifier: private
focal_class.original_string: private String latitude;
focal_class.type: String
focal_class.var_name: latitude
focal_class.declarator: longitude
focal_class.modifier: private
focal_class.original_string: private String longitude;
focal_class.type: String
focal_class.var_name: longitude
focal_class.declarator: accuracy
focal_class.modifier: private
focal_class.original_string: private String accuracy;
focal_class.type: String
focal_class.var_name: accuracy
focal_class.declarator: oldValue
focal_class.modifier: @NonNull private
focal_class.original_string: @NonNull private String oldValue;
focal_class.type: String
focal_class.var_name: oldValue
focal_class.declarator: newValue = ""
focal_class.modifier: @NonNull private
focal_class.original_string: @NonNull private String newValue = "";
focal_class.type: String
focal_class.var_name: newValue
focal_class.declarator: end
focal_class.modifier: private
focal_class.original_string: private long end;
focal_class.type: long
focal_class.var_name: end
focal_class.declarator: endTimeSet
focal_class.modifier: private
focal_class.original_string: private boolean endTimeSet;
focal_class.type: boolean
focal_class.var_name: endTimeSet
focal_class.declarator: isTrackingLocationsEnabled
focal_class.modifier: private
focal_class.original_string: private boolean isTrackingLocationsEnabled;
focal_class.type: boolean
focal_class.var_name: isTrackingLocationsEnabled
focal_class.declarator: isTrackingChangesEnabled
focal_class.modifier: private
focal_class.original_string: private boolean isTrackingChangesEnabled;
focal_class.type: boolean
focal_class.var_name: isTrackingChangesEnabled
focal_class.declarator: formIndex
focal_class.modifier: private
focal_class.original_string: private FormIndex formIndex;
focal_class.type: FormIndex
focal_class.var_name: formIndex
focal_class.file: collect_app/src/main/java/org/odk/collect/android/logic/AuditEvent.java
focal_class.identifier: AuditEvent
focal_class.class_method_signature: AuditEvent.AuditEvent(long start, AuditEventType auditEventType)
focal_class.full_signature: public  AuditEvent(long start, AuditEventType auditEventType)
focal_class.identifier: AuditEvent
focal_class.modifiers: public
focal_class.parameters: (long start, AuditEventType auditEventType)
focal_class.signature:  AuditEvent(long start, AuditEventType auditEventType)
focal_class.class_method_signature: AuditEvent.AuditEvent(long start, AuditEventType auditEventType,  boolean isTrackingLocationsEnabled, boolean isTrackingChangesEnabled)
focal_class.full_signature: public  AuditEvent(long start, AuditEventType auditEventType,  boolean isTrackingLocationsEnabled, boolean isTrackingChangesEnabled)
focal_class.identifier: AuditEvent
focal_class.modifiers: public
focal_class.parameters: (long start, AuditEventType auditEventType,  boolean isTrackingLocationsEnabled, boolean isTrackingChangesEnabled)
focal_class.signature:  AuditEvent(long start, AuditEventType auditEventType,  boolean isTrackingLocationsEnabled, boolean isTrackingChangesEnabled)
focal_class.class_method_signature: AuditEvent.AuditEvent(long start, AuditEventType auditEventType, boolean isTrackingLocationsEnabled,
                        boolean isTrackingChangesEnabled, FormIndex formIndex, String oldValue)
focal_class.full_signature: public  AuditEvent(long start, AuditEventType auditEventType, boolean isTrackingLocationsEnabled,
                        boolean isTrackingChangesEnabled, FormIndex formIndex, String oldValue)
focal_class.identifier: AuditEvent
focal_class.modifiers: public
focal_class.parameters: (long start, AuditEventType auditEventType, boolean isTrackingLocationsEnabled,
                        boolean isTrackingChangesEnabled, FormIndex formIndex, String oldValue)
focal_class.signature:  AuditEvent(long start, AuditEventType auditEventType, boolean isTrackingLocationsEnabled,
                        boolean isTrackingChangesEnabled, FormIndex formIndex, String oldValue)
focal_class.class_method_signature: AuditEvent.isIntervalAuditEventType()
focal_class.full_signature: public boolean isIntervalAuditEventType()
focal_class.identifier: isIntervalAuditEventType
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isIntervalAuditEventType()
focal_class.class_method_signature: AuditEvent.setEnd(long endTime)
focal_class.full_signature: public void setEnd(long endTime)
focal_class.identifier: setEnd
focal_class.modifiers: public
focal_class.parameters: (long endTime)
focal_class.return: void
focal_class.signature: void setEnd(long endTime)
focal_class.class_method_signature: AuditEvent.isEndTimeSet()
focal_class.full_signature: public boolean isEndTimeSet()
focal_class.identifier: isEndTimeSet
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEndTimeSet()
focal_class.class_method_signature: AuditEvent.getAuditEventType()
focal_class.full_signature: public AuditEventType getAuditEventType()
focal_class.identifier: getAuditEventType
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: AuditEventType
focal_class.signature: AuditEventType getAuditEventType()
focal_class.class_method_signature: AuditEvent.getFormIndex()
focal_class.full_signature: public FormIndex getFormIndex()
focal_class.identifier: getFormIndex
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: FormIndex
focal_class.signature: FormIndex getFormIndex()
focal_class.class_method_signature: AuditEvent.hasNewAnswer()
focal_class.full_signature: public boolean hasNewAnswer()
focal_class.identifier: hasNewAnswer
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean hasNewAnswer()
focal_class.class_method_signature: AuditEvent.isLocationAlreadySet()
focal_class.full_signature: public boolean isLocationAlreadySet()
focal_class.identifier: isLocationAlreadySet
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isLocationAlreadySet()
focal_class.class_method_signature: AuditEvent.setLocationCoordinates(String latitude, String longitude, String accuracy)
focal_class.full_signature: public void setLocationCoordinates(String latitude, String longitude, String accuracy)
focal_class.identifier: setLocationCoordinates
focal_class.modifiers: public
focal_class.parameters: (String latitude, String longitude, String accuracy)
focal_class.return: void
focal_class.signature: void setLocationCoordinates(String latitude, String longitude, String accuracy)
focal_class.class_method_signature: AuditEvent.recordValueChange(String newValue)
focal_class.full_signature: public void recordValueChange(String newValue)
focal_class.identifier: recordValueChange
focal_class.modifiers: public
focal_class.parameters: (String newValue)
focal_class.return: void
focal_class.signature: void recordValueChange(String newValue)
focal_class.class_method_signature: AuditEvent.toString()
focal_class.full_signature: @NonNull public String toString()
focal_class.identifier: toString
focal_class.modifiers: @NonNull public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: AuditEvent.getAuditEventTypeFromFecType(int fcEvent)
focal_class.full_signature: public static AuditEventType getAuditEventTypeFromFecType(int fcEvent)
focal_class.identifier: getAuditEventTypeFromFecType
focal_class.modifiers: public static
focal_class.parameters: (int fcEvent)
focal_class.return: AuditEventType
focal_class.signature: AuditEventType getAuditEventTypeFromFecType(int fcEvent)
focal_class.class_method_signature: AuditEvent.getEscapedValueForCsv(String value)
focal_class.full_signature: private String getEscapedValueForCsv(String value)
focal_class.identifier: getEscapedValueForCsv
focal_class.modifiers: private
focal_class.parameters: (String value)
focal_class.return: String
focal_class.signature: String getEscapedValueForCsv(String value)
focal_class.class_method_signature: AuditEvent.getXPathPath(FormIndex formIndex)
focal_class.full_signature: private static String getXPathPath(FormIndex formIndex)
focal_class.identifier: getXPathPath
focal_class.modifiers: private static
focal_class.parameters: (FormIndex formIndex)
focal_class.return: String
focal_class.signature: String getXPathPath(FormIndex formIndex)
focal_method.body: @NonNull
      public String toString() {
          String node = formIndex == null || formIndex.getReference() == null ? "" : getXPathPath(formIndex);
  
          String event;
          if (isTrackingLocationsEnabled && isTrackingChangesEnabled) {
              event = String.format("%s,%s,%s,%s,%s,%s,%s,%s,%s", auditEventType.getValue(), node, start, end != 0 ? end : "", latitude, longitude, accuracy, oldValue, newValue);
          } else if (isTrackingLocationsEnabled) {
              event = String.format("%s,%s,%s,%s,%s,%s,%s", auditEventType.getValue(), node, start, end != 0 ? end : "", latitude, longitude, accuracy);
          } else if (isTrackingChangesEnabled) {
              event = String.format("%s,%s,%s,%s,%s,%s", auditEventType.getValue(), node, start, end != 0 ? end : "", oldValue, newValue);
          } else {
              event = String.format("%s,%s,%s,%s", auditEventType.getValue(), node, start, end != 0 ? end : "");
          }
  
          return event;
      }
focal_method.class_method_signature: AuditEvent.toString()
focal_method.full_signature: @NonNull public String toString()
focal_method.identifier: toString
focal_method.invocations: getReference getXPathPath format getValue format getValue format getValue format getValue
focal_method.modifiers: @NonNull public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String toString()