|
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.SwiftAltrnEntryField
public class SwiftAltrnEntryField
this class represents either a Mandatory alternative entry field or an Optional alternative 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 |
---|
Fields inherited from interface com.stc.swift.builder.SwiftOTDBuilderEntries |
---|
ALTRN_ENTRY_CHOICE_PREFIX, ALTRN_ENTRY_NAME_PREFIX, LOOP_ENTRY_NAME_PREFIX, SEQU_NAME_PREFIX |
Constructor Summary | |
---|---|
SwiftAltrnEntryField(SwiftOTDBuilderObject parent)
Creates a new SwiftAltrnEntryField object. |
Method Summary | |
---|---|
void |
addEntry(java.lang.Object o)
|
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 |
calculateRepetitiveInfo()
|
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 |
java.lang.String |
getAltrnEntryId()
|
java.lang.String |
getAltrnName()
|
java.util.List |
getEntries()
|
java.lang.String |
getID()
|
SwiftOTDBuilderObject |
getParent()
|
java.lang.String |
nextSequName()
|
void |
parse(java.io.LineNumberReader lnr)
Parser for the Swift Description file. |
void |
print(java.io.PrintWriter writer)
|
void |
setAltrnEntries(java.util.List entries)
|
void |
setAltrnEntryId(java.lang.String id)
setter for Alternative Entry Id |
void |
setAltrnIsOpt(java.lang.String isOpt)
|
void |
setEndAltrnEntryId(java.lang.String id)
|
void |
setEndAltrnIsOpt(java.lang.String isOpt)
|
void |
setEntries(java.util.List l)
|
void |
setParent(SwiftOTDBuilderObject parent)
|
Methods inherited from class com.stc.swift.builder.SwiftOTDBuilderObjAdapter |
---|
getHRFEntry, getMTType, mapName, print, setHRFEntry |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SwiftAltrnEntryField(SwiftOTDBuilderObject parent)
Method Detail |
---|
public java.lang.String getAltrnName()
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.tag
- - Optional name. Ignored for now.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 void setAltrnEntryId(java.lang.String id)
id
- public java.lang.String getAltrnEntryId()
public void setAltrnEntries(java.util.List entries)
entries
- public void setEndAltrnEntryId(java.lang.String id)
id
- public void setAltrnIsOpt(java.lang.String isOpt)
isOpt
- public void setEndAltrnIsOpt(java.lang.String isOpt)
public void addEntry(java.lang.Object o)
addEntry
in interface SwiftOTDBuilderEntries
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.util.List getEntries()
getEntries
in interface SwiftOTDBuilderEntries
public void setEntries(java.util.List l)
setEntries
in interface SwiftOTDBuilderEntries
public java.lang.String getID()
getID
in interface SwiftOTDBuilderObject
getID
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 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
public void calculateRepetitiveInfo()
calculateRepetitiveInfo
in interface SwiftOTDBuilderObject
calculateRepetitiveInfo
in class SwiftOTDBuilderObjAdapter
public java.lang.String nextSequName()
nextSequName
in interface SwiftOTDBuilderEntries
|
Sun Message Library for SWIFT API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |