|
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.SwiftEntryField
public class SwiftEntryField
this class represents either a Mandatory entry field or an Optional entry field in a MT description; Update history: 05/24/2006 : QAI 100008 - implement SWIFT HRF parser Added setters in case the information is parsed using another parser (such as HRF reader) and the entry is set from other objects;
Field Summary |
---|
Constructor Summary | |
---|---|
SwiftEntryField(SwiftOTDBuilderObject parent)
Creates a new SwiftEntryField object. |
|
SwiftEntryField(SwiftOTDBuilderObject parent,
java.util.Hashtable mapping)
|
Method Summary | |
---|---|
void |
addPattern(java.lang.Object o)
|
void |
addPatterns(java.lang.Object[] l)
|
void |
buildOtd(com.stc.otd.forest.OtdSerial otdSerial,
com.stc.otd.forest.OtdWood otdWood,
java.util.Hashtable hash)
Otd builder for Swift. |
void |
buildOtd(com.stc.otd.forest.OtdSerial otdSerial,
com.stc.otd.forest.OtdWood otdWood,
java.util.Hashtable hash,
int minRep,
int maxRep)
Otd builder for Swift. |
void |
buildOtd(com.stc.otd.forest.OtdSerial otdSerial,
com.stc.otd.forest.OtdWood otdWood,
java.util.Hashtable hash,
java.lang.String baseName,
java.lang.String tag)
Otd builder for Swift. |
void |
diff(SwiftOTDBuilderObject obj,
java.io.PrintWriter writer,
boolean coreAttrOnly)
|
void |
genMap(SwiftOTDBuilderObject obj,
java.io.PrintWriter writer)
compare the expansion attribute of this and obj
- if there is one, and output the extractfile's expan if there is a diff |
int |
genSubField(com.stc.otd.forest.OtdSerial otdSerial,
com.stc.otd.forest.OtdWood otdWood,
java.util.Hashtable hash,
SwiftPattern[] pats,
int patCur)
|
java.lang.String |
getFieldEntryId()
|
java.lang.String |
getFieldExpan()
|
java.lang.String |
getFieldPattId()
|
java.lang.String |
getFieldTag()
|
java.lang.String |
getID()
|
SwiftOTDBuilderObject |
getParent()
|
SwiftPattern |
getPattern(int index)
|
void |
parse(java.io.LineNumberReader lnr)
Parser for the Swift Description file. |
void |
parse(java.io.LineNumberReader lnr,
boolean belowAltrn)
Parser for the Swift Description file. |
void |
print(java.io.PrintWriter writer)
|
void |
printPatterns(java.io.PrintWriter writer)
|
void |
setFieldEntryId(java.lang.String id)
|
void |
setFieldExpan(java.lang.String s)
|
void |
setFieldPattId(java.lang.String s)
|
void |
setFieldTag(java.lang.String s)
|
void |
setIsOpt(java.lang.String s)
|
void |
setMinRep(int i)
|
void |
setParent(SwiftOTDBuilderObject parent)
|
Methods inherited from class com.stc.swift.builder.SwiftOTDBuilderObjAdapter |
---|
calculateRepetitiveInfo, getHRFEntry, getMTType, mapName, print, setHRFEntry |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SwiftEntryField(SwiftOTDBuilderObject parent)
public SwiftEntryField(SwiftOTDBuilderObject parent, java.util.Hashtable mapping)
Method Detail |
---|
public java.lang.String getFieldEntryId()
public void setFieldEntryId(java.lang.String id)
public java.lang.String getFieldExpan()
public void setFieldExpan(java.lang.String s)
public SwiftPattern getPattern(int index)
public void parse(java.io.LineNumberReader lnr, boolean belowAltrn) throws SwiftParsingException, java.io.IOException
:
- A buffered character-input stream that keeps track of line
numbers of the Swift description.:
- If SwiftEntryField is under SwiftAltrnEntry or SwiftOptEntry
we default SwiftParsingException:
- Parsing of the Swift Description file has failed.
IOException:
- Failed or interrupted I/O operation.
SwiftParsingException
java.io.IOException
public void parse(java.io.LineNumberReader lnr) throws SwiftParsingException, java.io.IOException
:
- A buffered character-input stream that keeps track of line
numbers of the Swift description.
SwiftParsingException:
- Parsing of the Swift Description file has failed.
IOException:
- Failed or interrupted I/O operation.
SwiftParsingException
java.io.IOException
public void buildOtd(com.stc.otd.forest.OtdSerial otdSerial, com.stc.otd.forest.OtdWood otdWood, java.util.Hashtable hash, java.lang.String baseName, java.lang.String tag) throws com.stc.otd.builder.OtdBuilderException
otdSerial
- -
Where the OtdBark is placed??.otdWood
- -
A piece of Wood to add branches to.hash
- -
Hashtable of previously used node names.baseName
- -
Optional name used to strip redundant info.tag
- -
Additional info for naming.
com.stc.otd.builder.OtdBuilderException
public void buildOtd(com.stc.otd.forest.OtdSerial otdSerial, com.stc.otd.forest.OtdWood otdWood, java.util.Hashtable hash, int minRep, int maxRep) throws com.stc.otd.builder.OtdBuilderException
otdSerial
- -
Where the OtdBark is placed??.otdWood
- -
A piece of Wood to add branches to.hash
- -
Hashtable of previously used node names.minRep
- -
Minimum repitions to be used.maxRep
- -
Maximum repitions to be used.
com.stc.otd.builder.OtdBuilderException
public void buildOtd(com.stc.otd.forest.OtdSerial otdSerial, com.stc.otd.forest.OtdWood otdWood, java.util.Hashtable hash) throws com.stc.otd.builder.OtdBuilderException
otdSerial
- -
Where the OtdBark is placed??.otdWood
- -
A piece of Wood to add branches to.hash
- -
Hashtable of previously used node names.
com.stc.otd.builder.OtdBuilderException
public int genSubField(com.stc.otd.forest.OtdSerial otdSerial, com.stc.otd.forest.OtdWood otdWood, java.util.Hashtable hash, SwiftPattern[] pats, int patCur) throws com.stc.otd.builder.OtdBuilderException
com.stc.otd.builder.OtdBuilderException
public void setFieldTag(java.lang.String s)
public void setIsOpt(java.lang.String s)
public void setMinRep(int i)
public void setFieldPattId(java.lang.String s)
public java.lang.String getFieldPattId()
public java.lang.String getFieldTag()
public void addPattern(java.lang.Object o)
public void addPatterns(java.lang.Object[] l)
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 java.lang.String getID()
getID
in interface SwiftOTDBuilderObject
getID
in class SwiftOTDBuilderObjAdapter
public void printPatterns(java.io.PrintWriter writer) throws java.lang.Exception
java.lang.Exception
public void print(java.io.PrintWriter writer) throws java.lang.Exception
print
in interface SwiftOTDBuilderObject
print
in class SwiftOTDBuilderObjAdapter
java.lang.Exception
public void genMap(SwiftOTDBuilderObject obj, java.io.PrintWriter writer) throws java.lang.Exception
this
and obj
- if there is one, and output the extractfile's expan if there is a diff
genMap
in interface SwiftOTDBuilderObject
genMap
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 |