de.glossmaker.bib.datastructure
Class BibItems

Package class diagram package BibItems
java.lang.Object
  extended by de.glossmaker.bib.datastructure.BibItems
All Implemented Interfaces:
IItems

public class BibItems
extends Object
implements IItems

Author:
Markus Flingelli

Constructor Summary
BibItems()
           
BibItems(String fileName)
          If the fileName not equals null then the file will be read.
 
Method Summary
 boolean add(IItem item)
           
 void clear()
           
 int count(EBibTeXReference reference)
           
 boolean existsKey(String key)
           
 String getFileName()
           
 IItem getItem(int index)
           
 IItem getItem(String key)
           
 ArrayList<IItem> getItems(EBibTeXReference reference)
           
 StringBuffer readFromFile(String fileName)
           
 boolean remove(IItem item)
           
 void save()
           
 void setFileName(String fileName)
           
 int size()
           
 void writeToFile(String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BibItems

public BibItems()

BibItems

public BibItems(String fileName)
If the fileName not equals null then the file will be read.

Parameters:
fileName - File name
Method Detail

clear

public void clear()
Specified by:
clear in interface IItems

size

public int size()
Specified by:
size in interface IItems

getItem

public IItem getItem(int index)
Specified by:
getItem in interface IItems

add

public boolean add(IItem item)
Specified by:
add in interface IItems

remove

public boolean remove(IItem item)
Specified by:
remove in interface IItems

readFromFile

public StringBuffer readFromFile(String fileName)
Specified by:
readFromFile in interface IItems

writeToFile

public void writeToFile(String fileName)
Specified by:
writeToFile in interface IItems

getItem

public IItem getItem(String key)

count

public int count(EBibTeXReference reference)

getItems

public ArrayList<IItem> getItems(EBibTeXReference reference)

existsKey

public boolean existsKey(String key)

save

public void save()

getFileName

public String getFileName()

setFileName

public void setFileName(String fileName)


Copyright © 2010 - 2011 Markus Flingelli. All Rights Reserved.