de.glossmaker.gloss.datastructure
Class GlossItems

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

public class GlossItems
extends Object
implements IItems

Author:
Markus Flingelli

Constructor Summary
GlossItems()
           
 
Method Summary
 boolean add(IItem item)
           
 void clear()
          This method removes all items and set the file name to null.
 GlossItems clone()
           
 boolean existsKey(String key)
           
 GlossItem get(int index)
           
 GlossItem get(String key)
           
 GlossItem get(String heading, int index)
           
 String getConsistencyLog()
           
 String getFileName()
           
 String getHeading(int index)
           
 int getHeadingCount(String heading)
          This method returns the number of elements according to the argument heading.
 int getHeadingElementCount()
          This method returns the number of different headings.
 IItem getItem(int index)
           
 GlossItem getItem(String key)
           
 boolean isGlossReferencesConsistent()
           
 StringBuffer readFromFile(String fileName)
           
 boolean remove(IItem item)
           
 boolean remove(String key)
           
 int size()
           
 String toString()
           
 void writeToFile(String fileName)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GlossItems

public GlossItems()
Method Detail

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.