Package com.tailf.maapi
Class MaapiSchemasUtil
Object
com.tailf.maapi.MaapiSchemasUtil
Utility class for MaapiSchemas This class contains tools for making recursive
schema printouts. It also has a main method and can therefore be run as a
java application.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Main method, downloads all schemas from the server using Maapi.loadSchemas, recurses through all schema trees and prints types and node info.static void
printChildren
(int offset, MaapiSchemas.CSNode n) Recursive printout of a schema tree from and including given nodestatic void
printNodeFlags
(int flags) static void
printNodeInfo
(int offset, MaapiSchemas.CSNode n) Node info printout for a given node
-
Constructor Details
-
MaapiSchemasUtil
public MaapiSchemasUtil()
-
-
Method Details
-
main
Main method, downloads all schemas from the server using Maapi.loadSchemas, recurses through all schema trees and prints types and node info.
Run as:
java com.tailf.maapi.MaapiSchemasUtil [hostname_or_ip, [port]]
hostname_or_ip
is the name or ip of the server (default 127.0.0.1) andport
is the server port (default 4565)- Parameters:
args
- String array optionally containing the hostname and the port of the server
-
printChildren
Recursive printout of a schema tree from and including given node- Parameters:
offset
- indentation offset for printout, 0 at start.n
- start node for printout
-
printNodeInfo
Node info printout for a given node- Parameters:
offset
- indentation offset for printout, 0 at start.n
- node to printout
-
printNodeFlags
public static void printNodeFlags(int flags)
-