test_class.declarator: target
test_class.original_string: PublicationTeiDocumentStaxHandler target;
test_class.type: PublicationTeiDocumentStaxHandler
test_class.var_name: target
test_class.declarator: inputFactory = new WstxInputFactory()
test_class.original_string: WstxInputFactory inputFactory = new WstxInputFactory();
test_class.type: WstxInputFactory
test_class.var_name: inputFactory
test_class.declarator: publication
test_class.original_string: Publication publication;
test_class.type: Publication
test_class.var_name: publication
test_class.file: anhalytics-kb/src/test/java/fr/inria/anhalytics/kb/stax/PublicationTeiDocumentStaxHandlerTest.java
test_class.identifier: PublicationTeiDocumentStaxHandlerTest
test_case.body: @Ignore("needs to fix the code first")
      @Test
      public void testExtractPageNumbers_caseWithText() throws Exception {
          final String[] input = target.extractPageNumbers("p. 123 - p. 124 ");
  
          assertThat(input.length, is(2));
          assertThat(input[0], is("123"));
          assertThat(input[1], is("124"));
      }
test_case.class_method_signature: PublicationTeiDocumentStaxHandlerTest.testExtractPageNumbers_caseWithText()
test_case.full_signature: @Ignore("needs to fix the code first") @Test public void testExtractPageNumbers_caseWithText()
test_case.identifier: testExtractPageNumbers_caseWithText
test_case.invocations: extractPageNumbers assertThat is assertThat is assertThat is
test_case.modifiers: @Ignore("needs to fix the code first") @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testExtractPageNumbers_caseWithText()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(PublicationTeiDocumentStaxHandler.class)
focal_class.modifier: private static
focal_class.original_string: private static Logger LOGGER = LoggerFactory.getLogger(PublicationTeiDocumentStaxHandler.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: publication
focal_class.modifier: private
focal_class.original_string: private Publication publication;
focal_class.type: Publication
focal_class.var_name: publication
focal_class.declarator: monogr
focal_class.modifier: private
focal_class.original_string: private Monograph monogr;
focal_class.type: Monograph
focal_class.var_name: monogr
focal_class.declarator: collection
focal_class.modifier: private
focal_class.original_string: private Collection collection;
focal_class.type: Collection
focal_class.var_name: collection
focal_class.declarator: journal
focal_class.modifier: private
focal_class.original_string: private Journal journal;
focal_class.type: Journal
focal_class.var_name: journal
focal_class.declarator: serialIdentifier
focal_class.modifier: private
focal_class.original_string: private Serial_Identifier serialIdentifier;
focal_class.type: Serial_Identifier
focal_class.var_name: serialIdentifier
focal_class.declarator: conferenceEvent
focal_class.modifier: private
focal_class.original_string: private Conference_Event conferenceEvent;
focal_class.type: Conference_Event
focal_class.var_name: conferenceEvent
focal_class.declarator: address
focal_class.modifier: private
focal_class.original_string: private Address address;
focal_class.type: Address
focal_class.var_name: address
focal_class.declarator: inSerial
focal_class.modifier: private
focal_class.original_string: private In_Serial inSerial;
focal_class.type: In_Serial
focal_class.var_name: inSerial
focal_class.declarator: serialIdentifiers = new ArrayList<>()
focal_class.modifier: private
focal_class.original_string: private List<Serial_Identifier> serialIdentifiers = new ArrayList<>();
focal_class.type: List<Serial_Identifier>
focal_class.var_name: serialIdentifiers
focal_class.declarator: inTitle = false
focal_class.modifier: private
focal_class.original_string: private boolean inTitle = false;
focal_class.type: boolean
focal_class.var_name: inTitle
focal_class.declarator: inSubmissionDate = false
focal_class.modifier: private
focal_class.original_string: private boolean inSubmissionDate = false;
focal_class.type: boolean
focal_class.var_name: inSubmissionDate
focal_class.declarator: inClassCodeType = false
focal_class.modifier: private
focal_class.original_string: private boolean inClassCodeType = false;
focal_class.type: boolean
focal_class.var_name: inClassCodeType
focal_class.declarator: inClassCodeDomain = false
focal_class.modifier: private
focal_class.original_string: private boolean inClassCodeDomain = false;
focal_class.type: boolean
focal_class.var_name: inClassCodeDomain
focal_class.declarator: inLanguage = false
focal_class.modifier: private
focal_class.original_string: private boolean inLanguage = false;
focal_class.type: boolean
focal_class.var_name: inLanguage
focal_class.declarator: inMonogr = false
focal_class.modifier: private
focal_class.original_string: private boolean inMonogr = false;
focal_class.type: boolean
focal_class.var_name: inMonogr
focal_class.declarator: inMonogrIdno = false
focal_class.modifier: private
focal_class.original_string: private boolean inMonogrIdno = false;
focal_class.type: boolean
focal_class.var_name: inMonogrIdno
focal_class.declarator: inMonogrTitle = false
focal_class.modifier: private
focal_class.original_string: private boolean inMonogrTitle = false;
focal_class.type: boolean
focal_class.var_name: inMonogrTitle
focal_class.declarator: inMonogrMeeting = false
focal_class.modifier: private
focal_class.original_string: private boolean inMonogrMeeting = false;
focal_class.type: boolean
focal_class.var_name: inMonogrMeeting
focal_class.declarator: inMonogrMeetingTitle = false
focal_class.modifier: private
focal_class.original_string: private boolean inMonogrMeetingTitle = false;
focal_class.type: boolean
focal_class.var_name: inMonogrMeetingTitle
focal_class.declarator: inMonogrMeetingDate = false
focal_class.modifier: private
focal_class.original_string: private boolean inMonogrMeetingDate = false;
focal_class.type: boolean
focal_class.var_name: inMonogrMeetingDate
focal_class.declarator: inMonogrMeetingSettlement = false
focal_class.modifier: private
focal_class.original_string: private boolean inMonogrMeetingSettlement = false;
focal_class.type: boolean
focal_class.var_name: inMonogrMeetingSettlement
focal_class.declarator: inMonogrMeetingRegion = false
focal_class.modifier: private
focal_class.original_string: private boolean inMonogrMeetingRegion = false;
focal_class.type: boolean
focal_class.var_name: inMonogrMeetingRegion
focal_class.declarator: inMonogrImprint = false
focal_class.modifier: private
focal_class.original_string: private boolean inMonogrImprint = false;
focal_class.type: boolean
focal_class.var_name: inMonogrImprint
focal_class.declarator: inMonogrImprintPublisher = false
focal_class.modifier: private
focal_class.original_string: private boolean inMonogrImprintPublisher = false;
focal_class.type: boolean
focal_class.var_name: inMonogrImprintPublisher
focal_class.declarator: inMonogrImprintDate = false
focal_class.modifier: private
focal_class.original_string: private boolean inMonogrImprintDate = false;
focal_class.type: boolean
focal_class.var_name: inMonogrImprintDate
focal_class.declarator: inMonogrImprintBiblScope = false
focal_class.modifier: private
focal_class.original_string: private boolean inMonogrImprintBiblScope = false;
focal_class.type: boolean
focal_class.var_name: inMonogrImprintBiblScope
focal_class.declarator: monogrTitleType
focal_class.modifier: private
focal_class.original_string: private String monogrTitleType;
focal_class.type: String
focal_class.var_name: monogrTitleType
focal_class.declarator: monogrIdnoType
focal_class.modifier: private
focal_class.original_string: private String monogrIdnoType;
focal_class.type: String
focal_class.var_name: monogrIdnoType
focal_class.declarator: monographMeetingDateType
focal_class.modifier: private
focal_class.original_string: private String monographMeetingDateType;
focal_class.type: String
focal_class.var_name: monographMeetingDateType
focal_class.declarator: monographImprintBiblScopeUnit
focal_class.modifier: private
focal_class.original_string: private String monographImprintBiblScopeUnit;
focal_class.type: String
focal_class.var_name: monographImprintBiblScopeUnit
focal_class.declarator: monographImprintDateType
focal_class.modifier: private
focal_class.original_string: private String monographImprintDateType;
focal_class.type: String
focal_class.var_name: monographImprintDateType
focal_class.declarator: monographImprintDateWhen
focal_class.modifier: private
focal_class.original_string: private String monographImprintDateWhen;
focal_class.type: String
focal_class.var_name: monographImprintDateWhen
focal_class.declarator: indentLevel = 0
focal_class.modifier: private
focal_class.original_string: private int indentLevel = 0;
focal_class.type: int
focal_class.var_name: indentLevel
focal_class.declarator: stackTags = new StackTags()
focal_class.original_string: StackTags stackTags = new StackTags();
focal_class.type: StackTags
focal_class.var_name: stackTags
focal_class.declarator: title = new StaxTag("title", "/teiCorpus/teiHeader/fileDesc/titleStmt/title")
focal_class.modifier: private
focal_class.original_string: private StaxTag title = new StaxTag("title", "/teiCorpus/teiHeader/fileDesc/titleStmt/title");
focal_class.type: StaxTag
focal_class.var_name: title
focal_class.declarator: submittedDate = new StaxTag("date", "/teiCorpus/teiHeader/fileDesc/editionStmt/edition/date")
focal_class.modifier: private
focal_class.original_string: private StaxTag submittedDate = new StaxTag("date", "/teiCorpus/teiHeader/fileDesc/editionStmt/edition/date");
focal_class.type: StaxTag
focal_class.var_name: submittedDate
focal_class.declarator: classCode = new StaxTag("classCode", "/teiCorpus/teiHeader/profileDesc/textClass/classCode")
focal_class.modifier: private
focal_class.original_string: private StaxTag classCode = new StaxTag("classCode", "/teiCorpus/teiHeader/profileDesc/textClass/classCode");
focal_class.type: StaxTag
focal_class.var_name: classCode
focal_class.declarator: language = new StaxTag("language", "/teiCorpus/teiHeader/profileDesc/langUsage/language")
focal_class.modifier: private
focal_class.original_string: private StaxTag language = new StaxTag("language", "/teiCorpus/teiHeader/profileDesc/langUsage/language");
focal_class.type: StaxTag
focal_class.var_name: language
focal_class.declarator: monograph = new StaxTag("monogr", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr")
focal_class.modifier: private
focal_class.original_string: private StaxTag monograph = new StaxTag("monogr", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr");
focal_class.type: StaxTag
focal_class.var_name: monograph
focal_class.declarator: monographIdno = new StaxTag("idno", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/idno")
focal_class.modifier: private
focal_class.original_string: private StaxTag monographIdno = new StaxTag("idno", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/idno");
focal_class.type: StaxTag
focal_class.var_name: monographIdno
focal_class.declarator: monographTitle = new StaxTag("title", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/title")
focal_class.modifier: private
focal_class.original_string: private StaxTag monographTitle = new StaxTag("title", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/title");
focal_class.type: StaxTag
focal_class.var_name: monographTitle
focal_class.declarator: monographMeeting = new StaxTag("meeting", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/meeting")
focal_class.modifier: private
focal_class.original_string: private StaxTag monographMeeting = new StaxTag("meeting", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/meeting");
focal_class.type: StaxTag
focal_class.var_name: monographMeeting
focal_class.declarator: monographMeetingTitle = new StaxTag("title", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/meeting/title")
focal_class.modifier: private
focal_class.original_string: private StaxTag monographMeetingTitle = new StaxTag("title", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/meeting/title");
focal_class.type: StaxTag
focal_class.var_name: monographMeetingTitle
focal_class.declarator: monographMeetingDate = new StaxTag("date", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/meeting/date")
focal_class.modifier: private
focal_class.original_string: private StaxTag monographMeetingDate = new StaxTag("date", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/meeting/date");
focal_class.type: StaxTag
focal_class.var_name: monographMeetingDate
focal_class.declarator: monographMeetingSettlement = new StaxTag("settlement", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/meeting/settlement")
focal_class.modifier: private
focal_class.original_string: private StaxTag monographMeetingSettlement = new StaxTag("settlement", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/meeting/settlement");
focal_class.type: StaxTag
focal_class.var_name: monographMeetingSettlement
focal_class.declarator: monographMeetingCountry = new StaxTag("country", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/meeting/country")
focal_class.modifier: private
focal_class.original_string: private StaxTag monographMeetingCountry = new StaxTag("country", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/meeting/country");
focal_class.type: StaxTag
focal_class.var_name: monographMeetingCountry
focal_class.declarator: monographMeetingRegion = new StaxTag("region", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/meeting/region")
focal_class.modifier: private
focal_class.original_string: private StaxTag monographMeetingRegion = new StaxTag("region", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/meeting/region");
focal_class.type: StaxTag
focal_class.var_name: monographMeetingRegion
focal_class.declarator: monographImprint = new StaxTag("imprint", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/imprint")
focal_class.modifier: private
focal_class.original_string: private StaxTag monographImprint = new StaxTag("imprint", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/imprint");
focal_class.type: StaxTag
focal_class.var_name: monographImprint
focal_class.declarator: monographImprintPublisher = new StaxTag("publisher", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/imprint/publisher")
focal_class.modifier: private
focal_class.original_string: private StaxTag monographImprintPublisher = new StaxTag("publisher", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/imprint/publisher");
focal_class.type: StaxTag
focal_class.var_name: monographImprintPublisher
focal_class.declarator: monographImprintDate = new StaxTag("date", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/imprint/date")
focal_class.modifier: private
focal_class.original_string: private StaxTag monographImprintDate = new StaxTag("date", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/imprint/date");
focal_class.type: StaxTag
focal_class.var_name: monographImprintDate
focal_class.declarator: monographImprintBiblScope = new StaxTag("biblScope", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/imprint/biblScope")
focal_class.modifier: private
focal_class.original_string: private StaxTag monographImprintBiblScope = new StaxTag("biblScope", "/teiCorpus/teiHeader/fileDesc/sourceDesc/biblStruct/monogr/imprint/biblScope");
focal_class.type: StaxTag
focal_class.var_name: monographImprintBiblScope
focal_class.file: anhalytics-kb/src/main/java/fr/inria/anhalytics/kb/stax/PublicationTeiDocumentStaxHandler.java
focal_class.identifier: PublicationTeiDocumentStaxHandler
focal_class.interfaces: implements StaxParserContentHandler
focal_class.class_method_signature: PublicationTeiDocumentStaxHandler.PublicationTeiDocumentStaxHandler()
focal_class.full_signature: public  PublicationTeiDocumentStaxHandler()
focal_class.identifier: PublicationTeiDocumentStaxHandler
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  PublicationTeiDocumentStaxHandler()
focal_class.class_method_signature: PublicationTeiDocumentStaxHandler.PublicationTeiDocumentStaxHandler(Publication publication)
focal_class.full_signature: public  PublicationTeiDocumentStaxHandler(Publication publication)
focal_class.identifier: PublicationTeiDocumentStaxHandler
focal_class.modifiers: public
focal_class.parameters: (Publication publication)
focal_class.signature:  PublicationTeiDocumentStaxHandler(Publication publication)
focal_class.class_method_signature: PublicationTeiDocumentStaxHandler.onStartDocument(XMLStreamReader2 reader)
focal_class.full_signature: @Override public void onStartDocument(XMLStreamReader2 reader)
focal_class.identifier: onStartDocument
focal_class.modifiers: @Override public
focal_class.parameters: (XMLStreamReader2 reader)
focal_class.return: void
focal_class.signature: void onStartDocument(XMLStreamReader2 reader)
focal_class.class_method_signature: PublicationTeiDocumentStaxHandler.onEndDocument(XMLStreamReader2 reader)
focal_class.full_signature: @Override public void onEndDocument(XMLStreamReader2 reader)
focal_class.identifier: onEndDocument
focal_class.modifiers: @Override public
focal_class.parameters: (XMLStreamReader2 reader)
focal_class.return: void
focal_class.signature: void onEndDocument(XMLStreamReader2 reader)
focal_class.class_method_signature: PublicationTeiDocumentStaxHandler.onStartElement(XMLStreamReader2 reader)
focal_class.full_signature: @Override public void onStartElement(XMLStreamReader2 reader)
focal_class.identifier: onStartElement
focal_class.modifiers: @Override public
focal_class.parameters: (XMLStreamReader2 reader)
focal_class.return: void
focal_class.signature: void onStartElement(XMLStreamReader2 reader)
focal_class.class_method_signature: PublicationTeiDocumentStaxHandler.onEndElement(XMLStreamReader2 reader)
focal_class.full_signature: @Override public void onEndElement(XMLStreamReader2 reader)
focal_class.identifier: onEndElement
focal_class.modifiers: @Override public
focal_class.parameters: (XMLStreamReader2 reader)
focal_class.return: void
focal_class.signature: void onEndElement(XMLStreamReader2 reader)
focal_class.class_method_signature: PublicationTeiDocumentStaxHandler.onCharacter(XMLStreamReader2 reader)
focal_class.full_signature: @Override public void onCharacter(XMLStreamReader2 reader)
focal_class.identifier: onCharacter
focal_class.modifiers: @Override public
focal_class.parameters: (XMLStreamReader2 reader)
focal_class.return: void
focal_class.signature: void onCharacter(XMLStreamReader2 reader)
focal_class.class_method_signature: PublicationTeiDocumentStaxHandler.extractPageNumbers(String text)
focal_class.full_signature:  String[] extractPageNumbers(String text)
focal_class.identifier: extractPageNumbers
focal_class.parameters: (String text)
focal_class.return: String[]
focal_class.signature: String[] extractPageNumbers(String text)
focal_class.class_method_signature: PublicationTeiDocumentStaxHandler.getText(XMLStreamReader2 reader)
focal_class.full_signature: private String getText(XMLStreamReader2 reader)
focal_class.identifier: getText
focal_class.modifiers: private
focal_class.parameters: (XMLStreamReader2 reader)
focal_class.return: String
focal_class.signature: String getText(XMLStreamReader2 reader)
focal_class.class_method_signature: PublicationTeiDocumentStaxHandler.getAttributeValue(XMLStreamReader reader, String attributeName)
focal_class.full_signature: private String getAttributeValue(XMLStreamReader reader, String attributeName)
focal_class.identifier: getAttributeValue
focal_class.modifiers: private
focal_class.parameters: (XMLStreamReader reader, String attributeName)
focal_class.return: String
focal_class.signature: String getAttributeValue(XMLStreamReader reader, String attributeName)
focal_class.class_method_signature: PublicationTeiDocumentStaxHandler.extractTagContent(XMLEventReader reader, XMLEventWriter writer)
focal_class.full_signature: private String extractTagContent(XMLEventReader reader, XMLEventWriter writer)
focal_class.identifier: extractTagContent
focal_class.modifiers: private
focal_class.parameters: (XMLEventReader reader, XMLEventWriter writer)
focal_class.return: String
focal_class.signature: String extractTagContent(XMLEventReader reader, XMLEventWriter writer)
focal_class.class_method_signature: PublicationTeiDocumentStaxHandler.getInSerial()
focal_class.full_signature: public In_Serial getInSerial()
focal_class.identifier: getInSerial
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: In_Serial
focal_class.signature: In_Serial getInSerial()
focal_class.class_method_signature: PublicationTeiDocumentStaxHandler.getPublication()
focal_class.full_signature: public Publication getPublication()
focal_class.identifier: getPublication
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Publication
focal_class.signature: Publication getPublication()
focal_class.class_method_signature: PublicationTeiDocumentStaxHandler.getMonogr()
focal_class.full_signature: public Monograph getMonogr()
focal_class.identifier: getMonogr
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Monograph
focal_class.signature: Monograph getMonogr()
focal_class.class_method_signature: PublicationTeiDocumentStaxHandler.getCollection()
focal_class.full_signature: public Collection getCollection()
focal_class.identifier: getCollection
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Collection
focal_class.signature: Collection getCollection()
focal_class.class_method_signature: PublicationTeiDocumentStaxHandler.getJournal()
focal_class.full_signature: public Journal getJournal()
focal_class.identifier: getJournal
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Journal
focal_class.signature: Journal getJournal()
focal_class.class_method_signature: PublicationTeiDocumentStaxHandler.getSerialIdentifiers()
focal_class.full_signature: public List<Serial_Identifier> getSerialIdentifiers()
focal_class.identifier: getSerialIdentifiers
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Serial_Identifier>
focal_class.signature: List<Serial_Identifier> getSerialIdentifiers()
focal_class.class_method_signature: PublicationTeiDocumentStaxHandler.getConferenceEvent()
focal_class.full_signature: public Conference_Event getConferenceEvent()
focal_class.identifier: getConferenceEvent
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Conference_Event
focal_class.signature: Conference_Event getConferenceEvent()
focal_class.class_method_signature: PublicationTeiDocumentStaxHandler.getAddress()
focal_class.full_signature: public Address getAddress()
focal_class.identifier: getAddress
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Address
focal_class.signature: Address getAddress()
focal_method.body: String[] extractPageNumbers(String text) {
          if (text.length() < 10) {
              if (text.contains("-") && text.length() > 3) {
                  return text.split("-");
  
              } else {
                  return new String[]{text};
              }
          }
  
          return new String[0];
      }
focal_method.class_method_signature: PublicationTeiDocumentStaxHandler.extractPageNumbers(String text)
focal_method.full_signature:  String[] extractPageNumbers(String text)
focal_method.identifier: extractPageNumbers
focal_method.invocations: length contains length split
focal_method.parameters: (String text)
focal_method.return: String[]
focal_method.signature: String[] extractPageNumbers(String text)