|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.sj.stina.domain.provider.SjDictionary
public class SjDictionary
Represents code / plaintext lists as a dictionary divided in sections.
Constructor Summary | |
---|---|
SjDictionary()
Constructs an empty SjDictionary object. |
|
SjDictionary(TiTransferPairsInterface aTPCodePlaintextData)
Constructs a SjDictionary object. |
|
SjDictionary(TiTransferPairsInterface aTPCodePlaintextData,
TiCrossReference crossReference)
Constructs a SjDictionary object. |
Method Summary | |
---|---|
void |
addSection(java.lang.String sectionName,
TiTransferValuesInterface aTVCodePlaintextList)
Adds a section to the dictionary. |
void |
addSections(TiTransferPairsInterface aTPCodePlaintextData)
Adds sections to the dictionary. |
boolean |
contains(java.lang.String sectionName)
Tests if the dictionary contains a section with the specified name. |
java.lang.Object |
get(java.util.Vector keys,
java.lang.Object codes)
Looks up entries for codes in a specified section. |
java.lang.Object |
get(java.util.Vector keys,
java.lang.Object codes,
boolean useXRef)
|
java.lang.String |
get(java.util.Vector keys,
java.lang.String key)
Looks up the entry for a key in a specified section. |
java.util.HashMap |
getEntries(java.lang.String sectionName,
java.util.Vector keys)
Looks up entries from a named section. |
java.util.Vector |
getKeys(java.lang.String sectionName)
Looks up the keys of an entire section given its name. |
java.util.HashMap |
getSection(java.lang.String sectionName)
Looks up an entire section by name. |
java.lang.String |
getText(java.lang.String sectionName,
java.lang.String key)
Looks up the entry for a key in a specified section. |
java.util.Vector |
getTexts(java.lang.String sectionName,
java.util.Vector keys)
|
java.util.Set |
sections()
Table of contents for the dictionary. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SjDictionary(TiTransferPairsInterface aTPCodePlaintextData)
aTPCodePlaintextData
- A transferpairs structure similar to
the one resulting from
a call to SJPSession::getCodePlaintextData()
.public SjDictionary(TiTransferPairsInterface aTPCodePlaintextData, TiCrossReference crossReference)
aTPCodePlaintextData
- A transferpairs structure similar to
the one resulting from
a call to SJPSession::getCodePlaintextData()
.crossReference
- The cross reference object to use for
translating long names into the short (transfer) variety.public SjDictionary()
Method Detail |
---|
public void addSections(TiTransferPairsInterface aTPCodePlaintextData)
aTPCodePlaintextData
- A transferpairs structure similar to the
one resulting from a call to
SJPSession::getCodePlaintextData()
.public void addSection(java.lang.String sectionName, TiTransferValuesInterface aTVCodePlaintextList)
sectionName
- A String naming the section for later retrieval.aTVCodePlaintextList
- A transfervalues structure corresponding
to the SJP business structure CodePlainTextList.public boolean contains(java.lang.String sectionName)
sectionName
- A String to test for.
true
if the dictionary contains a section with
the specified name, false
otherwise.public java.util.Set sections()
public java.lang.String get(java.util.Vector keys, java.lang.String key)
keys
- A Vector of Strings naming the section in which to look for
the entry as the second elementkey
- A String representing the code for the sought entry.
public java.lang.String getText(java.lang.String sectionName, java.lang.String key)
sectionName
- A String naming the section in which to look for
the entry.key
- A String representing the code for the sought entry.
public java.lang.Object get(java.util.Vector keys, java.lang.Object codes)
codes
- A Vector of Strings where third string represents
the section in which to look for
the codes. Rest of elements representing the code to lookup
corresponding string.
public java.util.Vector getTexts(java.lang.String sectionName, java.util.Vector keys)
public java.lang.Object get(java.util.Vector keys, java.lang.Object codes, boolean useXRef)
public java.util.HashMap getSection(java.lang.String sectionName)
sectionName
- A String naming the section to look for.
null
otherwise.public java.util.HashMap getEntries(java.lang.String sectionName, java.util.Vector keys)
sectionName
- A String naming the section in which to look
for entries.keys
- A Vector of Strings naming the keys of entries to look for.
public java.util.Vector getKeys(java.lang.String sectionName)
sectionName
- A String naming the section to look for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |