| 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 | getName()
Implements abstract org. Returns the name of this import format. |
| private void | |
| private void | |
| private void | |
| public ParserResult | importDatabase(BufferedReader
the input to read from input)Implements abstract org. Parse the database in the source. |
| private boolean | |
| private boolean | |
| public boolean | isRecognizedFormat(BufferedReader input)
Implements abstract org. Check whether the source is in the correct format for this importer. |
| private boolean | |
| private String | |
| public List | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | parseRelatedItem(XMLStreamReader reader, Map<Field, String> fields)
Parses information from the RelatedModsGroup. |
| private void | |
| private void | |
| private void | |
| private void | |
| private void |
| 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 specify
| |
| getFileType | back to summary |
|---|---|
| public StandardFileType getFileType() Implements abstract org. Doc from org. Returns the type of files that this importer can read
| |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract org. Doc from org. Returns the name of this import format. The name must be unique. | |
| 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(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. This method should never return null.
| |
| 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(BufferedReader input) throws IOException Implements abstract org. Doc from org. Check whether the source is in the correct format for this importer. The effect of this method is primarily to avoid unnecessary processing of files when searching for a suitable import format. If this method returns false, the import routine will move on to the next import format. Thus, the correct behaviour is to return false if it is certain that the file is not of the suitable type, and true otherwise. Returning true is the safe choice if not certain.
| |
| 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) | |
| 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) throws XMLStreamException | |
| 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) throws XMLStreamException 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) | |