|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectthings.data.Entity<O>
public class Entity<O>
An entry is with object data and attributes and and has an identity.
The metadata and attributes are immutable, but the object data is not.
Version History
EPG - Rewrite from another project - 12 MAY 06
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface things.data.Data |
|---|
Data.Priority, Data.Type |
| Field Summary | |
|---|---|
AttributeReader |
attributes
Attributes, if needed. |
| Constructor Summary | |
|---|---|
Entity()
The default constructor is not allowed. |
|
Entity(int n,
Data.Type t,
Data.Priority p,
O thing,
WhoAmI imposedId,
WhoAmI creatorId)
Constructor. |
|
Entity(int n,
Data.Type t,
Data.Priority p,
O thing,
WhoAmI imposedId,
WhoAmI creatorId,
AttributeReader a)
Constructor. |
|
Entity(int n,
Data.Type t,
Data.Priority p,
O thing,
WhoAmI imposedId,
WhoAmI creatorId,
java.lang.String... a)
Constructor. |
|
Entity(int n,
O thing)
Constructor. |
|
Entity(int n,
O thing,
AttributeReader a)
Constructor. |
|
Entity(int n,
O thing,
java.lang.String... a)
Constructor. |
|
| Method Summary | |
|---|---|
WhoAmI |
birthMyChild(java.lang.String childsName)
Create a child ID using the given name. |
WhoAmI |
birthMyChild(java.lang.String childsName,
java.lang.String childsTag)
Create a child ID using the given name and tag. |
AttributeReader |
getAttributes()
Get the attributes. |
WhoAmI |
getCreatorID()
Get the creator's ID. |
WhoAmI |
getID()
Get the objects ID. |
int |
getNumeric()
Get the numeric value. |
java.lang.String |
getNumericString()
Get the numeric value. |
Data.Priority |
getPriority()
Get the priority.ed. |
long |
getStamp()
Get the timestamp. |
java.lang.Object |
getThing()
Get the thing (Object). |
Data.Type |
getType()
Get the type. |
O |
getTypedThing()
Get the thing (Object). |
java.lang.String |
toString()
Give a textual representation of the data. |
| 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 Entity()
throws java.lang.Throwable
java.lang.Throwable
public Entity(int n,
O thing)
n - the numericthing - The thing to keep
public Entity(int n,
O thing,
AttributeReader a)
throws ThingsException
n - the numericthing - The thing to keep.a - attributes. This cannot be null.
ThingsExceptionAttributeReader
public Entity(int n,
O thing,
java.lang.String... a)
throws ThingsException
n - the numericthing - The thing to keep.a - attributes in name value pairs. This cannot be null.
ThingsExceptionAttributeReader
public Entity(int n,
Data.Type t,
Data.Priority p,
O thing,
WhoAmI imposedId,
WhoAmI creatorId)
throws ThingsException
n - the numerict - the typep - the prioritything - The thing to keepimposedId - The id of the new Entity.creatorId - The if of the caller (or other creator).
ThingsExceptionAttributeReader,
WhoAmI,
IAmNobody
public Entity(int n,
Data.Type t,
Data.Priority p,
O thing,
WhoAmI imposedId,
WhoAmI creatorId,
AttributeReader a)
throws ThingsException
n - the numerict - the typep - the prioritything - The thing to keepimposedId - The id of the new Entity.creatorId - The if of the caller (or other creator).a - attributes. This cannot be null.
ThingsExceptionAttributeReader,
WhoAmI,
IAmNobody
public Entity(int n,
Data.Type t,
Data.Priority p,
O thing,
WhoAmI imposedId,
WhoAmI creatorId,
java.lang.String... a)
throws ThingsException
n - the numerict - the typep - the prioritything - The thing to keepimposedId - The id of the new Entity.creatorId - The if of the caller (or other creator).a - attributes in name value pairs. This cannot be null.
ThingsExceptionAttributeReader,
WhoAmI,
IAmNobody| Method Detail |
|---|
public O getTypedThing()
public WhoAmI birthMyChild(java.lang.String childsName)
birthMyChild in interface DatachildsName - the given name for the child.
WhoAmI
public WhoAmI birthMyChild(java.lang.String childsName,
java.lang.String childsTag)
birthMyChild in interface DatachildsName - the given name for the child.childsTag - the tag for the child.
WhoAmIpublic java.lang.String toString()
toString in interface DatatoString in class java.lang.Objectpublic WhoAmI getID()
getID in interface DataWhoAmIpublic WhoAmI getCreatorID()
getCreatorID in interface DataWhoAmIpublic int getNumeric()
getNumeric in interface Datapublic java.lang.String getNumericString()
getNumericString in interface Datapublic Data.Priority getPriority()
getPriority in interface Datapublic long getStamp()
getStamp in interface Datapublic java.lang.Object getThing()
getThing in interface Datapublic Data.Type getType()
getType in interface Datapublic AttributeReader getAttributes()
getAttributes in interface Data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||