things.common
Class IAmNobody

java.lang.Object
  extended by things.common.IAmNobody
All Implemented Interfaces:
WhoAmI

public class IAmNobody
extends java.lang.Object
implements WhoAmI

An identification object for a nobody. This means the ID is nothing
It will textually resolve as ThingsConstants.A_NOBODY

Version:
1.0

Version History

EPG - Initial - 13 OCT 04
 
Author:
Erich P. Gatejen

Constructor Summary
IAmNobody()
           
 
Method Summary
 IAmNobody 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.
 java.lang.String toString()
          Give a textual ID
 java.lang.String toTag()
          Give a TAG version of the ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IAmNobody

public IAmNobody()
Method Detail

toString

public java.lang.String toString()
Give a textual ID

Specified by:
toString in interface WhoAmI
Overrides:
toString in class java.lang.Object
Returns:
the textual representation of the ID.
See Also:
ThingsConstants

toTag

public java.lang.String toTag()
Give a TAG version of the ID. This cannot be used for positive ID, but may make a convenient mnemonic. An implementation may return the same value as toString().

Specified by:
toTag in interface WhoAmI
Returns:
the tag representation of the ID.

birthMyChild

public IAmNobody birthMyChild(java.lang.String childsName)
Create a child ID using the given name.

Specified by:
birthMyChild in interface WhoAmI
Parameters:
childsName - the given name for the child.
Returns:
the textual representation of the ID.

birthMyChild

public WhoAmI birthMyChild(java.lang.String childsName,
                           java.lang.String childsTag)
Create a child ID using the given name and tag. It must yield the same ID if the same value is used for childsName.

Specified by:
birthMyChild in interface WhoAmI
Parameters:
childsName - the given name for the child.
childsTag - the tag for the child.
Returns:
the id


Things.