net.ontopia.topicmaps.cmdlineutils
Class StatisticsPrinter

java.lang.Object
  extended by net.ontopia.topicmaps.cmdlineutils.StatisticsPrinter

public class StatisticsPrinter
extends java.lang.Object

PUBLIC: Prints various kinds of statistics for topic maps.


Field Summary
protected static java.io.BufferedReader stdInn
           
protected  TopicMapIF tm
           
protected  StringifierIF ts
           
 
Constructor Summary
StatisticsPrinter(TopicMapIF tm)
          Constructor that accepts a topicmap as argument.
 
Method Summary
protected  void countAssociationDep()
          Handles all the assciation dependecies.
protected  void countTopics()
          Handles all the counting of different topics.
protected  java.lang.String format(java.lang.String t)
          Method used for pretty print.
protected  void getNoTypeTopics()
          Handles all the topics without type.
protected  java.lang.String getTopicId(TopicIF topic)
           
static void main(java.lang.String[] argv)
           
protected static void print(java.lang.String s)
          Lazy print, used internaly.
protected static java.lang.String requestFile()
          Used to request a filename when none is given.
protected static void usage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stdInn

protected static java.io.BufferedReader stdInn

tm

protected TopicMapIF tm

ts

protected StringifierIF ts
Constructor Detail

StatisticsPrinter

public StatisticsPrinter(TopicMapIF tm)
Constructor that accepts a topicmap as argument.

Method Detail

requestFile

protected static java.lang.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.


format

protected java.lang.String format(java.lang.String t)
Method used for pretty print.


print

protected static void print(java.lang.String s)
Lazy print, used internaly.


getTopicId

protected java.lang.String getTopicId(TopicIF topic)

main

public static void main(java.lang.String[] argv)

usage

protected static void usage()


Copyright © 2000-2012 Ontopia.