|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.ds.fw.types.FwSimpleObject
I am meant to be used as a convenient superclass for classes that want to implement various simple interfaces. By subclassing off me the subclasses do not have to implement all the methods themselves. Future extension... It should generally be fine to implement additional interfaces at any time but some guidelines should be followed. Whatever classes are already implementing this interface should never require modification due to a change in this class - for example this class should NEVER be declared abstract. Also this class should never declare any instance variables or static methods.
| Constructor Summary | |
FwSimpleObject()
|
|
| Method Summary | |
java.lang.String |
getClassName()
This convenience method return the short class name. |
java.lang.Object |
getClone()
Get a clone of this object. |
java.lang.Object |
getCopy()
Get a copy of this object. |
java.lang.Object |
getCopy(java.lang.Object e)
If the object implements FwCopyableIF then return e.getCopy(). |
java.lang.Object |
getDeepCopy()
Return a copy that is completely independent from the original. |
java.lang.String |
getDisplayString()
If toStringValue is non-null then return it. |
java.lang.String |
getDisplayStringFor(java.lang.Object e)
If the parameter implements FwDisplayableIF then return e.getDisplayString(). |
void |
postCopy()
This should never be called directly from a client. |
void |
printStackTrace()
|
java.lang.String |
toString()
toString is understood by all objects but is included in this interface for conceptual completeness and documentation. |
java.lang.String |
toStringValue()
Get the string form of the object's value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FwSimpleObject()
| Method Detail |
public java.lang.Object getCopy()
FwCopyableIF
getCopy in interface FwSimpleObjectIFpublic java.lang.Object getCopy(java.lang.Object e)
FwCopyableIF
getCopy in interface FwSimpleObjectIFpublic java.lang.Object getDeepCopy()
FwCopyableIF
getDeepCopy in interface FwSimpleObjectIFpublic void postCopy()
FwCopyableIF
postCopy in interface FwSimpleObjectIFpublic java.lang.Object getClone()
FwCopyableIF
getClone in interface FwSimpleObjectIFpublic java.lang.String toString()
FwDisplayableIF
toString in interface FwSimpleObjectIFtoString in class java.lang.Objectpublic java.lang.String toStringValue()
FwDisplayableIF
toStringValue in interface FwSimpleObjectIFpublic java.lang.String getDisplayString()
FwDisplayableIF
getDisplayString in interface FwSimpleObjectIFpublic java.lang.String getDisplayStringFor(java.lang.Object e)
FwDisplayableIF
getDisplayStringFor in interface FwSimpleObjectIFpublic java.lang.String getClassName()
FwDisplayableIF
getClassName in interface FwSimpleObjectIFpublic void printStackTrace()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||