Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Sun Message Library for SWIFT API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.stc.swift.util
Class Utilities

    java.lang.Object
      com.stc.swift.util.Utilities

All Implemented Interfaces:
  UtilConstants

    public class Utilities

extends java.lang.Object
implements UtilConstants

A utility class used for Swift OTD Library.

Version:
  $Revision: 1.9 $

Field Summary
`static java.lang.String` | `MSG_FILE_NAME`

Fields inherited from interface com.stc.swift.util.UtilConstants
`ERR_UTIL_BAD_MSG_FILE, ERR_UTIL_EXTRACT_NOTFOUND, ERR_UTIL_INVALID_EXTRACT, ERR_UTIL_INVALID_INPUT, ERR_UTIL_INVALID_OUTPUT, ERR_UTIL_MISSING_ATTR_OPT, ERR_UTIL_MISSING_EDITION, ERR_UTIL_MISSING_INPUT_MSG, ERR_UTIL_MISSING_OPT, ERR_UTIL_NO_MSG, ERR_UTIL_WORKING_DIR_REQUIRED, UTIL_CMD_NAME_BREAKDATA, UTIL_CMD_NAME_DIFF, UTIL_CMD_NAME_DIFF2, UTIL_CMD_NAME_GENMAP, UTIL_CMD_NAME_PRINT, UTIL_CMD_NAME_PROCESS, UTIL_CMD_NAME_STD, UTIL_CMD_NAME_TESTOTD, UTIL_CMD_NAME_TESTOTDS`

Method Summary
`static java.lang.String` | `getMessage(java.lang.String key)`
`static java.lang.String` | `getMessage(java.lang.String aKey, java.lang.Object[] aParams)`
`static void` | `main(java.lang.String[] args)` many utilities for Swift OTD Library generation, analysis, data normalization, etc.
`static void` | `messageDiff(SwiftMessage msg1, SwiftMessage msg2, java.io.File output, boolean coreAttrOnly)` compare two Swift Messages and output the diff as represented in extracfile syntax;
`static void` | `messagePrint(SwiftMessage msg, java.io.File output)` print a swift message instance into a file using extracfile syntax;

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### MSG_FILE_NAME

    public static final java.lang.String MSG_FILE_NAME

See Also:
  Constant Field Values

Method Detail

### getMessage

    public static java.lang.String getMessage(java.lang.String key)

### getMessage

    public static java.lang.String getMessage(java.lang.String aKey,
                                              java.lang.Object[] aParams)

### main

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

  many utilities for Swift OTD Library generation, analysis, data normalization, etc.

  Parameters:
    `args` -

### messageDiff

    public static void messageDiff(SwiftMessage msg1,
                                   SwiftMessage msg2,
                                   java.io.File output,
                                   boolean coreAttrOnly)
                            throws java.lang.Exception

  compare two Swift Messages and output the diff as represented in extracfile syntax;

  Parameters:
    `msg1` - - first message
    `msg2` - - second message
    `output` - - file holding diff result;
    `coreAttrOnly` - - when true, only compare those attrinutes affects OTD parsing;
  Throws:
    `java.lang.Exception`

### messagePrint

    public static void messagePrint(SwiftMessage msg,
                                    java.io.File output)
                             throws java.lang.Exception

  print a swift message instance into a file using extracfile syntax;

  Parameters:
    `msg` - - the message
    `output` - - the file holding the extractfile
  Throws:
    `java.lang.Exception`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Sun Message Library for SWIFT API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008 Sun Microsystems, Inc. All rights reserved.