Top Description Fields Constructors Methods
org.jabref.logic.msbib

pack-priv Class MSBibEntry

extends Object
Class Inheritance
Imports
java.util.HashMap, .LinkedList, .List, .Map, .Optional, java.util.regex.Matcher, .Pattern, org.jabref.model.entry.Author, .AuthorList, .Date, .Month, org.jabref.model.strings.StringUtil, org.w3c.dom.Document, .Element, .Node, .NodeList

MSBib entry representation
See Also
ms office 2007 bibliography format compared to bibtex, deciphering ms office 2007 bibliography format, ECMA Standard

Field Summary

Modifier and TypeField and Description
public String
private final Pattern
ADDRESS_PATTERN

reduced subset, supports only "CITY , STATE, COUNTRY" \b(\w+)\s?[,]?\s?(\w+)\s?[,]?\s?(\w*)\b WORD SPACE , SPACE WORD SPACE (Can be zero or more) , SPACE WORD (Can be zero or more) Matches both single locations (only city) like Berlin and full locations like Stroudsburg, PA, USA tested using http://www.regexpal.com/

public String
public List<MsBibAuthor>
private String
public List<MsBibAuthor>
public String
public List<MsBibAuthor>
public List<MsBibAuthor>
public List<MsBibAuthor>
public String
public List<MsBibAuthor>
public String
public String
public List<MsBibAuthor>
public List<MsBibAuthor>
public Map<String, String>
public String
public List<MsBibAuthor>
public List<MsBibAuthor>
public List<MsBibAuthor>
public String
public String
public String
public PageNumbers
public String
public List<MsBibAuthor>
public List<MsBibAuthor>
public String
public String
public String
public List<MsBibAuthor>
public List<MsBibAuthor>
public String

Constructor Summary

AccessConstructor and Description
public
public
MSBibEntry(Element entry)

Create a new MSBibEntry to import from an XML element

Method Summary

Modifier and TypeMethod and Description
private void
addAddress(Document document, Element parent, String addressToSplit)

private void
addAuthor(Document document, Element allAuthors, String entryName, List<MsBibAuthor> authorsLst)

private void
private void
addField(Document document, Element parent, String name, String value)

private void
getAuthors(Element authorsElem)

public String
public Element

Returns:

XmlElement represenation of one entry
getEntryDom
(Document
XmlDocument
document
)

Gets the dom representation for one entry, used for export

private List<MsBibAuthor>
public String
private String
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

addressback to summary
public String address
ADDRESS_PATTERNback to summary
private final Pattern ADDRESS_PATTERN

reduced subset, supports only "CITY , STATE, COUNTRY"
\b(\w+)\s?[,]?\s?(\w+)\s?[,]?\s?(\w*)\b
WORD SPACE , SPACE WORD SPACE (Can be zero or more) , SPACE WORD (Can be zero or more)
Matches both single locations (only city) like Berlin and full locations like Stroudsburg, PA, USA
tested using http://www.regexpal.com/

albumTitleback to summary
public String albumTitle
authorsback to summary
public List<MsBibAuthor> authors
bibtexEntryTypeback to summary
private String bibtexEntryType
bookAuthorsback to summary
public List<MsBibAuthor> bookAuthors
broadcastTitleback to summary
public String broadcastTitle
compilersback to summary
public List<MsBibAuthor> compilers
composersback to summary
public List<MsBibAuthor> composers
conductorsback to summary
public List<MsBibAuthor> conductors
conferenceNameback to summary
public String conferenceName
counselsback to summary
public List<MsBibAuthor> counsels
dateAccessedback to summary
public String dateAccessed
dayback to summary
public String day
directorsback to summary
public List<MsBibAuthor> directors
editorsback to summary
public List<MsBibAuthor> editors
fieldsback to summary
public Map<String, String> fields
internetSiteTitleback to summary
public String internetSiteTitle
intervieweesback to summary
public List<MsBibAuthor> interviewees
interviewersback to summary
public List<MsBibAuthor> interviewers
inventorsback to summary
public List<MsBibAuthor> inventors
journalNameback to summary
public String journalName
monthback to summary
public String month
numberback to summary
public String number
pagesback to summary
public PageNumbers pages
patentNumberback to summary
public String patentNumber
performersback to summary
public List<MsBibAuthor> performers
producerNamesback to summary
public List<MsBibAuthor> producerNames
publicationTitleback to summary
public String publicationTitle
standardNumberback to summary
public String standardNumber
thesisTypeback to summary
public String thesisType
translatorsback to summary
public List<MsBibAuthor> translators
writersback to summary
public List<MsBibAuthor> writers
yearback to summary
public String year

Constructor Detail

MSBibEntryback to summary
public MSBibEntry()
MSBibEntryback to summary
public MSBibEntry(Element entry)

Create a new MSBibEntry to import from an XML element

Method Detail

addAddressback to summary
private void addAddress(Document document, Element parent, String addressToSplit)
addAuthorback to summary
private void addAuthor(Document document, Element allAuthors, String entryName, List<MsBibAuthor> authorsLst)
addDateAcessedFieldsback to summary
private void addDateAcessedFields(Document document, Element rootNode)
addFieldback to summary
private void addField(Document document, Element parent, String name, String value)
getAuthorsback to summary
private void getAuthors(Element authorsElem)
getCiteKeyback to summary
public String getCiteKey()
getEntryDomback to summary
public Element getEntryDom(Document document)

Gets the dom representation for one entry, used for export

Parameters
document:Document

XmlDocument

Returns:Element

XmlElement represenation of one entry

getSpecificAuthorsback to summary
private List<MsBibAuthor> getSpecificAuthors(String type, Element authors)
getTypeback to summary
public String getType()
getXmlElementTextContentback to summary
private String getXmlElementTextContent(String name, Element entry)
populateFromXmlback to summary
private void populateFromXml(Element entry)