|
Copyright © Rasmus Sten and contributors, 1997-2004 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--nu.dll.lyskom.TextStat
The Text-Stat LysKOM data type (and this class) contains status information about a text, such as its author, creation time, etc. The most notable part of a Text-Stat is the Misc-Info selection, which is a list of Selection objects containing information about recipient, comments, footnotes, and so on. The Misc-Info list is likely to change over time, while the rest of the Text-Stat is not.
Another important part is the AuxItem list. Aux-Items are arbitrary data that can be attached to texts and conferences to specify things not covered in the base protocol, such as Content-Type of a text, FAQ number of conferences, and so on.
For many needs, the Misc-Info helper methods in the Text objects will be quite sufficient, such as getRecipients(), addRecipient(int), and so on. However, for more complex tasks, such as finding out when a specific recipient was added to a text and by whom, you will need to look into the Misc-Info list of Selection objects. Each Selection in the Misc-Info list represents a group of data received by the server.
All Misc-Info selectors specified in Protocol A are available as constants in this class. To manually find all (normal) recipients to a text, and their corresponding local text number, you will have to use getMiscInfo() to retreive a List of Selection objects, examine each object to see if they contain the selector TextStat.miscRecpt, and if they do, you will find the local text number in the same Selection object with the selector tag TextStat.miscLocNo. The method getMiscInfoSelections(int) in this class makes such operations easier by returning all Selections containing a given type of data, such as recipient information. The above procedure can thus be simplified by doing a getMiscInfoSelections(miscRecpt), which then gives you a List containing the Selection objects you are interested in.
For more detailed information, please consult the LysKOM Protocol A specification, node "The Misc-Info List". And better yet, help us improve this documentation and implementation.
getMiscInfoSelections(int)
,
Text
,
Selection
,
Serialized FormField Summary | |
static int |
MISC_INFO_COUNT
|
static int |
miscBccRecpt
Misc-Info Selection selector for tagging "BCC" recipient data. |
static int |
miscCcRecpt
Misc-Info Selection selector for tagging CC-recipient data. |
static int |
miscCommIn
Misc-Info Selection selector for tagging "comment-in" data |
static int |
miscCommTo
Misc-Info Selection selector for tagging "comment-to" data |
static int |
miscFootnIn
Misc-Info Selection selector for tagging "footnote-in" data |
static int |
miscFootnTo
Misc-Info Selection selector for tagging "footnote-to" data |
static int |
miscLocNo
Misc-Info Selection selector for tagging a local text number |
static int |
miscRecpt
Misc-Info Selection selector for tagging recipient data. |
static int |
miscRecTime
Misc-Info Selection selector for tagging a receiving time |
static int |
miscSentAt
Misc-Info Selection selector for tagging the time at which a recipient was added |
static int |
miscSentBy
Misc-Info Selection selector for tagging person-no of the person who added a recipient |
static int |
miscXAuthor
? |
static int |
miscXPerson
? |
static int |
miscXRecpt
? |
static int |
miscXSystem
? |
static int |
miscXText
? |
Constructor Summary | |
TextStat()
Creates an empty TextStat object |
Method Summary | |
void |
addAuxItem(nu.dll.lyskom.AuxItem a)
Adds an AuxItem object to this text. |
void |
addMiscInfoEntry(int key,
int value)
Adds a new Misc-Info Selection entry with the tag key and the value value. |
void |
addMiscInfoEntry(int key,
java.lang.Integer value)
Adds a new Misc-Info Selection entry with the tag key and the value value. |
void |
clearMiscInfoEntry(int key)
Removes all Selections containing the specified key. |
boolean |
containsAuxItem(int tag)
|
int |
countAuxItems()
Returns the number of AuxItem objects attached to this text. |
int |
getAuthor()
Returns the author of the text. |
nu.dll.lyskom.Hollerith[] |
getAuxData(int tag)
Returns the AuxItem data for a given AuxItem tag. |
nu.dll.lyskom.AuxItem[] |
getAuxItems()
Returns an array of AuxItem object representing the AuxItem list attached to this text. |
java.util.List |
getAuxItems(int tag)
|
java.lang.String |
getCharset()
Returns the charset for this text. |
java.lang.String |
getContentType()
Returns the content-type for this text. |
nu.dll.lyskom.KomTime |
getCreationTime()
Returns the time at which this text was created. |
java.util.List |
getMiscInfo()
Returns a List containing Selection objects, which in turn makes up the Misc-Info data for this text. |
java.util.List |
getMiscInfoSelections(int key)
Returns a List of all Selections containing the tag key. |
int |
getNo()
Returns the text number this TextStat information belongs to. |
int |
getSize()
|
int[] |
getStatInts(int no)
Returns an array containing all values tagged by the specified key no in this texts Misc-Info list. |
void |
removeMiscInfoEntry(int key,
int value)
Removes tag key if it contains value in this texts Misc-Info list. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int miscRecpt
public static final int miscCcRecpt
public static final int miscCommTo
public static final int miscCommIn
public static final int miscFootnTo
public static final int miscFootnIn
public static final int miscLocNo
public static final int miscRecTime
public static final int miscSentBy
public static final int miscSentAt
public static final int miscXAuthor
public static final int miscXPerson
public static final int miscXRecpt
public static final int miscXText
public static final int miscXSystem
public static final int miscBccRecpt
public static final int MISC_INFO_COUNT
Constructor Detail |
public TextStat()
Method Detail |
public int getNo()
public int getAuthor()
public nu.dll.lyskom.AuxItem[] getAuxItems()
public nu.dll.lyskom.KomTime getCreationTime()
public void addAuxItem(nu.dll.lyskom.AuxItem a)
public boolean containsAuxItem(int tag)
public java.lang.String getContentType()
public java.lang.String getCharset()
public int getSize()
public int countAuxItems()
public nu.dll.lyskom.Hollerith[] getAuxData(int tag)
AuxItem
public java.util.List getAuxItems(int tag)
public java.util.List getMiscInfo()
public void clearMiscInfoEntry(int key)
public void removeMiscInfoEntry(int key, int value)
public void addMiscInfoEntry(int key, java.lang.Integer value)
public void addMiscInfoEntry(int key, int value)
public java.util.List getMiscInfoSelections(int key)
public int[] getStatInts(int no)
|
Copyright © Rasmus Sten and contributors, 1997-2004 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |