class: WoSImport

public class: WoSImport
Author: kurt (initial creation)
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 2097 $ $LastChangedDate: 2009-06-10 17:; Complexity: 1
Dates: Created: 16.07.2009 15:20:58; Modified: 16.07.2009 15:20:58;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {AAAFA015-1130-4ed7-9A4D-E073EFFE60BD}
provides the import of a RIS file
 

Goto: Custom Properties, Fields, Methods

Appears in: wos

Custom Properties
 
WoSImport Attributes
Attribute Details
private Logger
  logger
Initial: Logger.getLogger(getClass())
private String
  url
Initial: null
 
WoSImport Methods
Operation Details
public
createWoSPairByString(
   String line):Pair
Sequential
Notes: get a pair from line string (by regex string)
@param string - RIS 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
getItemFromString(
   String string,
   String patternString):List
Sequential
Notes: identifies item lines from input string and stores it in a List<String>
@return
public
getItemListFromString(
   String string,
   String pattern):String
Sequential
Notes: identifies RIS items from input string and stores it in an String Array
@return
public
getItemPairs(
   List lines):List
Sequential
Notes: get item pairs from item string (by regex string)
@param string - RIS 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
transformItemListToXML(
   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
public
transformWoS2XML(
   String file):String
Sequential
Notes: reads the import file and transforms the items to XML
@return xml
public
WoSImport():
Sequential
Notes: Public Constructor RISImport.