|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.walend.collection.test.TestBean | +--net.walend.lyophil.test.stringbean.StringBean
A simple bean for tests.
Field Summary | |
private java.io.Serializable |
id
|
private java.lang.String |
role
|
private java.lang.String |
typableKey
|
Fields inherited from class net.walend.collection.test.TestBean |
|
Fields inherited from interface net.walend.lyophil.test.stringbean.FreezableString |
FREEZABLESTRING |
Constructor Summary | |
StringBean(java.io.Serializable identifier,
java.lang.String role,
Mother mom,
StringBean sb)
|
|
StringBean(java.io.Serializable identifier,
java.lang.String role,
Mother mom,
java.lang.String string,
java.lang.String typableKey)
|
Method Summary | |
Freezable |
createEvilClone(Mother mom,
java.lang.String role)
Returns a new instance of a Freezable with the same internal state as this Freezable, but with the new id. |
java.lang.String |
getCloneKey()
Get a clone key |
java.io.Serializable |
getIdentifier()
Get the identifier for this instance. |
java.lang.Class |
getPrincipleInterface()
Returns the class's principle interface for state comparisons. |
java.lang.String |
getRole()
Get the role for this instance. |
java.lang.String |
getTypableKey()
Return the typable key. |
boolean |
sameAs(Freezable object)
Returns true if this Freezable represents the samee information as object, and their internal state matches. |
boolean |
sameIdentifierAs(Freezable object)
Returns true if this Freezable represents the same information as the Freezable object, ie if they have the same identifier. |
boolean |
sameStateAs(HasState object)
If two HasStates have the same internal state, return true. |
void |
setTypableKey(java.lang.String key)
Set the typable key |
java.lang.String |
toString()
|
Methods inherited from class net.walend.collection.test.TestBean |
getString, setString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.walend.lyophil.test.stringbean.FreezableString |
getString, setString |
Field Detail |
private java.io.Serializable id
private java.lang.String role
private java.lang.String typableKey
Constructor Detail |
public StringBean(java.io.Serializable identifier, java.lang.String role, Mother mom, java.lang.String string, java.lang.String typableKey)
public StringBean(java.io.Serializable identifier, java.lang.String role, Mother mom, StringBean sb)
Method Detail |
public java.io.Serializable getIdentifier()
Freezable
getIdentifier
in interface Freezable
public java.lang.String getRole()
Freezable
getRole
in interface Freezable
public boolean sameIdentifierAs(Freezable object)
Freezable
sameIdentifierAs
in interface Freezable
public java.lang.Class getPrincipleInterface()
HasState
getPrincipleInterface
in interface HasState
getPrincipleInterface
in class TestBean
public boolean sameStateAs(HasState object)
HasState
For objects with subobjects, Generally this method should only return true if the internal objects are equal. Implement a contentsHaveSameState() method to determine if the contents have the same state.
sameStateAs
in interface HasState
sameStateAs
in class TestBean
public boolean sameAs(Freezable object)
Freezable
sameAs
in interface Freezable
public java.lang.String getTypableKey()
HasTypableKey
getTypableKey
in interface HasTypableKey
public void setTypableKey(java.lang.String key)
HasTypableKey
setTypableKey
in interface HasTypableKey
public java.lang.String getCloneKey()
HasTypableKey
getCloneKey
in interface HasTypableKey
public Freezable createEvilClone(Mother mom, java.lang.String role)
Freezable
createEvilClone
in interface Freezable
public java.lang.String toString()
toString
in interface TestString
toString
in class TestBean
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |