|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectthings.data.Nubblet
things.data.Entry
public class Entry
An entry is an a data with attributes but no identity. This is used for logging or data exchange. They are timestamped at creation.
This component has been quite a showcase of where Java Generics fail. Ultimately, this may be what drives me back to C++ or somewhere else.
Version History
EPG - Rewrite from another project - 22 MAY 04
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface things.data.Data |
|---|
Data.Priority, Data.Type |
| Field Summary | |
|---|---|
AttributeReader |
attributes
Attributes, if needed. |
| Fields inherited from class things.data.Nubblet |
|---|
numeric, priority, thing |
| Constructor Summary | |
|---|---|
Entry()
Default constructor. |
|
Entry(Data.Priority p,
int n,
java.lang.String text)
Constructor. |
|
Entry(Data.Priority p,
int n,
java.lang.String text,
AttributeReader a)
Constructor. |
|
Entry(int n,
java.lang.String text)
Constructor. |
|
Entry(int n,
java.lang.String text,
AttributeReader a)
Constructor. |
|
Entry(java.lang.String text)
Constructor. |
|
Entry(java.lang.String text,
AttributeReader a)
Constructor. |
|
Entry(java.lang.String text,
Data.Type type,
Data.Priority p,
int n)
Constructor. |
|
Entry(java.lang.String text,
Data.Type type,
Data.Priority p,
int n,
AttributeReader a)
Constructor. |
|
| Method Summary | |
|---|---|
AttributeReader |
getAttributes()
Get the attributes. |
java.lang.String |
toString()
Get a textual representation of this entry with attributes. |
java.lang.String |
toText()
Get a textual representation of this entry without attributes. |
| Methods inherited from class things.data.Nubblet |
|---|
birthMyChild, birthMyChild, getCreatorID, getID, getNumeric, getNumericString, getPriority, getStamp, getThing, getType, toTag |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public AttributeReader attributes
| Constructor Detail |
|---|
public Entry()
throws java.lang.Throwable
java.lang.Throwable
public Entry(Data.Priority p,
int n,
java.lang.String text)
p - the priorityn - the numerictext - the text information for the entry
ThingsException
public Entry(Data.Priority p,
int n,
java.lang.String text,
AttributeReader a)
throws ThingsException
p - the priorityn - the numerictext - the text information for the entrya - attributes. Cannot be null.
ThingsExceptionAttributeReader
public Entry(int n,
java.lang.String text)
n - the numerictext - the text information for the entry
ThingsException
public Entry(int n,
java.lang.String text,
AttributeReader a)
throws ThingsException
n - the numerictext - the text information for the entrya - attributes. Cannot be null.
ThingsExceptionAttributeReader
public Entry(java.lang.String text)
throws ThingsException
text - the text information for the entry
ThingsException
public Entry(java.lang.String text,
AttributeReader a)
throws ThingsException
text - the text information for the entrya - attributes. Cannot be null.
ThingsExceptionAttributeReader
public Entry(java.lang.String text,
Data.Type type,
Data.Priority p,
int n)
throws ThingsException
text - the text information for the entrytype - the type.p - priorityn - numeric
ThingsException
public Entry(java.lang.String text,
Data.Type type,
Data.Priority p,
int n,
AttributeReader a)
throws ThingsException
text - the text information for the entrytype - the type.p - priorityn - numerica - attributes. Cannot be null.
ThingsExceptionAttributeReader| Method Detail |
|---|
public AttributeReader getAttributes()
getAttributes in interface DatagetAttributes in class Nubbletpublic java.lang.String toString()
toString in interface DatatoString in class NubbletWhoAmIpublic java.lang.String toText()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||