Class StatisticsPrinter
- java.lang.Object
-
- net.ontopia.topicmaps.cmdlineutils.StatisticsPrinter
-
public class StatisticsPrinter extends Object
PUBLIC: Prints various kinds of statistics for topic maps.
-
-
Field Summary
Fields Modifier and Type Field Description protected static BufferedReaderstdInnprotected TopicMapIFtm
-
Constructor Summary
Constructors Constructor Description StatisticsPrinter(TopicMapIF tm)Constructor that accepts a topicmap as argument.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcountAssociationDep()Handles all the assciation dependecies.protected voidcountTopics()Handles all the counting of different topics.protected Stringformat(String t)Method used for pretty print.protected voidgetNoTypeTopics()Handles all the topics without type.protected StringgetTopicId(TopicIF topic)static voidmain(String[] argv)protected static voidprint(String s)Lazy print, used internaly.protected static StringrequestFile()Used to request a filename when none is given.protected static voidusage()
-
-
-
Field Detail
-
stdInn
protected static BufferedReader stdInn
-
tm
protected TopicMapIF tm
-
-
Constructor Detail
-
StatisticsPrinter
public StatisticsPrinter(TopicMapIF tm)
Constructor that accepts a topicmap as argument.
-
-
Method Detail
-
requestFile
protected static String requestFile()
Used to request a filename when none is given.
-
countTopics
protected void countTopics()
Handles all the counting of different topics.
-
countAssociationDep
protected void countAssociationDep()
Handles all the assciation dependecies.
-
getNoTypeTopics
protected void getNoTypeTopics()
Handles all the topics without type.
-
print
protected static void print(String s)
Lazy print, used internaly.
-
main
public static void main(String[] argv)
-
usage
protected static void usage()
-
-