More details about the format can be found here http://www.loc.gov/standards/mods/.
The newest xml schema can also be found here www.loc.gov/standards/mods/mods-schemas.html..
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private static final Logger | |
| private static final Pattern | |
| private final XMLInputFactory |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public String | getDescription()
Implements abstract org. Returns the description of the import format. |
| public StandardFileType | getFileType()
Implements abstract org. Returns the type of files that this importer can read |
| public String | getId()
Implements abstract org. Returns a slug, which identifies this importer. |
| public String | getName()
Implements abstract org. Returns the name of this import format. |
| private void | |
| private void | |
| private void | |
| public ParserResult | importDatabase(@NonNull BufferedReader input)
Implements abstract org. Parse the database in the source. |
| private Optional | |
| private Optional | |
| private boolean | |
| private boolean | |
| public boolean | isRecognizedFormat(@NonNull Reader input)
Overrides org. #isRecognizedFormat(BufferedReader) without the requirement to reset |
| private boolean | |
| private String | |
| public List | |
| private void | |
| private Optional | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | parseOriginInfo(XMLStreamReader reader, Map<Field, String> fields, ModsImporter.
|
| private void | |
| private void | parseRelatedItem(XMLStreamReader reader, Map<Field, String> fields, ModsImporter.
Parses information from the RelatedModsGroup. |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | putRelatedItemTitle(Map<Field, String> fields, ModsImporter.
|
| keywordSeparator | back to summary |
|---|---|
| private final String keywordSeparator | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| MODS_PATTERN | back to summary |
|---|---|
| private static final Pattern MODS_PATTERN | |
| xmlInputFactory | back to summary |
|---|---|
| private final XMLInputFactory xmlInputFactory | |
| ModsImporter | back to summary |
|---|---|
| public ModsImporter(ImportFormatPreferences importFormatPreferences) | |
| appendIfValueNotNullOrBlank | back to summary |
|---|---|
| private void appendIfValueNotNullOrBlank(List<String> list, String value) | |
| getDescription | back to summary |
|---|---|
| public String getDescription() Implements abstract org. Doc from org. Returns the description of the import format. The description should specifywhat kind of entries from what sources and based on what specification it is able to importby what criteria it
| |
| getFileType | back to summary |
|---|---|
| public StandardFileType getFileType() Implements abstract org. Doc from org. Returns the type of files that this importer can read
| |
| getId | back to summary |
|---|---|
| public String getId() Implements abstract org. Doc from org. Returns a slug, which identifies this importer. Used, for example, to identify the importer in CLI. Typically, this name should be short, in English, and should not contain special characters like #, %, etc.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract org. Doc from org. Returns the name of this import format. Typically, this is a string that denotes file type or format. It can also be localized, like "XMP-annotated PDF".
| |
| handleAuthorsInNamePart | back to summary |
|---|---|
| private void handleAuthorsInNamePart(List<Name> names, List<String> authors) | |
| handleDetail | back to summary |
|---|---|
| private void handleDetail(XMLStreamReader reader, Map<Field, String> fields) throws XMLStreamException | |
| handleExtent | back to summary |
|---|---|
| private void handleExtent(XMLStreamReader reader, Map<Field, String> fields) throws XMLStreamException | |
| importDatabase | back to summary |
|---|---|
| public ParserResult importDatabase(@NonNull BufferedReader input) throws IOException Implements abstract org. Doc from org. Parse the database in the source. This method can be called in two different contexts - either when importing in a specified format, or when importing in unknown format. In the latter case, JabRef cycles through all available import formats. No error messages or feedback is displayed from individual import formats in this case. If importing in a specified format and an empty library is returned, JabRef reports that no entries were found. If your format is binary-based (PDF, ZIP-based, or others), then you should not solely override this method. For binary formats do this:
| |
| inferEntryType | back to summary |
|---|---|
| private Optional | |
| inferHostEntryType | back to summary |
|---|---|
| private Optional | |
| isCharacterXMLEvent | back to summary |
|---|---|
| private boolean isCharacterXMLEvent(XMLStreamReader reader) | |
| isEndXMLEvent | back to summary |
|---|---|
| private boolean isEndXMLEvent(XMLStreamReader reader) | |
| isRecognizedFormat | back to summary |
|---|---|
| public boolean isRecognizedFormat(@NonNull Reader input) throws IOException Overrides org. Doc from org. #isRecognizedFormat(BufferedReader) without the requirement to reset
| |
| isStartXMLEvent | back to summary |
|---|---|
| private boolean isStartXMLEvent(XMLStreamReader reader) | |
| mapGenre | back to summary |
|---|---|
| private String mapGenre(String genre) | |
| parseEntries | back to summary |
|---|---|
| public List Implements org.
| |
| parseIdentifier | back to summary |
|---|---|
| private void parseIdentifier(Map<Field, String> fields, Identifier identifier, BibEntry entry) | |
| parseKnownEntryType | back to summary |
|---|---|
| private Optional | |
| parseLanguage | back to summary |
|---|---|
| private void parseLanguage(XMLStreamReader reader, Map<Field, String> fields) throws XMLStreamException | |
| parseLocationAndUrl | back to summary |
|---|---|
| private void parseLocationAndUrl(XMLStreamReader reader, Map<Field, String> fields) throws XMLStreamException | |
| parseModsCollection | back to summary |
|---|---|
| private void parseModsCollection(List<BibEntry> bibItems, XMLStreamReader reader) throws XMLStreamException | |
| parseModsGroup | back to summary |
|---|---|
| private void parseModsGroup(Map<Field, String> fields, XMLStreamReader reader, BibEntry entry) throws XMLStreamException | |
| parseName | back to summary |
|---|---|
| private void parseName(XMLStreamReader reader, Map<Field, String> fields, List<String> authors) throws XMLStreamException | |
| parseOriginInfo | back to summary |
|---|---|
| private void parseOriginInfo(XMLStreamReader reader, Map<Field, String> fields, ModsImporter. | |
| parseRecordInfo | back to summary |
|---|---|
| private void parseRecordInfo(XMLStreamReader reader, Map<Field, String> fields) throws XMLStreamException | |
| parseRelatedItem | back to summary |
|---|---|
| private void parseRelatedItem(XMLStreamReader reader, Map<Field, String> fields, ModsImporter. Parses information from the RelatedModsGroup. It has the same elements as ModsGroup. But information like volume, issue and the pages appear here instead of in the ModsGroup. Also, if there appears a title field, then this indicates that is the name of the journal which the article belongs to. | |
| parseSubject | back to summary |
|---|---|
| private void parseSubject(XMLStreamReader reader, Map<Field, String> fields, List<String> keywords) throws XMLStreamException | |
| parseTitle | back to summary |
|---|---|
| private void parseTitle(XMLStreamReader reader, Map<Field, String> fields) throws XMLStreamException | |
| putDate | back to summary |
|---|---|
| private void putDate(Map<Field, String> fields, String elementName, String date) | |
| putIfListIsNotEmpty | back to summary |
|---|---|
| private void putIfListIsNotEmpty(Map<Field, String> fields, List<String> list, Field key, String separator) | |
| putIfValueNotNull | back to summary |
|---|---|
| private void putIfValueNotNull(Map<Field, String> fields, Field field, String value) | |
| putRelatedItemTitle | back to summary |
|---|---|
| private void putRelatedItemTitle(Map<Field, String> fields, ModsImporter. | |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private @Nullable String | |
| private @Nullable String | |
| private final List | |
| private @Nullable String | |
| private @Nullable String |
| Access | Constructor and Description |
|---|---|
| private |
| hostGenres | back to summary |
|---|---|
| private final List<String> hostGenres | |
| hostIssuance | back to summary |
|---|---|
| private @Nullable String hostIssuance | |
| hostTitle | back to summary |
|---|---|
| private @Nullable String hostTitle | |
| mainGenres | back to summary |
|---|---|
| private final List<String> mainGenres | |
| mainIssuance | back to summary |
|---|---|
| private @Nullable String mainIssuance | |
| mainResource | back to summary |
|---|---|
| private @Nullable String mainResource | |
| TypeHints | back to summary |
|---|---|
| private TypeHints() | |