public class MaapiSchemasUtil extends Object
Constructor and Description |
---|
MaapiSchemasUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Main method Downloads all schemas from server using Maapi.loadSchemas
Recurses 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 node
|
static void |
printNodeInfo(int offset,
MaapiSchemas.CSNode n)
Node info printout for a given node
|
public static void main(String[] args)
Run as: java com.tailf.maapi.MaapiSchemasUtil [hostname_or_ip, [port]] Where: hostname_or_ip - is the name or ip for the server (default localhost port - is the server port (default 4565)
args
- public static void printChildren(int offset, MaapiSchemas.CSNode n)
offset
- indentation offset for printout, 0 at start.n
- start node for printoutpublic static void printNodeInfo(int offset, MaapiSchemas.CSNode n)
offset
- indentation offset for printout, 0 at start.n
- node to printout