예제 #1
0
        protected override void ReadAttributeEvent(object sender, ReadElementEventArgs eventArgs)
        {
            if (Noark5TestHelper.IdentifiesJournalPostRegistration(eventArgs))
            {
                _journalPostAttributeIsFound = true;
            }

            if (Noark5TestHelper.IdentifiesCasefolder(eventArgs))
            {
                _casefolderAttributeIsFound = true;
            }
        }
예제 #2
0
        protected override void ReadAttributeEvent(object sender, ReadElementEventArgs eventArgs)
        {
            if (Noark5TestHelper.IdentifiesCasefolder(eventArgs))
            {
                int level = eventArgs.Path.GetSameElementSubLevel();
                AddFolderOnLevel(_currentArchivePart.CaseFoldersPerLevel, level);
            }

            if (Noark5TestHelper.IdentifiesMeetingFolder(eventArgs))
            {
                int level = eventArgs.Path.GetSameElementSubLevel();
                AddFolderOnLevel(_currentArchivePart.MeetingFoldersPerLevel, level);
            }
        }