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 BufferedReader
stdInn
protected TopicMapIF
tm
-
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 void
countAssociationDep()
Handles all the assciation dependecies.protected void
countTopics()
Handles all the counting of different topics.protected String
format(String t)
Method used for pretty print.protected void
getNoTypeTopics()
Handles all the topics without type.protected String
getTopicId(TopicIF topic)
static void
main(String[] argv)
protected static void
print(String s)
Lazy print, used internaly.protected static String
requestFile()
Used to request a filename when none is given.protected static void
usage()
-
-
-
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()
-
-