|
Sun Message Library for SWIFT API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stc.swift.builder.SwiftOTDBuilderObjAdapter
com.stc.swift.builder.SwiftMetadata
public class SwiftMetadata
This class is the default implementation of SwiftOtdGenerator
Constructor Summary | |
---|---|
SwiftMetadata()
default constructor for HRF parser |
|
SwiftMetadata(java.io.File swiftDescFile)
Constructor |
Method Summary | |
---|---|
void |
buildOtd(com.stc.otd.forest.OtdMetaContainer otdMeta,
java.util.Hashtable hash)
Otd builder for Swift. |
void |
buildOtd(com.stc.otd.forest.OtdMetaContainer otdMeta,
java.util.Hashtable hash,
boolean noData)
Otd builder for Swift. |
void |
buildOtdAppHeader(com.stc.otd.forest.OtdSerial otdSerial,
com.stc.otd.forest.OtdTree otdTree,
java.lang.String msgType,
java.util.Hashtable hash)
Otd builder for Swift. |
void |
buildOtdBasicHeader(com.stc.otd.forest.OtdSerial otdSerial,
com.stc.otd.forest.OtdTree otdTree,
java.util.Hashtable hash)
Otd builder for Swift. |
void |
buildOtdTrailers(com.stc.otd.forest.OtdSerial otdSerial,
com.stc.otd.forest.OtdTree otdTree,
java.util.Hashtable hash)
Otd builder for Swift. |
void |
buildOtdUserHeader(com.stc.otd.forest.OtdSerial otdSerial,
com.stc.otd.forest.OtdTree otdTree,
java.util.Hashtable hash)
Otd builder for Swift. |
void |
diff(SwiftOTDBuilderObject obj,
java.io.PrintWriter writer,
boolean coreAttrOnly)
|
SwiftMessage |
getMessage()
|
java.lang.String |
getMsgType()
|
SwiftOTDBuilderObject |
getParent()
|
boolean |
parse()
Parser for the Swift Description file. |
void |
print(java.io.PrintWriter writer)
|
void |
setMessage(SwiftMessage msg)
|
void |
setMsgType(java.lang.String msgType)
|
void |
setPackagePrepend(java.lang.String packagePrepend)
|
void |
setParent(SwiftOTDBuilderObject parent)
|
Methods inherited from class com.stc.swift.builder.SwiftOTDBuilderObjAdapter |
---|
calculateRepetitiveInfo, genMap, getHRFEntry, getID, getMTType, mapName, print, setHRFEntry |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SwiftMetadata()
public SwiftMetadata(java.io.File swiftDescFile) throws java.io.FileNotFoundException, java.io.IOException, SwiftParsingException
:
- A File object of the Swift Description File.
FileNotFoundException:
- An attempt to open the file denoted by a
specified pathname has failed.
IOException:
- Failed or interrupted I/O operation.
java.io.FileNotFoundException
java.io.IOException
SwiftParsingException
Method Detail |
---|
public java.lang.String getMsgType()
public void setMsgType(java.lang.String msgType)
public void setPackagePrepend(java.lang.String packagePrepend)
public boolean parse() throws java.io.IOException, SwiftParsingException
:
- A buffered character-input stream that keeps track of line
numbers of the Swift description.
IOException:
- Failed or interrupted I/O operation.
SwiftParsingException:
- Parsing of the Swift Description file
has failed.
java.io.IOException
SwiftParsingException
public void buildOtd(com.stc.otd.forest.OtdMetaContainer otdMeta, java.util.Hashtable hash) throws com.stc.otd.forest.OtdTreeException, com.stc.otd.builder.OtdBuilderException
otdMeta
- - OtdMetaContainer object.
com.stc.otd.forest.OtdTreeException
com.stc.otd.builder.OtdBuilderException
public void buildOtd(com.stc.otd.forest.OtdMetaContainer otdMeta, java.util.Hashtable hash, boolean noData) throws com.stc.otd.forest.OtdTreeException, com.stc.otd.builder.OtdBuilderException
otdMeta
- - OtdMetaContainer object.
com.stc.otd.forest.OtdTreeException
com.stc.otd.builder.OtdBuilderException
public void buildOtdBasicHeader(com.stc.otd.forest.OtdSerial otdSerial, com.stc.otd.forest.OtdTree otdTree, java.util.Hashtable hash) throws com.stc.otd.forest.OtdTreeException, com.stc.otd.builder.OtdBuilderException
otdSerial
- - Where the OtdBark is placed??.otdTree
- - Tree to place the Branches in.hash
- - Hashtable of previously used node names.
com.stc.otd.forest.OtdTreeException
com.stc.otd.builder.OtdBuilderException
public void buildOtdAppHeader(com.stc.otd.forest.OtdSerial otdSerial, com.stc.otd.forest.OtdTree otdTree, java.lang.String msgType, java.util.Hashtable hash) throws com.stc.otd.forest.OtdTreeException, com.stc.otd.builder.OtdBuilderException
otdSerial
- - Where the OtdBark is placed??.otdTree
- - Tree to place the branches in.msgType
- - Swift message type being processed.hash
- - Hashtable of previously used node names.
com.stc.otd.forest.OtdTreeException
com.stc.otd.builder.OtdBuilderException
public void buildOtdUserHeader(com.stc.otd.forest.OtdSerial otdSerial, com.stc.otd.forest.OtdTree otdTree, java.util.Hashtable hash) throws com.stc.otd.forest.OtdTreeException, com.stc.otd.builder.OtdBuilderException
otdSerial
- - Where the OtdBark is placed??.otdTree
- - Tree to place the branches in.hash
- - Hashtable of previously used node names.
com.stc.otd.forest.OtdTreeException
com.stc.otd.builder.OtdBuilderException
public void buildOtdTrailers(com.stc.otd.forest.OtdSerial otdSerial, com.stc.otd.forest.OtdTree otdTree, java.util.Hashtable hash) throws com.stc.otd.forest.OtdTreeException, com.stc.otd.builder.OtdBuilderException
otdSerial
- - Where the OtdBark is placed??.otdTree
- - Tree to place the Branches in.hash
- - Hashtable of previously used node names.
com.stc.otd.forest.OtdTreeException
com.stc.otd.builder.OtdBuilderException
public SwiftMessage getMessage()
public void setMessage(SwiftMessage msg)
public SwiftOTDBuilderObject getParent()
getParent
in interface SwiftOTDBuilderObject
getParent
in class SwiftOTDBuilderObjAdapter
public void setParent(SwiftOTDBuilderObject parent)
setParent
in interface SwiftOTDBuilderObject
setParent
in class SwiftOTDBuilderObjAdapter
public void print(java.io.PrintWriter writer) throws java.lang.Exception
print
in interface SwiftOTDBuilderObject
print
in class SwiftOTDBuilderObjAdapter
java.lang.Exception
public void diff(SwiftOTDBuilderObject obj, java.io.PrintWriter writer, boolean coreAttrOnly) throws java.lang.Exception
diff
in interface SwiftOTDBuilderObject
diff
in class SwiftOTDBuilderObjAdapter
java.lang.Exception
|
Sun Message Library for SWIFT API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |