|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.data.cog.Cog
com.partnersoft.data.cog.CogWrapper
public class CogWrapper
This is a wrapper around JavaBeans, Maps, and other objects that can be treated like a Cog using some jiggery-pokery behind the scenes.
| Constructor Summary | |
|---|---|
CogWrapper()
|
|
CogWrapper(java.lang.Object root)
|
|
| Method Summary | |
|---|---|
protected Cog |
deepCopyImp()
Subclasses must implement this to provide a deep copy. |
protected int |
getChildCountImp()
Subclasses must implement this to return the number of children nodes. |
protected java.lang.String[] |
getChildNamesImp()
Subclasses must implement this to provide a list of valid children names or indexes. |
protected java.lang.Object |
getChildNodeImp(java.lang.String childName)
Subclasses must implement this to return the Cog node or primitive leaf node with the given name or index. |
java.lang.Object |
getRoot()
|
protected java.lang.Object |
removeChildNodeImp(java.lang.String childName)
|
protected void |
setChildNodeImp(java.lang.String childName,
java.lang.Object newValue)
|
void |
setRoot(java.lang.Object argRoot)
|
protected Cog |
shallowCopyImp()
Subclasses must implement this to provide a shallow copy. |
java.lang.String |
toString()
|
| Methods inherited from class com.partnersoft.data.cog.Cog |
|---|
convertAndSet, deepCopy, getBoolean, getCog, getDatatypeName, getDouble, getFloat, getID, getInt, getList, getLong, getNaming, getObject, getShort, getString, getStringButNullBlanks, getValues, move, remove, setBoolean, setCog, setDatatypeName, setDouble, setFloat, setID, setInt, setList, setLong, setNaming, setObject, setShort, setString, setValues, shallowCopy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CogWrapper()
public CogWrapper(java.lang.Object root)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object getRoot()
public void setRoot(java.lang.Object argRoot)
protected java.lang.Object getChildNodeImp(java.lang.String childName)
Cog
getChildNodeImp in class Cogprotected java.lang.Object removeChildNodeImp(java.lang.String childName)
removeChildNodeImp in class Cog
protected void setChildNodeImp(java.lang.String childName,
java.lang.Object newValue)
setChildNodeImp in class Cogprotected int getChildCountImp()
Cog
getChildCountImp in class Cogprotected java.lang.String[] getChildNamesImp()
Cog
getChildNamesImp in class Cogprotected Cog shallowCopyImp()
Cog
shallowCopyImp in class Cogprotected Cog deepCopyImp()
Cog
deepCopyImp in class Cog
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||