de.glossmaker.gloss.datastructure
Class GlossItems
java.lang.Object
de.glossmaker.gloss.datastructure.GlossItems
- All Implemented Interfaces:
- IItems
public class GlossItems
- extends Object
- implements IItems
- Author:
- Markus Flingelli
GlossItems
public GlossItems()
add
public boolean add(IItem item)
- Specified by:
add
in interface IItems
remove
public boolean remove(IItem item)
- Specified by:
remove
in interface IItems
toString
public String toString()
- Overrides:
toString
in class Object
remove
public boolean remove(String key)
clear
public void clear()
- This method removes all items and set the file name to null.
- Specified by:
clear
in interface IItems
size
public int size()
- Specified by:
size
in interface IItems
get
public GlossItem get(int index)
getItem
public GlossItem getItem(String key)
existsKey
public boolean existsKey(String key)
readFromFile
public StringBuffer readFromFile(String fileName)
- Specified by:
readFromFile
in interface IItems
writeToFile
public void writeToFile(String fileName)
- Specified by:
writeToFile
in interface IItems
getFileName
public String getFileName()
isGlossReferencesConsistent
public boolean isGlossReferencesConsistent()
getConsistencyLog
public String getConsistencyLog()
getHeadingCount
public int getHeadingCount(String heading)
- This method returns the number of elements according to the argument heading.
getHeadingElementCount
public int getHeadingElementCount()
- This method returns the number of different headings.
getHeading
public String getHeading(int index)
get
public GlossItem get(String heading,
int index)
get
public GlossItem get(String key)
clone
public GlossItems clone()
- Overrides:
clone
in class Object
getItem
public IItem getItem(int index)
- Specified by:
getItem
in interface IItems
Copyright © 2010 - 2011 Markus Flingelli. All Rights Reserved.