class: EndNoteImport

public class: EndNoteImport
Author: $Author: mfranke $ (last modification)
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 1944 $ $LastChangedDate: 2009-05-05 12:; Complexity: 1
Dates: Created: 16.07.2009 15:20:50; Modified: 16.07.2009 15:20:50;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {23158C12-1DA7-4813-834C-743EBDEEF4A5}
provides the import of a EndNote file
 

Goto: Custom Properties, Fields, Methods

See also: EndNoteImportTest

Appears in: endnote

Connections
 
Custom Properties
 
EndNoteImport Attributes
Attribute Details
private Logger
  logger
Initial: Logger.getLogger(getClass())
private String
  url
Initial: null
 
EndNoteImport Methods
Operation Details
public static
checkLen(
   String val):boolean
Sequential
public static
checkVal(
   String val):boolean
Sequential
public
createEndNotePairByString(
   String line):Pair
Sequential
Notes: get a EndNote <code>Pair</code> from line string
@param string - EndNote line as string
@return Pair - key-value pair created by string line
public
createXMLElement(
   String tag,
   String value):String
Sequential
Notes: creates a single element in xml
@return xml element as string
public
escape(
   String input):String
Sequential
Notes: escapes special characters
@return string with escaped characters
public
getItemPairs(
   List lines):List
Sequential
Notes: get item pairs from item string and pack them into the <code>List</code>
@param string - EndNote item as string
@return String list with item key-value pairs
public
readFile():String
Sequential
Notes: reads the file and stores it in a string
@return List<String> with file lines
public
splitItemElements(
   String itemStr):List
Sequential
Notes: Splits EndNote fields of an item and puts them into List<String>
@return
public
splitItems(
   String itemsStr):List
Sequential
Notes: Splits EndNote items and puts them into List<String>
@return
public
transformEndNote2XML(
   String file):String
Sequential
Notes: reads the import file and transforms the items to XML
@return xml
public
transformItemPairsListToXML(
   List> itemList):String
Sequential
Notes: creates the complete item list in xml
@param item pair list
@return xml string of the whole item list
public
transformItemSubelementsToXML(
   List item):String
Sequential
Notes: creates an xml string of the item pair list
@return xml String
public
transformItemToXML(
   List item):String
Sequential
Notes: creates a single item in xml
@return xml string of the whole item list